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

Testing: Move config file for unit tests to its own subfolder #3203

Merged
merged 1 commit into from
Oct 31, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,29 +94,28 @@
"(blocks|components|date|editor|element|i18n|utils)/**/*.js"
],
"coveragePathIgnorePatterns": [
"<rootDir>/[^/]+/build/index.js",
".*/story/[^/]+.js"
Copy link
Member Author

@gziolo gziolo Oct 27, 2017

Choose a reason for hiding this comment

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

I can't see any /story/ subfolders inside folders which are scanned when generating code coverage. That's why removed this line.

Copy link
Member

Choose a reason for hiding this comment

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

I imagine this is left-over from when we used React Storybook. Thinking the newer docutron directory should be similarly ignored.

Copy link
Member Author

Choose a reason for hiding this comment

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

‘docutron’ folder is already ignored with the current setup, thanks for clarifying 👍

"<rootDir>/[^/]+/build/index.js"
],
"coverageDirectory": "coverage",
"moduleNameMapper": {
"\\.(scss|css)$": "<rootDir>/test/style-mock.js",
"\\.(scss|css)$": "<rootDir>/test/unit/style-mock.js",
"@wordpress\\/(blocks|components|date|editor|element|i18n|utils)": "$1"
},
"modulePaths": [
"<rootDir>"
],
"setupFiles": [
"<rootDir>/test/setup-globals.js",
"<rootDir>/test/setup-wp-aliases.js"
"<rootDir>/test/unit/setup-globals.js",
"<rootDir>/test/unit/setup-wp-aliases.js"
],
"setupTestFrameworkScriptFile": "<rootDir>/test/setup-test-framework.js",
"setupTestFrameworkScriptFile": "<rootDir>/test/unit/setup-test-framework.js",
"testMatch": [
"<rootDir>/(blocks|components|date|editor|element|i18n|utils)/**/test/*.js"
],
"timers": "fake",
"transform": {
"^.+\\.jsx?$": "babel-jest",
"\\.pegjs$": "<rootDir>/test/pegjs-transform.js"
"\\.pegjs$": "<rootDir>/test/unit/pegjs-transform.js"
},
"verbose": true
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.