Skip to content

docs: add initial docs for runtime tests#24658

Merged
danielroe merged 6 commits intomainfrom
docs/testing
Dec 19, 2023
Merged

docs: add initial docs for runtime tests#24658
danielroe merged 6 commits intomainfrom
docs/testing

Conversation

@danielroe
Copy link
Copy Markdown
Member

🔗 Linked issue

resolves #22577

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

This adds initial documentation for @nuxt/test-utils based on the work we've done merging in nuxt-vitest and refactoring the approach.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@danielroe danielroe self-assigned this Dec 9, 2023
@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@nuxt-studio
Copy link
Copy Markdown
Contributor

nuxt-studio bot commented Dec 9, 2023

Live Preview ready!

Name Edit Preview Latest Commit
Nuxt Docs Edit on Studio ↗︎ View Live Preview ba94851

@github-actions github-actions bot added the 3.x label Dec 9, 2023
export default defineVitestConfig({
// any custom Vitest config you require
})
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also add the script that can be used in package.json?
Would "test:unit": "vitest" be enough?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it would be 👍

@danielroe danielroe merged commit 3de719c into main Dec 19, 2023
@danielroe danielroe deleted the docs/testing branch December 19, 2023 13:33
@github-actions github-actions bot mentioned this pull request Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add documentation for @nuxt/test-utils

3 participants