Skip to content

Commit

Permalink
Add ts-jest
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Nov 12, 2021
1 parent 841766f commit 5e18415
Show file tree
Hide file tree
Showing 5 changed files with 1,973 additions and 229 deletions.
22 changes: 0 additions & 22 deletions babel.config.js

This file was deleted.

5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
};
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"esm"
],
"scripts": {
"test": "tsdx test",
"test": "jest",
"clean": "rimraf dist",
"coverage": "npm test -- --coverage",
"lint": "eslint src test",
Expand All @@ -40,7 +40,7 @@
"genomics"
],
"devDependencies": {
"@babel/plugin-transform-runtime": "^7.16.0",
"@types/jest": "^27.0.2",
"@types/node": "^16.11.7",
"@typescript-eslint/eslint-plugin": "^4.28.5",
"@typescript-eslint/parser": "^4.28.5",
Expand All @@ -51,10 +51,12 @@
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-tsdoc": "^0.2.14",
"jest": "^27.3.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.3.2",
"tmp-promise": "^3.0.2",
"ts-jest": "^27.0.7",
"tslib": "^2.3.1",
"typescript": "^4.3.5"
"typescript": "^4.4.4"
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"include": ["src"],
"compilerOptions": {
"target": "esnext",
"types": ["node"],
"types": ["node", "jest"],
"outDir": "dist",
"lib": ["dom", "esnext"],
"importHelpers": true,
Expand Down
Loading

0 comments on commit 5e18415

Please sign in to comment.