Skip to content

Commit

Permalink
add jest
Browse files Browse the repository at this point in the history
  • Loading branch information
kesha-antonov committed Mar 15, 2024
1 parent feb0a58 commit 6cc5891
Show file tree
Hide file tree
Showing 5 changed files with 1,717 additions and 15 deletions.
1 change: 1 addition & 0 deletions example/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = {
'@babel/preset-typescript',
],
plugins: [
'@babel/plugin-syntax-jsx',
'react-native-reanimated/plugin',
],
}
1 change: 1 addition & 0 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@types/react-native": "^0.72.8",
"@types/react-test-renderer": "^18.0.7",
"babel-jest": "^29.7.0",
"babel-plugin-syntax-jsx": "^6.18.0",
"eslint": "^8.57.0",
"eslint-config-standard": "^17.1.0",
"eslint-config-standard-jsx": "^11.0.0",
Expand Down
5 changes: 5 additions & 0 deletions example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2637,6 +2637,11 @@ babel-plugin-polyfill-regenerator@^0.5.5:
dependencies:
"@babel/helper-define-polyfill-provider" "^0.5.0"

babel-plugin-syntax-jsx@^6.18.0:
version "6.18.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946"
integrity sha512-qrPaCSo9c8RHNRHIotaufGbuOBN8rtdC4QrrFFc43vyWCCz7Kl7GL1PGaXtMGQZUXrkCjNEgxDfmAuAabr/rlw==

babel-plugin-transform-flow-enums@^0.0.2:
version "0.0.2"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-enums/-/babel-plugin-transform-flow-enums-0.0.2.tgz#d1d0cc9bdc799c850ca110d0ddc9f21b9ec3ef25"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"package.json",
"src/"
],

"scripts": {
"autofix": "eslint -c .eslintrc.js --ext .ts,.tsx --fix .",
"bump": "npm version patch",
Expand All @@ -38,6 +37,7 @@
"@types/react-native": "^0.72.8",
"eslint": "^8.56.0",
"eslint-plugin-import": "^2.29.1",
"jest": "^29.7.0",
"react-native-gesture-handler": "^2.14.0",
"react-native-reanimated": "^3.6.1",
"typescript": "^5.3.3"
Expand Down
Loading

0 comments on commit 6cc5891

Please sign in to comment.