Skip to content

Commit

Permalink
chore(jest): move Jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Mar 4, 2019
1 parent 5af0d77 commit f1b0f0d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"lint:fix": "eslint . --fix && tslint --project . --fix",
"type-check": "tsc",
"type-check:watch": "yarn type-check --watch",
"test": "jest",
"test:watch": "jest --watch --bail",
"test": "jest --config scripts/jest/config.js",
"test:watch": "jest --config scripts/jest/config.js --watch --bail",
"test:size": "bundlesize",
"test:functional": "wdio functional-tests/wdio.conf.js",
"test:functional:dev": "babel-node scripts/dev-functional-tests",
Expand Down
3 changes: 2 additions & 1 deletion jest.config.js → scripts/jest/config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/* eslint-disable import/no-commonjs */

module.exports = {
rootDir: process.cwd(),
testPathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/dist*',
'<rootDir>/functional-tests',
],
setupFilesAfterEnv: ['./scripts/jest/init.js'],
setupFilesAfterEnv: ['./scripts/jest/setupTests.js'],
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname',
Expand Down
File renamed without changes.

0 comments on commit f1b0f0d

Please sign in to comment.