Skip to content

Commit

Permalink
chore: change jest transpiler
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Jun 1, 2024
1 parent 5358b72 commit 790251c
Show file tree
Hide file tree
Showing 3 changed files with 850 additions and 48 deletions.
6 changes: 6 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
presets: [
['@babel/preset-env', {targets: {node: 'current'}}],
'@babel/preset-typescript',
],
};
17 changes: 16 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,30 @@
]
},
"devDependencies": {
"@babel/preset-env": "^7.24.6",
"@babel/preset-typescript": "^7.24.6",
"@jest/globals": "^29.7.0",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.12",
"cmake-js": "^7.3.0",
"jest": "^29.7.0",
"ts-jest": "^29.1.3",
"typescript": "^5.4.5"
},
"dependencies": {
"node-addon-api": "^8.0.0"
},
"jest": {
"testEnvironment": "node",
"testMatch": [
"**/*.test.ts"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
}
}
Loading

0 comments on commit 790251c

Please sign in to comment.