Skip to content

Commit

Permalink
fixed jest@24 building error
Browse files Browse the repository at this point in the history
  • Loading branch information
varna committed Jul 17, 2019
1 parent edd8282 commit 7b1f79e
Show file tree
Hide file tree
Showing 5 changed files with 918 additions and 1,741 deletions.
2 changes: 1 addition & 1 deletion __tests__/index.js → __tests__/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Measure, { measureFrom } from '../pkg'
import Measure, { measureFrom } from '../src'

describe('Measure Class', () => {
test('.valueOf()', () => {
Expand Down
File renamed without changes.
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
],
"scripts": {
"version": "pack build",
"test": "pack build && tyu"
"test": "jest",
"dev": "jest --watch"
},
"@pika/pack": {
"pipeline": [
Expand All @@ -43,8 +44,10 @@
"@pika/plugin-build-node": "^0.4.0",
"@pika/plugin-build-web": "^0.4.0",
"@pika/plugin-ts-standard-pkg": "^0.4.0",
"typescript": "^3.5.2",
"tyu": "^1.0.6"
"@types/jest": "^24.0.15",
"jest": "^24.8.0",
"ts-jest": "^24.0.2",
"typescript": "^3.5.2"
},
"dependencies": {}
}
}
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"compilerOptions": {
"target": "es2019",
"module": "esnext",
"esModuleInterop": true
"esModuleInterop": true,
"moduleResolution": "node"
},
"include": ["src/index.ts"],
"exclude": [".vscode", "node_modules", "pkg", "src/__tests__"]
Expand Down
Loading

0 comments on commit 7b1f79e

Please sign in to comment.