Skip to content

Commit

Permalink
test: add better-sqlite3 to aid on sql dependent tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorJorgeFGA committed Aug 25, 2024
1 parent a614157 commit 1d39017
Show file tree
Hide file tree
Showing 3 changed files with 261 additions and 0 deletions.
9 changes: 9 additions & 0 deletions jest-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,12 @@ module.exports = {
jest.mock("@react-native-async-storage/async-storage", () =>
require("@react-native-async-storage/async-storage/jest/async-storage-mock"),
);

jest.mock(
'@nozbe/watermelondb/adapters/sqlite/makeDispatcher/index.native.js',
() => {
return jest.requireActual(
'@nozbe/watermelondb/adapters/sqlite/makeDispatcher/index.js',
);
},
);
251 changes: 251 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"@types/jest": "^29.5.6",
"@types/react": "~18.2.79",
"@types/react-native-vector-icons": "^6.4.16",
"better-sqlite3": "^11.2.1",
"eslint": "^8.52.0",
"eslint-config-universe": "^12.0.0",
"jest-sonar-reporter": "^2.0.0",
Expand Down

0 comments on commit 1d39017

Please sign in to comment.