Skip to content

Commit 98d16b3

Browse files
committed
Use ts-jest as preprocessor
1 parent 0dd71f9 commit 98d16b3

File tree

4 files changed

+533
-483
lines changed

4 files changed

+533
-483
lines changed

jest.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
moduleFileExtensions: ['ts', 'js'],
33
transform: {
4-
'^.+\\.ts$': '<rootDir>/preprocessor.js',
4+
'^.+\\.ts$': 'ts-jest',
55
},
66
testMatch: ['**/__tests__/(src|dist).*.ts'],
77
globalSetup: '<rootDir>/prepare-tests.ts',

package.json

+8-7
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,25 @@
99
"license": "MIT",
1010
"devDependencies": {
1111
"@types/chokidar": "^2.1.3",
12-
"@types/jest": "^26.0.7",
12+
"@types/jest": "^26.0.10",
1313
"@types/jsdom": "^16.2.3",
14-
"@types/node": "^14.0.27",
14+
"@types/node": "^14.6.0",
1515
"@types/prettier": "^2.0.2",
1616
"@types/request": "^2.48.5",
1717
"@types/turndown": "^5.0.0",
1818
"chalk": "^4.1.0",
19-
"chokidar": "^3.4.1",
19+
"chokidar": "^3.4.2",
2020
"fast-glob": "^3.2.4",
21-
"flow-bin": "^0.130.0",
22-
"jest": "^26.1.0",
23-
"jsdom": "^16.3.0",
21+
"flow-bin": "^0.131.0",
22+
"jest": "^26.4.0",
23+
"jsdom": "^16.4.0",
2424
"mdn-browser-compat-data": "git+https://github.com/mdn/browser-compat-data.git#e6e952bb934ba31a276237453cf892631ba224ee",
2525
"mdn-data": "git+https://github.com/mdn/data.git#9524ff7200bc5fce9990e49a80e39ddddf759ae6",
2626
"prettier": "^2.0.5",
2727
"request": "^2.88.2",
28+
"ts-jest": "^26.2.0",
2829
"ts-node": "^8.10.2",
29-
"tslint": "^6.1.2",
30+
"tslint": "^6.1.3",
3031
"tslint-config-prettier": "^1.18.0",
3132
"turndown": "^6.0.0",
3233
"typescript": "~4.0.1-rc",

preprocessor.js

-12
This file was deleted.

0 commit comments

Comments
 (0)