-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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): support root project generation for jest #13353
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
367f2de
to
4c95853
Compare
4c95853
to
1cd5c8a
Compare
1cd5c8a
to
0b45d7c
Compare
packages/jest/src/generators/jest-project/lib/update-jestconfig.ts
Outdated
Show resolved
Hide resolved
996b8fd
to
476b31a
Compare
476b31a
to
bdef478
Compare
bdef478
to
8ae62cf
Compare
@@ -27,7 +27,8 @@ export function createFiles(tree: Tree, options: JestProjectSchema) { | |||
...options, | |||
transformer, | |||
js: !!options.js, | |||
projectRoot: projectConfig.root, | |||
rootProject: options.rootProject, | |||
projectRoot: options.rootProject ? options.project : projectConfig.root, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come this changed?
updateFile, | ||
expectJestTestsToPass, | ||
cleanupProject, | ||
readFile, | ||
checkFilesExist, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary 🤷
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. |
Current Behavior
@nrwl/jest does not work with experimental root projects
Expected Behavior
Enable jest to run in the experimental single root project setup and update configurations to support multi project jest projects when adding new projects with nx
Related Issue(s)
TODO
getJestProjects()
is used