Skip to content

Commit

Permalink
test: support parameter decorator.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 4, 2023
1 parent c3d3be1 commit ac76832
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"@babel/preset-typescript": "~7.21.0",
"@types/jest": "^29.5.0",
"babel-jest": "^29.5.0",
"babel-plugin-parameter-decorator": "^1.0.16",
"babel-preset-react-app": "^10.0.1",
"camelcase": "~6.3.0",
"identity-obj-proxy": "^3.0.0",
Expand Down
1 change: 1 addition & 0 deletions packages/jest/src/transform/babel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export default babelJest.createTransformer({
*/
require('babel-plugin-transform-import-meta').default,
[require('@babel/plugin-proposal-decorators').default, { legacy: true }],
[require('babel-plugin-parameter-decorator')],
[require('@babel/plugin-proposal-class-properties').default, { loose: true }],
[
require('@babel/plugin-proposal-private-methods').default,
Expand Down

0 comments on commit ac76832

Please sign in to comment.