Skip to content

Commit

Permalink
Only run test from root directory
Browse files Browse the repository at this point in the history
  • Loading branch information
chenesan committed Mar 13, 2019
1 parent de7618c commit d33ccd1
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 51 deletions.
3 changes: 2 additions & 1 deletion config/jest.config.base.js → config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ module.exports = {
testEnvironment: 'jsdom',
globals: {
'ts-jest': {
tsConfig: '<rootDir>/src/tsconfig.json',
tsConfig: '<rootDir>/config/tsconfig.base.json',
},
},
setupFilesAfterEnv: ['<rootDir>/setupTests.js'],
rootDir: '../',
};
3 changes: 0 additions & 3 deletions jest.config.js

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"prepublish": "lerna run prepublish",
"lint": "lerna run lint --parallel --stream",
"clean": "lerna run --parallel clean",
"test": "jest",
"test:watch": "jest --watch"
"test": "jest ./packages --config=config/jest.config.js --coverage",
"test:watch": "jest ./packages --watch --config=config/jest.config.js"
},
"devDependencies": {
"@types/d3": "^5.7.0",
Expand Down
8 changes: 0 additions & 8 deletions packages/animation/jest.config.js

This file was deleted.

4 changes: 1 addition & 3 deletions packages/animation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
"build:esm": "tsc -p ./src/tsconfig.esm.json",
"build:cjs": "tsc -p ./src/tsconfig.cjs.json",
"clean": "rimraf ./dist ./lib ./es5 ./deploy",
"lint": "tslint --project ./src",
"test": "jest",
"test:watch": "jest --watch"
"lint": "tslint --project ./src"
},
"peerDependencies": {
"prop-types": "^15.7.1",
Expand Down
4 changes: 0 additions & 4 deletions packages/animation/setupTests.js

This file was deleted.

8 changes: 0 additions & 8 deletions packages/chart/jest.config.js

This file was deleted.

4 changes: 1 addition & 3 deletions packages/chart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
"build:esm": "tsc -p ./src/tsconfig.esm.json",
"build:cjs": "tsc -p ./src/tsconfig.cjs.json",
"clean": "rimraf ./dist ./lib ./es5 ./deploy",
"lint": "tslint --project ./src",
"test": "jest",
"test:watch": "jest --watch"
"lint": "tslint --project ./src"
},
"peerDependencies": {
"prop-types": "^15.7.1",
Expand Down
4 changes: 0 additions & 4 deletions packages/chart/setupTests.js

This file was deleted.

8 changes: 0 additions & 8 deletions packages/graph/jest.config.js

This file was deleted.

4 changes: 1 addition & 3 deletions packages/graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
"build:esm": "tsc -p ./src/tsconfig.esm.json",
"build:cjs": "tsc -p ./src/tsconfig.cjs.json",
"clean": "rimraf ./dist ./lib ./es5 ./deploy",
"lint": "tslint --project ./src",
"test": "jest",
"test:watch": "jest --watch"
"lint": "tslint --project ./src"
},
"peerDependencies": {
"prop-types": "^15.7.1",
Expand Down
4 changes: 0 additions & 4 deletions packages/graph/setupTests.js

This file was deleted.

0 comments on commit d33ccd1

Please sign in to comment.