Skip to content

Commit

Permalink
test: ✅ Ran test for api and ts
Browse files Browse the repository at this point in the history
  • Loading branch information
uttamukkoji committed Oct 21, 2021
1 parent ffe1cb1 commit 025e7ac
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 25 deletions.
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
forceExit:true,
transform: {
"^.+\\.(t|j)sx?$": "ts-jest",
"^.+\\.(ts|tsx|js|jsx)$": "babel-jest"
},
reporters: [
"default",
["jest-html-reporters",
Expand Down
58 changes: 36 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"scripts": {
"test": "npm run test:e2e && npm run test:typescript",
"test:e2e": "istanbul cover tape test/index.js | tap-html --out ./tap-html.html",
"test:typescript": "jest --testPathPattern=test/typescript",
"test:typescript": "jest --config jest.config.js --testPathPattern=test/typescript",
"automate": "node test.js",
"build:node": "webpack --config webpack/webpack.node.js",
"build:web": "webpack --config webpack/webpack.web.js",
Expand Down Expand Up @@ -90,7 +90,7 @@
"tap-html": "^1.0.1",
"tap-json": "1.0.0",
"tape": "4.8.0",
"ts-jest": "^26.5.6",
"ts-jest": "^27.0.0-next.12",
"typescript": "^4.4.3",
"uglify-js": "2.8.29",
"webpack": "^5.59.0",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"strictNullChecks": true,
"types": ["jest"],
"noEmit": true,
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"allowJs": true
},
"files": ["index.d.ts"]
}
Expand Down

0 comments on commit 025e7ac

Please sign in to comment.