Skip to content

Commit

Permalink
test: 修复单元测试无法运行的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikaibenkai committed Mar 17, 2024
1 parent b20a462 commit cfb3d1b
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 4 deletions.
7 changes: 3 additions & 4 deletions jest.config.ts → jest.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import type { Config } from 'jest'

export default {
/** @type{import('jest').Config} */
module.exports = {
collectCoverage: true,
transform: {
'^.+\\.(t|j)sx?$': '@swc/jest',
},
} satisfies Config
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
},
"devDependencies": {
"@antfu/eslint-config": "^2.6.3",
"@babel/preset-typescript": "^7.23.3",
"@inquirer/prompts": "^4.0.0",
"@shikijs/vitepress-twoslash": "^1.2.0",
"@swc/core": "^1.3.100",
Expand Down
100 changes: 100 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit cfb3d1b

Please sign in to comment.