Skip to content

Commit

Permalink
add jest
Browse files Browse the repository at this point in the history
  • Loading branch information
wangcheng committed Dec 3, 2024
1 parent 9d37022 commit 8645381
Show file tree
Hide file tree
Showing 3 changed files with 1,642 additions and 132 deletions.
8 changes: 8 additions & 0 deletions packages/connect-miniprogram/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('ts-jest').JestConfigWithTsJest} **/
module.exports = {
testEnvironment: 'node',
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
transform: {
'^.+.tsx?$': ['ts-jest', {}],
},
};
5 changes: 4 additions & 1 deletion packages/connect-miniprogram/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,15 @@
"devDependencies": {
"@bufbuild/protobuf": "^2.2.0",
"@connectrpc/connect": "~2.0.0",
"@jest/globals": "^29.7.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"eslint": "^8.57.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"jest": "^29.7.0",
"miniprogram-api-typings": "^4.0.2",
"prettier": "^3.3.3",
"typescript": "^5.6.3"
"ts-jest": "^29.2.5",
"typescript": "^5.7.2"
}
}
Loading

0 comments on commit 8645381

Please sign in to comment.