make jest work with js and ts
This commit is contained in:
parent
199ab2ba31
commit
11ff89501d
9
jest.config.js
Normal file
9
jest.config.js
Normal file
@ -0,0 +1,9 @@
|
||||
module.exports = {
|
||||
"roots": [
|
||||
"./src"
|
||||
],
|
||||
"transform": {
|
||||
"^.+\\.ts$": "ts-jest",
|
||||
"^.+\\.js$": "babel-jest",
|
||||
},
|
||||
}
|
10
package.json
10
package.json
@ -7,8 +7,12 @@
|
||||
"@babel/cli": "^7.6.4",
|
||||
"@babel/core": "^7.6.4",
|
||||
"@babel/preset-env": "^7.6.3",
|
||||
"@types/lodash": "^4.14.144",
|
||||
"babel-jest": "^24.9.0",
|
||||
"jest": "^24.9.0",
|
||||
"ts-jest": "^24.1.0",
|
||||
"tsd": "^0.10.0",
|
||||
"typescript": "^3.6.4",
|
||||
"updeep": "^1.2.0"
|
||||
},
|
||||
"license": "MIT",
|
||||
@ -25,11 +29,13 @@
|
||||
"url": "git+https://github.com/yanick/updux.git"
|
||||
},
|
||||
"keywords": [
|
||||
"redux", "updeep"
|
||||
"redux",
|
||||
"updeep"
|
||||
],
|
||||
"author": "Yanick Champoux <yanick@babyl.ca> (http://techblog.babyl.ca)",
|
||||
"bugs": {
|
||||
"url": "https://github.com/yanick/updux/issues"
|
||||
},
|
||||
"homepage": "https://github.com/yanick/updux#readme"
|
||||
"homepage": "https://github.com/yanick/updux#readme",
|
||||
"types": "./index.d.ts"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user