@react-native-harness/runtime 1.0.0-alpha.17 → 1.0.0-alpha.19
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/dist/bundler/bundle.d.ts.map +1 -1
- package/dist/bundler/bundle.js +1 -2
- package/dist/collection.d.ts +39 -0
- package/dist/collection.d.ts.map +1 -0
- package/dist/collection.js +224 -0
- package/dist/constants.d.ts +0 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +0 -1
- package/dist/getEntryComponent.d.ts +6 -0
- package/dist/getEntryComponent.d.ts.map +1 -0
- package/dist/getEntryComponent.js +6 -0
- package/dist/module.d.ts +3 -0
- package/dist/module.d.ts.map +1 -0
- package/dist/module.js +26 -0
- package/dist/module.web.d.ts +2 -0
- package/dist/module.web.d.ts.map +1 -0
- package/dist/module.web.js +12 -0
- package/dist/package.json +37 -0
- package/dist/rntl/client.d.ts +3 -0
- package/dist/rntl/client.d.ts.map +1 -0
- package/dist/rntl/client.js +8 -0
- package/{out-tsc/vitest/src/collector/functions.d.ts → dist/rntl/describe.d.ts} +21 -4
- package/dist/rntl/describe.d.ts.map +1 -0
- package/dist/rntl/describe.js +216 -0
- package/dist/rntl/expect.d.ts +11 -0
- package/dist/rntl/expect.d.ts.map +1 -0
- package/dist/rntl/expect.js +19 -0
- package/dist/rntl/fn.d.ts +2 -0
- package/dist/rntl/fn.d.ts.map +1 -0
- package/dist/rntl/fn.js +1 -0
- package/dist/rntl/render.d.ts +4 -0
- package/dist/rntl/render.d.ts.map +1 -0
- package/dist/rntl/render.js +11 -0
- package/dist/rntl/screen.d.ts +45 -0
- package/dist/rntl/screen.d.ts.map +1 -0
- package/dist/rntl/screen.js +31 -0
- package/dist/rntl/userEvent.d.ts +22 -0
- package/dist/rntl/userEvent.d.ts.map +1 -0
- package/dist/rntl/userEvent.js +19 -0
- package/dist/runner.d.ts +4 -0
- package/dist/runner.d.ts.map +1 -0
- package/dist/runner.js +115 -0
- package/{out-tsc/vitest/src/client/factory.d.ts → dist/runtime.d.ts} +1 -1
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +39 -0
- package/dist/state.d.ts +25 -0
- package/dist/state.d.ts.map +1 -0
- package/dist/state.js +37 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/ui/ReadyScreen.d.ts.map +1 -1
- package/dist/ui/ReadyScreen.js +2 -10
- package/dist/ui/UI.d.ts +13 -0
- package/dist/ui/UI.d.ts.map +1 -0
- package/dist/ui/UI.js +121 -0
- package/dist/ui/WrongEnvironmentScreen.d.ts.map +1 -1
- package/dist/ui/WrongEnvironmentScreen.js +2 -10
- package/dist/ui/state.d.ts +2 -2
- package/package.json +5 -8
- package/src/constants.ts +0 -1
- package/src/ui/ReadyScreen.tsx +0 -12
- package/src/ui/WrongEnvironmentScreen.tsx +1 -19
- package/assets/logo.png +0 -0
- package/out-tsc/vitest/src/__tests__/collector.test.d.ts +0 -2
- package/out-tsc/vitest/src/__tests__/collector.test.d.ts.map +0 -1
- package/out-tsc/vitest/src/__tests__/error-handling.test.d.ts +0 -2
- package/out-tsc/vitest/src/__tests__/error-handling.test.d.ts.map +0 -1
- package/out-tsc/vitest/src/__tests__/expect.test.d.ts +0 -2
- package/out-tsc/vitest/src/__tests__/expect.test.d.ts.map +0 -1
- package/out-tsc/vitest/src/__tests__/spy.test.d.ts +0 -2
- package/out-tsc/vitest/src/__tests__/spy.test.d.ts.map +0 -1
- package/out-tsc/vitest/src/bundler/bundle.d.ts +0 -2
- package/out-tsc/vitest/src/bundler/bundle.d.ts.map +0 -1
- package/out-tsc/vitest/src/bundler/errors.d.ts +0 -15
- package/out-tsc/vitest/src/bundler/errors.d.ts.map +0 -1
- package/out-tsc/vitest/src/bundler/evaluate.d.ts +0 -2
- package/out-tsc/vitest/src/bundler/evaluate.d.ts.map +0 -1
- package/out-tsc/vitest/src/bundler/factory.d.ts +0 -3
- package/out-tsc/vitest/src/bundler/factory.d.ts.map +0 -1
- package/out-tsc/vitest/src/bundler/index.d.ts +0 -4
- package/out-tsc/vitest/src/bundler/index.d.ts.map +0 -1
- package/out-tsc/vitest/src/bundler/types.d.ts +0 -7
- package/out-tsc/vitest/src/bundler/types.d.ts.map +0 -1
- package/out-tsc/vitest/src/client/factory.d.ts.map +0 -1
- package/out-tsc/vitest/src/client/getDeviceDescriptor.d.ts +0 -8
- package/out-tsc/vitest/src/client/getDeviceDescriptor.d.ts.map +0 -1
- package/out-tsc/vitest/src/client/getWSServer.d.ts +0 -2
- package/out-tsc/vitest/src/client/getWSServer.d.ts.map +0 -1
- package/out-tsc/vitest/src/client/index.d.ts +0 -2
- package/out-tsc/vitest/src/client/index.d.ts.map +0 -1
- package/out-tsc/vitest/src/collector/errors.d.ts +0 -8
- package/out-tsc/vitest/src/collector/errors.d.ts.map +0 -1
- package/out-tsc/vitest/src/collector/factory.d.ts +0 -3
- package/out-tsc/vitest/src/collector/factory.d.ts.map +0 -1
- package/out-tsc/vitest/src/collector/functions.d.ts.map +0 -1
- package/out-tsc/vitest/src/collector/index.d.ts +0 -5
- package/out-tsc/vitest/src/collector/index.d.ts.map +0 -1
- package/out-tsc/vitest/src/collector/types.d.ts +0 -10
- package/out-tsc/vitest/src/collector/types.d.ts.map +0 -1
- package/out-tsc/vitest/src/collector/validation.d.ts +0 -4
- package/out-tsc/vitest/src/collector/validation.d.ts.map +0 -1
- package/out-tsc/vitest/src/constants.d.ts +0 -3
- package/out-tsc/vitest/src/constants.d.ts.map +0 -1
- package/out-tsc/vitest/src/entry-point.d.ts +0 -2
- package/out-tsc/vitest/src/entry-point.d.ts.map +0 -1
- package/out-tsc/vitest/src/errors.d.ts +0 -6
- package/out-tsc/vitest/src/errors.d.ts.map +0 -1
- package/out-tsc/vitest/src/expect/index.d.ts +0 -9
- package/out-tsc/vitest/src/expect/index.d.ts.map +0 -1
- package/out-tsc/vitest/src/expect/setup.d.ts +0 -2
- package/out-tsc/vitest/src/expect/setup.d.ts.map +0 -1
- package/out-tsc/vitest/src/filtering/index.d.ts +0 -2
- package/out-tsc/vitest/src/filtering/index.d.ts.map +0 -1
- package/out-tsc/vitest/src/filtering/testNameFilter.d.ts +0 -12
- package/out-tsc/vitest/src/filtering/testNameFilter.d.ts.map +0 -1
- package/out-tsc/vitest/src/globals.d.ts +0 -8
- package/out-tsc/vitest/src/globals.d.ts.map +0 -1
- package/out-tsc/vitest/src/index.d.ts +0 -9
- package/out-tsc/vitest/src/index.d.ts.map +0 -1
- package/out-tsc/vitest/src/initialize.d.ts +0 -2
- package/out-tsc/vitest/src/initialize.d.ts.map +0 -1
- package/out-tsc/vitest/src/mocker/index.d.ts +0 -2
- package/out-tsc/vitest/src/mocker/index.d.ts.map +0 -1
- package/out-tsc/vitest/src/mocker/registry.d.ts +0 -7
- package/out-tsc/vitest/src/mocker/registry.d.ts.map +0 -1
- package/out-tsc/vitest/src/mocker/types.d.ts +0 -6
- package/out-tsc/vitest/src/mocker/types.d.ts.map +0 -1
- package/out-tsc/vitest/src/namespace.d.ts +0 -18
- package/out-tsc/vitest/src/namespace.d.ts.map +0 -1
- package/out-tsc/vitest/src/runner/errors.d.ts +0 -11
- package/out-tsc/vitest/src/runner/errors.d.ts.map +0 -1
- package/out-tsc/vitest/src/runner/factory.d.ts +0 -3
- package/out-tsc/vitest/src/runner/factory.d.ts.map +0 -1
- package/out-tsc/vitest/src/runner/hooks.d.ts +0 -4
- package/out-tsc/vitest/src/runner/hooks.d.ts.map +0 -1
- package/out-tsc/vitest/src/runner/index.d.ts +0 -4
- package/out-tsc/vitest/src/runner/index.d.ts.map +0 -1
- package/out-tsc/vitest/src/runner/runSuite.d.ts +0 -4
- package/out-tsc/vitest/src/runner/runSuite.d.ts.map +0 -1
- package/out-tsc/vitest/src/runner/types.d.ts +0 -13
- package/out-tsc/vitest/src/runner/types.d.ts.map +0 -1
- package/out-tsc/vitest/src/spy/index.d.ts +0 -2
- package/out-tsc/vitest/src/spy/index.d.ts.map +0 -1
- package/out-tsc/vitest/src/symbolicate.d.ts +0 -3
- package/out-tsc/vitest/src/symbolicate.d.ts.map +0 -1
- package/out-tsc/vitest/src/ui/ReadyScreen.d.ts +0 -2
- package/out-tsc/vitest/src/ui/ReadyScreen.d.ts.map +0 -1
- package/out-tsc/vitest/src/ui/WrongEnvironmentScreen.d.ts +0 -2
- package/out-tsc/vitest/src/ui/WrongEnvironmentScreen.d.ts.map +0 -1
- package/out-tsc/vitest/src/ui/index.d.ts +0 -2
- package/out-tsc/vitest/src/ui/index.d.ts.map +0 -1
- package/out-tsc/vitest/src/ui/state.d.ts +0 -7
- package/out-tsc/vitest/src/ui/state.d.ts.map +0 -1
- package/out-tsc/vitest/src/utils/dev-server.d.ts +0 -2
- package/out-tsc/vitest/src/utils/dev-server.d.ts.map +0 -1
- package/out-tsc/vitest/src/utils/emitter.d.ts +0 -16
- package/out-tsc/vitest/src/utils/emitter.d.ts.map +0 -1
- package/out-tsc/vitest/src/waitFor.d.ts +0 -21
- package/out-tsc/vitest/src/waitFor.d.ts.map +0 -1
- package/out-tsc/vitest/tsconfig.spec.tsbuildinfo +0 -1
- package/out-tsc/vitest/vite.config.d.ts +0 -3
- package/out-tsc/vitest/vite.config.d.ts.map +0 -1
package/dist/ui/UI.js
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { View, Text, Image, StyleSheet, ActivityIndicator, StatusBar, Platform, LogBox } from 'react-native';
|
|
3
|
+
import { memo, useEffect } from 'react';
|
|
4
|
+
import { useStore } from 'zustand/react';
|
|
5
|
+
import { state } from '../state.js';
|
|
6
|
+
LogBox.ignoreAllLogs(true);
|
|
7
|
+
const ComponentHarness = memo(function ComponentHarness({ element, options }) {
|
|
8
|
+
const Wrapper = options.wrapper ?? View;
|
|
9
|
+
return (_jsx(View, { style: { flex: 1, alignItems: 'center', justifyContent: 'center' }, children: _jsx(Wrapper, { children: element }) }));
|
|
10
|
+
});
|
|
11
|
+
export const UI = () => {
|
|
12
|
+
const { componentHarness, status, bootstrap } = useStore(state);
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
void bootstrap();
|
|
15
|
+
}, [bootstrap]);
|
|
16
|
+
if (componentHarness) {
|
|
17
|
+
return _jsx(ComponentHarness, { element: componentHarness.node, options: componentHarness.options });
|
|
18
|
+
}
|
|
19
|
+
return (_jsx(View, { style: styles.container, children: _jsxs(View, { style: styles.contentContainer, children: [_jsx(View, { style: styles.logoContainer, children: _jsx(Image, { style: styles.logo }) }), _jsx(Text, { style: styles.title, children: "React Native Harness" }), status === 'idle' ? (_jsxs(View, { style: styles.statusIndicator, children: [_jsx(View, { style: styles.statusDot }), _jsx(Text, { style: styles.statusText, children: "Idle" })] })) : status === 'loading' ? (_jsxs(View, { style: styles.loadingContainer, children: [_jsx(ActivityIndicator, { size: "small", color: "#3b82f6", style: styles.loadingSpinner }), _jsx(Text, { style: styles.loadingText, children: "Loading..." })] })) : (_jsxs(View, { style: styles.statusIndicator, children: [_jsx(View, { style: styles.statusDot }), _jsx(Text, { style: styles.statusText, children: "Running..." })] }))] }) }));
|
|
20
|
+
};
|
|
21
|
+
const styles = StyleSheet.create({
|
|
22
|
+
container: {
|
|
23
|
+
flex: 1,
|
|
24
|
+
justifyContent: 'center',
|
|
25
|
+
alignItems: 'center',
|
|
26
|
+
backgroundColor: '#0a1628',
|
|
27
|
+
position: 'relative',
|
|
28
|
+
},
|
|
29
|
+
safeArea: {
|
|
30
|
+
flex: 1,
|
|
31
|
+
backgroundColor: 'transparent',
|
|
32
|
+
paddingTop: Platform.OS === 'android' ? StatusBar.currentHeight : 0,
|
|
33
|
+
},
|
|
34
|
+
contentContainer: {
|
|
35
|
+
alignItems: 'center',
|
|
36
|
+
padding: 24,
|
|
37
|
+
borderRadius: 24,
|
|
38
|
+
backgroundColor: 'rgba(59, 130, 246, 0.1)',
|
|
39
|
+
borderWidth: 1,
|
|
40
|
+
borderColor: 'rgba(59, 130, 246, 0.2)',
|
|
41
|
+
shadowColor: '#000',
|
|
42
|
+
shadowOffset: {
|
|
43
|
+
width: 0,
|
|
44
|
+
height: 20,
|
|
45
|
+
},
|
|
46
|
+
shadowOpacity: 0.3,
|
|
47
|
+
shadowRadius: 30,
|
|
48
|
+
},
|
|
49
|
+
logoContainer: {
|
|
50
|
+
marginBottom: 12,
|
|
51
|
+
},
|
|
52
|
+
logo: {
|
|
53
|
+
width: 128,
|
|
54
|
+
height: 128,
|
|
55
|
+
},
|
|
56
|
+
title: {
|
|
57
|
+
fontSize: 28,
|
|
58
|
+
fontWeight: '700',
|
|
59
|
+
color: '#38bdf8',
|
|
60
|
+
textAlign: 'center',
|
|
61
|
+
letterSpacing: 1,
|
|
62
|
+
marginBottom: 8,
|
|
63
|
+
},
|
|
64
|
+
subtitle: {
|
|
65
|
+
fontSize: 16,
|
|
66
|
+
fontWeight: '400',
|
|
67
|
+
color: 'rgba(255, 255, 255, 0.7)',
|
|
68
|
+
textAlign: 'center',
|
|
69
|
+
letterSpacing: 0.5,
|
|
70
|
+
marginBottom: 24,
|
|
71
|
+
},
|
|
72
|
+
statusIndicator: {
|
|
73
|
+
flexDirection: 'row',
|
|
74
|
+
alignItems: 'center',
|
|
75
|
+
backgroundColor: 'rgba(34, 211, 238, 0.15)',
|
|
76
|
+
paddingHorizontal: 16,
|
|
77
|
+
paddingVertical: 8,
|
|
78
|
+
height: 36,
|
|
79
|
+
borderRadius: 20,
|
|
80
|
+
borderWidth: 1,
|
|
81
|
+
borderColor: 'rgba(34, 211, 238, 0.4)',
|
|
82
|
+
},
|
|
83
|
+
statusDot: {
|
|
84
|
+
width: 8,
|
|
85
|
+
height: 8,
|
|
86
|
+
borderRadius: 4,
|
|
87
|
+
backgroundColor: '#22d3ee',
|
|
88
|
+
marginRight: 8,
|
|
89
|
+
shadowColor: '#22d3ee',
|
|
90
|
+
shadowOffset: { width: 0, height: 0 },
|
|
91
|
+
shadowOpacity: 0.8,
|
|
92
|
+
shadowRadius: 4,
|
|
93
|
+
},
|
|
94
|
+
statusText: {
|
|
95
|
+
fontSize: 14,
|
|
96
|
+
fontWeight: '500',
|
|
97
|
+
color: '#22d3ee',
|
|
98
|
+
letterSpacing: 0.5,
|
|
99
|
+
},
|
|
100
|
+
loadingContainer: {
|
|
101
|
+
flexDirection: 'row',
|
|
102
|
+
alignItems: 'center',
|
|
103
|
+
backgroundColor: 'rgba(59, 130, 246, 0.15)',
|
|
104
|
+
paddingHorizontal: 16,
|
|
105
|
+
paddingVertical: 8,
|
|
106
|
+
height: 36,
|
|
107
|
+
borderRadius: 20,
|
|
108
|
+
borderWidth: 1,
|
|
109
|
+
borderColor: 'rgba(59, 130, 246, 0.4)',
|
|
110
|
+
},
|
|
111
|
+
loadingSpinner: {
|
|
112
|
+
marginRight: 8,
|
|
113
|
+
},
|
|
114
|
+
loadingText: {
|
|
115
|
+
fontSize: 14,
|
|
116
|
+
fontWeight: '500',
|
|
117
|
+
color: '#3b82f6',
|
|
118
|
+
letterSpacing: 0.5,
|
|
119
|
+
},
|
|
120
|
+
});
|
|
121
|
+
export default UI;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WrongEnvironmentScreen.d.ts","sourceRoot":"","sources":["../../src/ui/WrongEnvironmentScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WrongEnvironmentScreen.d.ts","sourceRoot":"","sources":["../../src/ui/WrongEnvironmentScreen.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,+CAiBlC,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { View, Text,
|
|
3
|
-
import { LOGO_IMAGE } from '../constants.js';
|
|
2
|
+
import { View, Text, StyleSheet, Platform, StatusBar } from 'react-native';
|
|
4
3
|
export const WrongEnvironmentScreen = () => {
|
|
5
|
-
return (_jsx(View, { style: styles.container, children: _jsxs(View, { style: styles.contentContainer, children: [_jsx(
|
|
4
|
+
return (_jsx(View, { style: styles.container, children: _jsxs(View, { style: styles.contentContainer, children: [_jsx(Text, { style: styles.title, children: "React Native Harness" }), _jsxs(View, { style: styles.errorIndicator, children: [_jsx(View, { style: styles.errorDot }), _jsx(Text, { style: styles.errorText, children: "Environment Error" })] }), _jsx(Text, { style: styles.submessage, children: "Please double-check that you followed the installation documentation carefully." })] }) }));
|
|
6
5
|
};
|
|
7
6
|
const styles = StyleSheet.create({
|
|
8
7
|
container: {
|
|
@@ -33,13 +32,6 @@ const styles = StyleSheet.create({
|
|
|
33
32
|
shadowRadius: 30,
|
|
34
33
|
maxWidth: 350,
|
|
35
34
|
},
|
|
36
|
-
logoContainer: {
|
|
37
|
-
marginBottom: 12,
|
|
38
|
-
},
|
|
39
|
-
logo: {
|
|
40
|
-
width: 128,
|
|
41
|
-
height: 128,
|
|
42
|
-
},
|
|
43
35
|
title: {
|
|
44
36
|
fontSize: 28,
|
|
45
37
|
fontWeight: '700',
|
package/dist/ui/state.d.ts
CHANGED
|
@@ -12,9 +12,9 @@ export type RunnerState = {
|
|
|
12
12
|
setOnRenderCallback: (callback: (() => void) | null) => void;
|
|
13
13
|
};
|
|
14
14
|
export declare const store: import("zustand/react").UseBoundStore<import("zustand/vanilla").StoreApi<RunnerState>>;
|
|
15
|
-
export declare const useRunnerStatus: () => "
|
|
15
|
+
export declare const useRunnerStatus: () => "idle" | "loading" | "running";
|
|
16
16
|
export declare const useRenderedElement: () => {
|
|
17
|
-
element: React.ReactElement<
|
|
17
|
+
element: React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
|
|
18
18
|
key: string | null;
|
|
19
19
|
};
|
|
20
20
|
//# sourceMappingURL=state.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-harness/runtime",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -30,17 +30,14 @@
|
|
|
30
30
|
"@vitest/spy": "4.0.0-beta.8",
|
|
31
31
|
"chai": "^5.3.1",
|
|
32
32
|
"event-target-shim": "^6.0.2",
|
|
33
|
-
"
|
|
34
|
-
"sinon": "^21.0.0",
|
|
35
|
-
"util": "^0.12.5",
|
|
33
|
+
"use-sync-external-store": "^1.6.0",
|
|
36
34
|
"zustand": "^5.0.5",
|
|
37
|
-
"@react-native-harness/bridge": "1.0.0-alpha.
|
|
35
|
+
"@react-native-harness/bridge": "1.0.0-alpha.19"
|
|
38
36
|
},
|
|
39
37
|
"devDependencies": {
|
|
40
38
|
"@types/chai": "^5.2.2",
|
|
41
|
-
"
|
|
42
|
-
"react": "
|
|
43
|
-
"react-native": "~0.76.3"
|
|
39
|
+
"react": "*",
|
|
40
|
+
"react-native": "*"
|
|
44
41
|
},
|
|
45
42
|
"license": "MIT"
|
|
46
43
|
}
|
package/src/constants.ts
CHANGED
package/src/ui/ReadyScreen.tsx
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
View,
|
|
3
3
|
Text,
|
|
4
|
-
Image,
|
|
5
4
|
StyleSheet,
|
|
6
5
|
ActivityIndicator,
|
|
7
6
|
StatusBar,
|
|
8
7
|
Platform,
|
|
9
8
|
} from 'react-native';
|
|
10
|
-
import { LOGO_IMAGE } from '../constants.js';
|
|
11
9
|
import { useRunnerStatus } from './state.js';
|
|
12
10
|
import { TestComponentOverlay } from '../render/TestComponentOverlay.js';
|
|
13
11
|
|
|
@@ -19,9 +17,6 @@ export const ReadyScreen = () => {
|
|
|
19
17
|
return (
|
|
20
18
|
<View style={styles.container}>
|
|
21
19
|
<View style={styles.contentContainer}>
|
|
22
|
-
<View style={styles.logoContainer}>
|
|
23
|
-
<Image style={styles.logo} source={LOGO_IMAGE} />
|
|
24
|
-
</View>
|
|
25
20
|
<Text style={styles.title}>React Native Harness</Text>
|
|
26
21
|
|
|
27
22
|
{status === 'idle' ? (
|
|
@@ -79,13 +74,6 @@ const styles = StyleSheet.create({
|
|
|
79
74
|
shadowRadius: 30,
|
|
80
75
|
maxWidth: 350,
|
|
81
76
|
},
|
|
82
|
-
logoContainer: {
|
|
83
|
-
marginBottom: 12,
|
|
84
|
-
},
|
|
85
|
-
logo: {
|
|
86
|
-
width: 128,
|
|
87
|
-
height: 128,
|
|
88
|
-
},
|
|
89
77
|
title: {
|
|
90
78
|
fontSize: 28,
|
|
91
79
|
fontWeight: '700',
|
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
View,
|
|
3
|
-
Text,
|
|
4
|
-
Image,
|
|
5
|
-
StyleSheet,
|
|
6
|
-
Platform,
|
|
7
|
-
StatusBar,
|
|
8
|
-
} from 'react-native';
|
|
9
|
-
import { LOGO_IMAGE } from '../constants.js';
|
|
1
|
+
import { View, Text, StyleSheet, Platform, StatusBar } from 'react-native';
|
|
10
2
|
|
|
11
3
|
export const WrongEnvironmentScreen = () => {
|
|
12
4
|
return (
|
|
13
5
|
<View style={styles.container}>
|
|
14
6
|
<View style={styles.contentContainer}>
|
|
15
|
-
<View style={styles.logoContainer}>
|
|
16
|
-
<Image style={styles.logo} source={LOGO_IMAGE} />
|
|
17
|
-
</View>
|
|
18
7
|
<Text style={styles.title}>React Native Harness</Text>
|
|
19
8
|
|
|
20
9
|
<View style={styles.errorIndicator}>
|
|
@@ -59,13 +48,6 @@ const styles = StyleSheet.create({
|
|
|
59
48
|
shadowRadius: 30,
|
|
60
49
|
maxWidth: 350,
|
|
61
50
|
},
|
|
62
|
-
logoContainer: {
|
|
63
|
-
marginBottom: 12,
|
|
64
|
-
},
|
|
65
|
-
logo: {
|
|
66
|
-
width: 128,
|
|
67
|
-
height: 128,
|
|
68
|
-
},
|
|
69
51
|
title: {
|
|
70
52
|
fontSize: 28,
|
|
71
53
|
fontWeight: '700',
|
package/assets/logo.png
DELETED
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collector.test.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/collector.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error-handling.test.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/error-handling.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"expect.test.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/expect.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spy.test.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/spy.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../../../src/bundler/bundle.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,WAAW,GAAU,UAAU,MAAM,KAAG,OAAO,CAAC,MAAM,CAUlE,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare class ModuleNotFoundError extends Error {
|
|
2
|
-
readonly modulePath: string;
|
|
3
|
-
constructor(modulePath: string);
|
|
4
|
-
}
|
|
5
|
-
export declare class MalformedModuleError extends Error {
|
|
6
|
-
readonly modulePath: string;
|
|
7
|
-
readonly reason: string;
|
|
8
|
-
constructor(modulePath: string, reason: string);
|
|
9
|
-
}
|
|
10
|
-
export declare class BundlingFailedError extends Error {
|
|
11
|
-
readonly modulePath: string;
|
|
12
|
-
readonly reason: string;
|
|
13
|
-
constructor(modulePath: string, reason: string);
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/bundler/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,mBAAoB,SAAQ,KAAK;aAChB,UAAU,EAAE,MAAM;gBAAlB,UAAU,EAAE,MAAM;CAI/C;AAED,qBAAa,oBAAqB,SAAQ,KAAK;aAE3B,UAAU,EAAE,MAAM;aAClB,MAAM,EAAE,MAAM;gBADd,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM;CAKjC;AAED,qBAAa,mBAAoB,SAAQ,KAAK;aAE1B,UAAU,EAAE,MAAM;aAClB,MAAM,EAAE,MAAM;gBADd,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM;CAKjC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"evaluate.d.ts","sourceRoot":"","sources":["../../../../src/bundler/evaluate.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,GAAI,UAAU,MAAM,EAAE,YAAY,MAAM,KAAG,IAqBrE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/bundler/factory.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC,eAAO,MAAM,UAAU,QAAO,OAoC7B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bundler/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BundlerEvents } from '@react-native-harness/bridge';
|
|
2
|
-
import { EventEmitter } from '../utils/emitter.js';
|
|
3
|
-
export type Bundler = {
|
|
4
|
-
events: EventEmitter<BundlerEvents>;
|
|
5
|
-
getModule: (filePath: string) => Promise<string>;
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/bundler/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;IACpC,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CAClD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/client/factory.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,SAAS,2EA+DrB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getDeviceDescriptor.d.ts","sourceRoot":"","sources":["../../../../src/client/getDeviceDescriptor.ts"],"names":[],"mappings":"AAYA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,CAAC;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,gBA+BtC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getWSServer.d.ts","sourceRoot":"","sources":["../../../../src/client/getWSServer.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,QAAO,MAK9B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type TestErrorCode = 'CONTEXT_NOT_INITIALIZED' | 'OUTSIDE_DESCRIBE_BLOCK' | 'INVALID_TEST_NAME' | 'DUPLICATE_TEST_NAME' | 'INVALID_FUNCTION';
|
|
2
|
-
export declare class TestError extends Error {
|
|
3
|
-
code: TestErrorCode;
|
|
4
|
-
functionName: string;
|
|
5
|
-
context?: Record<string, unknown> | undefined;
|
|
6
|
-
constructor(code: TestErrorCode, functionName: string, context?: Record<string, unknown> | undefined);
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/collector/errors.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GACrB,yBAAyB,GACzB,wBAAwB,GACxB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CAAC;AAEvB,qBAAa,SAAU,SAAQ,KAAK;IAEzB,IAAI,EAAE,aAAa;IACnB,YAAY,EAAE,MAAM;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;gBAFjC,IAAI,EAAE,aAAa,EACnB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YAAA;CAe3C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/collector/factory.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAO,MAAM,gBAAgB,QAAO,aA0BnC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../../src/collector/functions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AA4LzC,eAAO,MAAM,QAAQ,UACZ,MAAM,MAAM,MAAM,IAAI;iBAsBd,MAAM,MAAM,MAAM,IAAI;iBAqBtB,MAAM,MAAM,MAAM,IAAI;CAsBtC,CAAC;AAEF,eAAO,MAAM,IAAI,UACR,MAAM,MAAM,MAAM;iBAaV,MAAM,MAAM,MAAM;iBAWlB,MAAM,MAAM,MAAM;iBAWlB,MAAM;CAiBtB,CAAC;AAEF,eAAO,MAAM,EAAE,UAtDN,MAAM,MAAM,MAAM;iBAaV,MAAM,MAAM,MAAM;iBAWlB,MAAM,MAAM,MAAM;iBAWlB,MAAM;CAmBD,CAAC;AAEvB,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,QAQnC;AAED,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,QAQlC;AAED,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,QAQpC;AAED,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,QAQnC;AAgBD,eAAO,MAAM,YAAY,GAAI,IAAI,MAAM,IAAI,KAAG,gBAiB7C,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { describe, test, it, beforeAll, afterAll, beforeEach, afterEach, } from './functions.js';
|
|
2
|
-
export { TestError, type TestErrorCode } from './errors.js';
|
|
3
|
-
export type { TestCollector, TestCollectorEventsEmitter } from './types.js';
|
|
4
|
-
export { getTestCollector } from './factory.js';
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/collector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,IAAI,EACJ,EAAE,EACF,SAAS,EACT,QAAQ,EACR,UAAU,EACV,SAAS,GACV,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5D,YAAY,EAAE,aAAa,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '../utils/emitter.js';
|
|
2
|
-
import { TestCollectorEvents, CollectionResult } from '@react-native-harness/bridge';
|
|
3
|
-
export type TestFn = () => void | Promise<void>;
|
|
4
|
-
export type TestCollectorEventsEmitter = EventEmitter<TestCollectorEvents>;
|
|
5
|
-
export type TestCollector = {
|
|
6
|
-
events: TestCollectorEventsEmitter;
|
|
7
|
-
collect: (fn: () => void, testFilePath: string) => Promise<CollectionResult>;
|
|
8
|
-
dispose: () => void;
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/collector/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,MAAM,GAAG,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAEhD,MAAM,MAAM,0BAA0B,GAAG,YAAY,CAAC,mBAAmB,CAAC,CAAC;AAE3E,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,0BAA0B,CAAC;IACnC,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,IAAI,EAAE,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC7E,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/collector/validation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEpC,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,EAAE,cAAc,MAAM,KAAG,IAMrE,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,IAAI,MAAM,EACV,cAAc,MAAM,KACnB,IAMF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,KAAgC,CAAC;AACxD,eAAO,MAAM,cAAc,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entry-point.d.ts","sourceRoot":"","sources":["../../../src/entry-point.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,gBAAiB,SAAQ,KAAK;aAEvB,OAAO,EAAE,MAAM;aACf,OAAO,CAAC,EAAE,MAAM;gBADhB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM,YAAA;CAQnC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ExpectStatic } from '@vitest/expect';
|
|
2
|
-
import * as chai from 'chai';
|
|
3
|
-
import './setup.js';
|
|
4
|
-
export declare function createExpect(): ExpectStatic;
|
|
5
|
-
declare const globalExpect: ExpectStatic;
|
|
6
|
-
export { assert, should } from 'chai';
|
|
7
|
-
export { chai, globalExpect as expect };
|
|
8
|
-
export type { Assertion, AsymmetricMatchersContaining, DeeplyAllowMatchers, ExpectStatic, JestAssertion, Matchers, } from '@vitest/expect';
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/expect/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAa,YAAY,EAAgB,MAAM,gBAAgB,CAAC;AAS5E,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAG7B,OAAO,YAAY,CAAC;AAEpB,wBAAgB,YAAY,IAAI,YAAY,CAqF3C;AAED,QAAA,MAAM,YAAY,EAAE,YAA6B,CAAC;AAQlD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,YAAY,IAAI,MAAM,EAAE,CAAC;AAExC,YAAY,EACV,SAAS,EACT,4BAA4B,EAC5B,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,QAAQ,GACT,MAAM,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../../../src/expect/setup.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/filtering/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,wBAAwB,GACzB,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { TestSuite } from '@react-native-harness/bridge';
|
|
2
|
-
/**
|
|
3
|
-
* Filters tests by name pattern, matching against test names and suite+test combinations
|
|
4
|
-
* @deprecated Use markTestsAsSkippedByName instead - this function will be removed in a future version
|
|
5
|
-
*/
|
|
6
|
-
export declare const filterTestsByName: (suite: TestSuite, testNamePattern: string) => TestSuite;
|
|
7
|
-
/**
|
|
8
|
-
* Marks tests as skipped based on name pattern, keeping all tests in the structure
|
|
9
|
-
* but setting non-matching tests to 'skipped' status
|
|
10
|
-
*/
|
|
11
|
-
export declare const markTestsAsSkippedByName: (suite: TestSuite, testNamePattern: string) => TestSuite;
|
|
12
|
-
//# sourceMappingURL=testNameFilter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testNameFilter.d.ts","sourceRoot":"","sources":["../../../../src/filtering/testNameFilter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAC5B,OAAO,SAAS,EAChB,iBAAiB,MAAM,KACtB,SAGF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GACnC,OAAO,SAAS,EAChB,iBAAiB,MAAM,KACtB,SAGF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../../../src/globals.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC1B,wBAAwB,EAAE,MAAM,CAAC;CAClC,CAAC;AAEF,OAAO,CAAC,MAAM,CAAC;IACb,IAAI,UAAU,EAAE,aAAa,GAAG,SAAS,CAAC;CAC3C;AAED,eAAO,MAAM,gBAAgB,QAAO,aAQnC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import './globals.d.ts';
|
|
2
|
-
export { UI as ReactNativeHarness } from './ui/index.js';
|
|
3
|
-
export * from './spy/index.js';
|
|
4
|
-
export * from './expect/index.js';
|
|
5
|
-
export * from './collector/index.js';
|
|
6
|
-
export * from './mocker/index.js';
|
|
7
|
-
export * from './namespace.js';
|
|
8
|
-
export * from './waitFor.js';
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,CAAC;AAExB,OAAO,EAAE,EAAE,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACzD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../src/initialize.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mocker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,aAAa,EACb,UAAU,EACV,MAAM,EACN,YAAY,GACb,MAAM,eAAe,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ModuleFactory } from './types.js';
|
|
2
|
-
export declare const mock: (moduleId: string, factory: ModuleFactory) => void;
|
|
3
|
-
export declare const clearMocks: () => void;
|
|
4
|
-
export declare const requireActual: <T = any>(moduleId: string) => T;
|
|
5
|
-
export declare const unmock: (moduleId: string) => void;
|
|
6
|
-
export declare const resetModules: () => void;
|
|
7
|
-
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/mocker/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAqB,MAAM,YAAY,CAAC;AAO9D,eAAO,MAAM,IAAI,GAAI,UAAU,MAAM,EAAE,SAAS,aAAa,KAAG,IAG/D,CAAC;AAEF,eAAO,MAAM,UAAU,QAAO,IAG7B,CAAC;AAkBF,eAAO,MAAM,aAAa,GAAI,CAAC,GAAG,GAAG,EAAE,UAAU,MAAM,KAAG,CAEH,CAAC;AAExD,eAAO,MAAM,MAAM,GAAI,UAAU,MAAM,SAGtC,CAAC;AAEF,eAAO,MAAM,YAAY,QAAO,IAK/B,CAAC"}
|