Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(testing): add vitest generators #13301

Merged
merged 17 commits into from
Nov 23, 2022
Merged

Conversation

Cammisuli
Copy link
Member

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #

@vercel
Copy link

vercel bot commented Nov 21, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
nx-dev ✅ Ready (Inspect) Visit Preview Nov 23, 2022 at 0:50AM (UTC)

@FrozenPandaz FrozenPandaz added target: next major version To be merged for the next major version release and removed target: next major version To be merged for the next major version release labels Nov 21, 2022
@@ -315,9 +356,16 @@ export function writeViteConfig(tree: Tree, options: Schema) {

let viteConfigContent = '';

const testConfig = `test: {
globals: ${options.inSourceTests ? false : true},
environment: 'jsdom',
Copy link
Member

Choose a reason for hiding this comment

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

Because we use jsdom here, we also need to install jsdom in the workspace. Otherwise we run into a missing dep error. I'd the package to the init generator since the intention is to use vitest for all vite projects.

@Cammisuli Cammisuli marked this pull request as ready for review November 22, 2022 21:56
@jaysoo jaysoo merged commit 02e22de into nrwl:master Nov 23, 2022
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants