Skip to content

Commit 286f4d9

Browse files
committed
fix jest
1 parent bb2a59e commit 286f4d9

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

hackathon/spacecraft/jest.setup.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@ jest.mock("react-native-reanimated", () => {
99

1010
// The mock for `call` immediately calls the callback which is incorrect
1111
// So we override it with a no-op
12-
Reanimated.default.call = () => {};
12+
Reanimated.default.call = () => { };
1313

1414
return Reanimated;
1515
});
1616

17-
// Silence the warning: Animated: `useNativeDriver` is not supported because the native animated module is missing
18-
jest.mock("react-native/Libraries/Animated/NativeAnimatedHelper");
19-
2017
// fixing `ReferenceError: You are trying to `import` a file after the Jest environment has been torn down.`
2118
jest.useFakeTimers();

hackathon/spacecraft/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"@types/react-dom": "~18.3.1",
8585
"@typescript-eslint/eslint-plugin": "^7.11.0",
8686
"@typescript-eslint/parser": "^7.11.0",
87-
"app-icon-badge": "^0.0.15",
87+
"app-icon-badge": "^0.1.2",
8888
"babel-loader": "^9.1.3",
8989
"babel-plugin-module-resolver": "^5.0.0",
9090
"babel-plugin-transform-remove-console": "^6.9.4",

hackathon/spacecraft/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5423,10 +5423,10 @@ anymatch@^3.0.0, anymatch@^3.0.3, anymatch@~3.1.2:
54235423
normalize-path "^3.0.0"
54245424
picomatch "^2.0.4"
54255425

5426-
app-icon-badge@^0.0.15:
5427-
version "0.0.15"
5428-
resolved "https://registry.yarnpkg.com/app-icon-badge/-/app-icon-badge-0.0.15.tgz#83e6a2cc9d8c6b2e307c40067b80a879ebebdb16"
5429-
integrity sha512-k4973RJKXvvoJRYnNFh1mg0NoA6czIHaxzL9557JxsCwSJVaqoZg2lMCgFC+3cOMiKzwQmBK41Ec2kM7RJkefg==
5426+
app-icon-badge@^0.1.2:
5427+
version "0.1.2"
5428+
resolved "https://registry.yarnpkg.com/app-icon-badge/-/app-icon-badge-0.1.2.tgz#4df187989429fc282de4ee3fe0c3ee683a9a3f22"
5429+
integrity sha512-k9IEyaRFWEBjuazjgJIf6DnypoXppdxn0olkCQvts83VBehg1vm3IIp6HJpGpfDsUgymNJkYd7r8Q4pDfO6cpw==
54305430
dependencies:
54315431
color-convert "^2.0.1"
54325432
commander "^11.0.0"

0 commit comments

Comments
 (0)