Skip to content

Commit

Permalink
fix jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Nov 2, 2019
1 parent 335add9 commit 4672fb5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"enquirer": "^2.3.1",
"eslint": "^6.6.0",
"husky": "3.0.5",
"jest": "^24.9.0",
"lerna": "3.16.4",
"lint-staged": "8.1.6",
"prettier": "1.18.2",
Expand Down
4 changes: 4 additions & 0 deletions packages/saber/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
testPathIgnorePatterns: ['/node_modules/', '<rootDir>/types/'],
testEnvironment: 'node'
}
3 changes: 1 addition & 2 deletions packages/saber/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"/declarations.d.ts"
],
"scripts": {
"test": "tsc && jest --env node",
"test": "tsc && jest",
"prepublishOnly": "yarn build",
"build": "tsc",
"lint": "eslint src --ext js,ts",
Expand Down Expand Up @@ -80,7 +80,6 @@
"@types/lodash.merge": "^4.6.6",
"@types/resolve-from": "5.0.1",
"@types/webpack": "4.39.1",
"jest": "24.9.0",
"markdown-it-footnote": "3.0.2"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7540,7 +7540,7 @@ jest-worker@^24.6.0, jest-worker@^24.9.0:
merge-stream "^2.0.0"
supports-color "^6.1.0"

[email protected]:
jest@^24.9.0:
version "24.9.0"
resolved "https://registry.yarnpkg.com/jest/-/jest-24.9.0.tgz#987d290c05a08b52c56188c1002e368edb007171"
integrity sha512-YvkBL1Zm7d2B1+h5fHEOdyjCG+sGMz4f8D86/0HiqJ6MB4MnDc8FgP5vdWsGnemOQro7lnYo8UakZ3+5A0jxGw==
Expand Down

0 comments on commit 4672fb5

Please sign in to comment.