Skip to content

Commit

Permalink
Testing: Move config file for unit tests to its own subfolder (#3203)
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo authored Oct 31, 2017
1 parent 27f81fd commit 2f68cee
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
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"
"<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.

0 comments on commit 2f68cee

Please sign in to comment.