Skip to content

Commit

Permalink
test(jest): add jest dependencies and update tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
abdes committed Jan 1, 2020
1 parent bda9ae5 commit 49de209
Show file tree
Hide file tree
Showing 4 changed files with 2,825 additions and 51 deletions.
9 changes: 9 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['./lib'],
testMatch: ['**/__tests__/**/*.+(ts)', '**/?(*.)+(spec|test).+(ts)'],
transform: {
'^.+\\.(ts)$': 'ts-jest'
}
};
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
"build": "yarn build:dockerimage && yarn build:emscripten && yarn build:lib",
"clean": "rimraf build dist",
"lint": "eslint . --ext .js,.ts",
"test": "jest",
"changelog": "auto-changelog -p && git add CHANGELOG.md"
},
"devDependencies": {
"@types/jest": "^24.0.25",
"@types/node": "^13.1.2",
"@typescript-eslint/eslint-plugin": "^2.14.0",
"@typescript-eslint/parser": "^2.14.0",
Expand All @@ -35,10 +37,12 @@
"eslint-config-google": "^0.14.0",
"eslint-config-prettier": "^6.9.0",
"eslint-plugin-prettier": "^3.1.2",
"jest": "^24.9.0",
"napa": "^3.0.0",
"node": "^13.5.0",
"prettier-eslint": "^9.0.1",
"rimraf": "^3.0.0",
"ts-jest": "^24.2.0",
"typescript": "^3.7.4",
"typescript-eslint": "^0.0.1-alpha.0"
},
Expand Down
7 changes: 6 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@
"sourceMap": true,
"declaration": true
},
"exclude": ["dist", "build"]
"exclude": [
"dist",
"build",
"**/__tests__/**/*.+(ts)",
"**/?(*.)+(spec|test).+(ts)"
]
}
Loading

0 comments on commit 49de209

Please sign in to comment.