Skip to content

Commit e6f5d4b

Browse files
authored
feat: ignore playwright folder in jest config (#45)
### Developer Checklist (Definition of Done) **Issue** - [ ] All acceptance criteria from the issue are met - [ ] Tested in latest Chrome/Firefox **UI/UX/Vis** - [ ] Requires UI/UX/Vis review - [ ] Reviewer(s) are notified (_tag assignees_) - [ ] Review has occurred (_link to notes_) - [ ] Feedback is included in this PR - [ ] Reviewer(s) approve of concept and design **Code** - [ ] Branch is up-to-date with the branch to be merged with, i.e., develop - [ ] Code is cleaned up and formatted - [ ] Unit tests are written (frontend/backend if applicable) - [ ] Integration tests are written (if applicable) **PR** - [ ] Descriptive title for this pull request is provided (will be used for release notes later) - [ ] Reviewer and assignees are defined - [ ] Add type label (e.g., *bug*, *feature*) to this pull request - [ ] Add release label (e.g., `release: minor`) to this PR following [semver](https://semver.org/) - [ ] The PR is connected to the corresponding issue (via `Closes #...`) - [ ] [Summary of changes](#summary-of-changes) is written ### Summary of changes - Playwright and Jest use the same pattern, such that Jest picks up playwright tests. This PR adds the flags to ignore all playwright folders. ### Screenshots ### Additional notes for the reviewer(s) - Thanks for creating this pull request 🤗
2 parents 32ec565 + e517bf5 commit e6f5d4b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

config/jest.config.template.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ const pluginsNotToTransform = [
33
'd3v3',
44
].join('|');
55

6-
/**
7-
* TODO check if we can process inline webpack loaders (e.g. as found in https://github.com/phovea/phovea_ui/blob/master/src/_bootstrap.ts)
8-
* see also https://jestjs.io/docs/en/webpack#mocking-css-modules
9-
*/
6+
/** @type {import('jest').Config} */
107
module.exports = {
118
testEnvironment: 'jsdom',
129
transform: {
@@ -22,6 +19,8 @@ module.exports = {
2219
'\\.xml$': 'jest-raw-loader',
2320
},
2421
testRegex: '(.*(test|spec))\\.(tsx?)$',
22+
testPathIgnorePatterns: ['playwright'],
23+
coveragePathIgnorePatterns: ['playwright'],
2524
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
2625
modulePaths: ['src'],
2726
resolver: 'visyn_scripts/config/jest_export_maps_resolver.js',

0 commit comments

Comments
 (0)