hermes-test 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/src/harness.ts +4 -0
- package/src/store.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hermes-test",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "147x faster than Jest. Test runner for React Native and Expo that runs in Hermes.",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"react": ">=18"
|
|
51
51
|
},
|
|
52
52
|
"optionalDependencies": {
|
|
53
|
-
"@hermes-test/darwin-arm64": "0.2.
|
|
54
|
-
"@hermes-test/darwin-x64": "0.2.
|
|
55
|
-
"@hermes-test/linux-x64": "0.2.
|
|
53
|
+
"@hermes-test/darwin-arm64": "0.2.3",
|
|
54
|
+
"@hermes-test/darwin-x64": "0.2.3",
|
|
55
|
+
"@hermes-test/linux-x64": "0.2.3"
|
|
56
56
|
},
|
|
57
57
|
"files": [
|
|
58
58
|
"src/",
|
package/src/harness.ts
CHANGED
|
@@ -340,6 +340,10 @@ function resetRegistry(): void {
|
|
|
340
340
|
beforeAllHooks.length = 0;
|
|
341
341
|
afterAllHooks.length = 0;
|
|
342
342
|
currentGroup = undefined;
|
|
343
|
+
// Clear mock and spy state for clean watch reruns
|
|
344
|
+
clearAllMocks();
|
|
345
|
+
if ((globalThis as any).__HT_file_mocks) (globalThis as any).__HT_file_mocks = {};
|
|
346
|
+
resetMockModulePatches();
|
|
343
347
|
}
|
|
344
348
|
|
|
345
349
|
// Expose to the global scope for the harness entry
|
package/src/store.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
// withStore: quick identity-reducer store for any state shape
|
|
5
5
|
// withAppReducer: real app reducer with patchState + real actions
|
|
6
6
|
|
|
7
|
+
// @ts-nocheck
|
|
7
8
|
import React from 'react';
|
|
8
9
|
import { Provider } from 'react-redux';
|
|
9
10
|
import { configureStore } from '@reduxjs/toolkit';
|