-
Notifications
You must be signed in to change notification settings - Fork 34
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
Use Jest projects #1294
Use Jest projects #1294
Conversation
🦋 Changeset detectedLatest commit: 413d844 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
jest.config.ts
Outdated
projects: [ | ||
{ | ||
transform, | ||
moduleNameMapper, | ||
setupFiles, | ||
displayName: 'unit', | ||
testPathIgnorePatterns: ['<rootDir>/template/', '\\.int\\.test\\.ts'], | ||
}, |
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.
Would it be too heavy handed for Jest.mergePreset
to provide the root defaults to each project, like e.g.
projects: projects.map(project => ({ transform, moduleNameMapper, ...project })
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.
Yeah I wasn't sure, I think it makes sense though
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.
🙇
watchPathIgnorePatterns: [ | ||
'<rootDir>/integration/format/', | ||
'<rootDir>/integration/lint/', | ||
], |
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.
🙇
Co-authored-by: Ryan Ling <ryan@outlook.com.au>
Utilise and spruik Jest projects because it's pretty
Unfortunately running integration tests only in band via projects is not supported 😢
jestjs/jest#10936