Skip to content

Commit 025e7ac

Browse files
committed
test: ✅ Ran test for api and ts
1 parent ffe1cb1 commit 025e7ac

File tree

4 files changed

+44
-25
lines changed

4 files changed

+44
-25
lines changed

jest.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ module.exports = {
22
preset: 'ts-jest',
33
testEnvironment: 'node',
44
forceExit:true,
5+
transform: {
6+
"^.+\\.(t|j)sx?$": "ts-jest",
7+
"^.+\\.(ts|tsx|js|jsx)$": "babel-jest"
8+
},
59
reporters: [
610
"default",
711
["jest-html-reporters",

package-lock.json

Lines changed: 36 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"scripts": {
1515
"test": "npm run test:e2e && npm run test:typescript",
1616
"test:e2e": "istanbul cover tape test/index.js | tap-html --out ./tap-html.html",
17-
"test:typescript": "jest --testPathPattern=test/typescript",
17+
"test:typescript": "jest --config jest.config.js --testPathPattern=test/typescript",
1818
"automate": "node test.js",
1919
"build:node": "webpack --config webpack/webpack.node.js",
2020
"build:web": "webpack --config webpack/webpack.web.js",
@@ -90,7 +90,7 @@
9090
"tap-html": "^1.0.1",
9191
"tap-json": "1.0.0",
9292
"tape": "4.8.0",
93-
"ts-jest": "^26.5.6",
93+
"ts-jest": "^27.0.0-next.12",
9494
"typescript": "^4.4.3",
9595
"uglify-js": "2.8.29",
9696
"webpack": "^5.59.0",

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"strictNullChecks": true,
88
"types": ["jest"],
99
"noEmit": true,
10-
"forceConsistentCasingInFileNames": true
10+
"forceConsistentCasingInFileNames": true,
11+
"allowJs": true
1112
},
1213
"files": ["index.d.ts"]
1314
}

0 commit comments

Comments
 (0)