mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
tests: add jest
This commit is contained in:
parent
7b789350df
commit
dd757fbef4
3 changed files with 3536 additions and 132 deletions
3645
package-lock.json
generated
3645
package-lock.json
generated
File diff suppressed because it is too large
Load diff
20
package.json
20
package.json
|
@ -2,12 +2,17 @@
|
|||
"name": "tridactyl",
|
||||
"version": "0.1.0",
|
||||
"description": "Vimperator/Pentadactyl successor",
|
||||
"dependencies": {},
|
||||
"dependencies": {
|
||||
"@sweet-js/cli": "^3.0.13"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^21.1.1",
|
||||
"awesome-typescript-loader": "^3.2.3",
|
||||
"copy-webpack-plugin": "^4.1.0",
|
||||
"jest": "^21.2.1",
|
||||
"shared-git-hooks": "^1.2.1",
|
||||
"source-map-loader": "^0.2.2",
|
||||
"ts-jest": "^21.0.1",
|
||||
"typescript": "^2.5.3",
|
||||
"uglify-es": "^3.1.2",
|
||||
"uglifyjs-webpack-plugin": "^1.0.0-beta.2",
|
||||
|
@ -20,5 +25,18 @@
|
|||
"test": "npm run build",
|
||||
"update-buildsystem": "rm -rf src/node_modules; npm run clean"
|
||||
},
|
||||
"jest": {
|
||||
"transform": {
|
||||
"^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
|
||||
},
|
||||
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
|
||||
"moduleFileExtensions": [
|
||||
"ts",
|
||||
"tsx",
|
||||
"js",
|
||||
"jsx",
|
||||
"json"
|
||||
]
|
||||
},
|
||||
"author": "Colin Caine"
|
||||
}
|
||||
|
|
|
@ -11,5 +11,8 @@
|
|||
},
|
||||
"include": [
|
||||
"./src/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"./src/**/*.test.ts"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue