Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
module.exports = {
preset: '@react-native/jest-preset',
setupFiles: ['<rootDir>/src/__mocks__/jest.setup.ts'],
setupFilesAfterEnv: [
'<rootDir>/node_modules/@testing-library/jest-native/extend-expect',
],
testMatch: ['<rootDir>/src/**/*.(test|spec).[jt]s?(x)'],
transformIgnorePatterns: [
'node_modules/(?!(react-native|@react-native|@react-navigation|react-native-screens|react-native-safe-area-context|react-native-gesture-handler|react-native-webview)/)',
Expand Down
2 changes: 2 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ pre-commit:
run: npx tsc
circular:
glob: "src/**/*.{ts,tsx}"
env:
CI: "true"
run: yarn check:circular
# version-check:
# glob: "package.json"
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,8 @@
"@react-native/typescript-config": "0.85.3",
"@react-navigation/native": "^7.1.14",
"@release-it/conventional-changelog": "^9.0.4",
"@testing-library/jest-native": "^5.4.3",
"@testing-library/react-native": "^13.3.3",
"@types/jest": "^29.5.5",
"@types/jest": "^29.5.14",
"@types/react": "^19.2.0",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/parser": "^8.13.0",
Expand Down Expand Up @@ -114,6 +113,8 @@
},
"resolutions": {
"@types/react": "^19.2.0",
"babel-jest": "29.7.0",
"jest-environment-node": "29.7.0",
"eslint-plugin-ft-flow": "^3.0.11"
},
"peerDependencies": {
Expand Down
32 changes: 7 additions & 25 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2264,9 +2264,8 @@ __metadata:
"@react-native/typescript-config": 0.85.3
"@react-navigation/native": ^7.1.14
"@release-it/conventional-changelog": ^9.0.4
"@testing-library/jest-native": ^5.4.3
"@testing-library/react-native": ^13.3.3
"@types/jest": ^29.5.5
"@types/jest": ^29.5.14
"@types/react": ^19.2.0
"@typescript-eslint/eslint-plugin": ^8.13.0
"@typescript-eslint/parser": ^8.13.0
Expand Down Expand Up @@ -3532,23 +3531,6 @@ __metadata:
languageName: node
linkType: hard

"@testing-library/jest-native@npm:^5.4.3":
version: 5.4.3
resolution: "@testing-library/jest-native@npm:5.4.3"
dependencies:
chalk: ^4.1.2
jest-diff: ^29.0.1
jest-matcher-utils: ^29.0.1
pretty-format: ^29.0.3
redent: ^3.0.0
peerDependencies:
react: ">=16.0.0"
react-native: ">=0.59"
react-test-renderer: ">=16.0.0"
checksum: 2a4ebfeff09523860771cfddac6fcc3faa2f855dc63255b9efc016e727132320f16f935cec9717d6d79cfa6715fce6ded877215c8ec85d236a5c3136a65b1020
languageName: node
linkType: hard

"@testing-library/react-native@npm:^13.3.3":
version: 13.3.3
resolution: "@testing-library/react-native@npm:13.3.3"
Expand Down Expand Up @@ -3683,7 +3665,7 @@ __metadata:
languageName: node
linkType: hard

"@types/jest@npm:^29.5.13, @types/jest@npm:^29.5.5":
"@types/jest@npm:^29.5.13, @types/jest@npm:^29.5.14":
version: 29.5.14
resolution: "@types/jest@npm:29.5.14"
dependencies:
Expand Down Expand Up @@ -4707,7 +4689,7 @@ __metadata:
languageName: node
linkType: hard

"babel-jest@npm:^29.7.0":
"babel-jest@npm:29.7.0":
version: 29.7.0
resolution: "babel-jest@npm:29.7.0"
dependencies:
Expand Down Expand Up @@ -9103,7 +9085,7 @@ __metadata:
languageName: node
linkType: hard

"jest-diff@npm:^29.0.1, jest-diff@npm:^29.7.0":
"jest-diff@npm:^29.7.0":
version: 29.7.0
resolution: "jest-diff@npm:29.7.0"
dependencies:
Expand Down Expand Up @@ -9137,7 +9119,7 @@ __metadata:
languageName: node
linkType: hard

"jest-environment-node@npm:^29.7.0":
"jest-environment-node@npm:29.7.0":
version: 29.7.0
resolution: "jest-environment-node@npm:29.7.0"
dependencies:
Expand Down Expand Up @@ -9191,7 +9173,7 @@ __metadata:
languageName: node
linkType: hard

"jest-matcher-utils@npm:^29.0.1, jest-matcher-utils@npm:^29.7.0":
"jest-matcher-utils@npm:^29.7.0":
version: 29.7.0
resolution: "jest-matcher-utils@npm:29.7.0"
dependencies:
Expand Down Expand Up @@ -11767,7 +11749,7 @@ __metadata:
languageName: node
linkType: hard

"pretty-format@npm:^29.0.0, pretty-format@npm:^29.0.3, pretty-format@npm:^29.7.0":
"pretty-format@npm:^29.0.0, pretty-format@npm:^29.7.0":
version: 29.7.0
resolution: "pretty-format@npm:29.7.0"
dependencies:
Expand Down
Loading