vitest-native 0.14.0 → 0.15.0-rc.1
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/README.md +94 -976
- package/dist/cli.d.mts +9 -1
- package/dist/cli.mjs +2607 -303
- package/dist/context.d.mts +15 -0
- package/dist/context.mjs +39 -1
- package/dist/errors.d.mts +20 -1
- package/dist/helpers.cjs +22 -1
- package/dist/helpers.mjs +22 -1
- package/dist/{host-5o48Ujzs.mjs → host-BAMNg80P.mjs} +269 -103
- package/dist/{index-DqU4YO3D.d.mts → index-CrCsGULN.d.mts} +84 -8
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +624 -145
- package/dist/jest-compat/interop.mjs +1 -1
- package/dist/jest-compat/jest-object.mjs +3 -4
- package/dist/jest-compat/node-registry.mjs +791 -67
- package/dist/jest-compat/setup.mjs +4 -4
- package/dist/matchers.d.cts +0 -1
- package/dist/matchers.d.mts +0 -1
- package/dist/native/bounded-process.mjs +63 -5
- package/dist/native/bridge-client.mjs +133 -0
- package/dist/native/bridge-server.mjs +215 -0
- package/dist/native/bridge-thread.mjs +79 -0
- package/dist/native/bridge.mjs +512 -0
- package/dist/native/explain.mjs +1 -2
- package/dist/native/export-condition-recovery.mjs +20 -99
- package/dist/native/hooks.mjs +254 -123
- package/dist/native/jest-resolvers.mjs +94 -0
- package/dist/native/library-jest.mjs +346 -0
- package/dist/native/loader.mjs +167 -70
- package/dist/native/match.mjs +30 -1
- package/dist/native/module-reset.mjs +44 -49
- package/dist/native/ownership-ledger.d.mts +77 -0
- package/dist/native/ownership-ledger.mjs +467 -0
- package/dist/native/ownership.d.mts +5 -0
- package/dist/native/ownership.mjs +30 -0
- package/dist/native/registry-compiler.mjs +39 -5
- package/dist/native/registry-process.mjs +327 -28
- package/dist/native/registry.mjs +750 -200
- package/dist/native/resolve.mjs +110 -4
- package/dist/native/rntl-hooks.mjs +8 -5
- package/dist/native/rntl-text-host.mjs +5 -15
- package/dist/native/setup.mjs +117 -36
- package/dist/native/shared-resolver.d.mts +141 -0
- package/dist/native/shared-resolver.mjs +719 -0
- package/dist/native/transform.mjs +4 -5
- package/dist/native/worker.mjs +9 -4
- package/dist/node-dispatch.mjs +291 -0
- package/dist/{preset-map-CogjYmSw.mjs → preset-map-DdAexIwz.mjs} +113 -2
- package/dist/{presets-CXDyg51l.mjs → presets-CsQynQ0A.mjs} +620 -78
- package/dist/presets.d.mts +1 -1
- package/dist/presets.mjs +1 -1
- package/dist/rntl-matchers.d.ts +11 -15
- package/dist/rntl-support.mjs +27 -13
- package/dist/setup.mjs +4 -4
- package/docs/migrating-from-jest.md +9 -230
- package/docs/migrating-from-vitest-react-native.md +4 -4
- package/docs/release-readiness.md +9 -11
- package/docs/versioning.md +38 -9
- package/package.json +33 -13
package/dist/cli.d.mts
CHANGED
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/** Each command's flags, besides --root <dir> and --help, which every command takes. */
|
|
2
|
+
export declare const COMMAND_FLAGS: Record<string, string[]>;
|
|
3
|
+
/**
|
|
4
|
+
* The first flag `command` does not take, or null. An ignored typo (`--wirte`, `--stirct`)
|
|
5
|
+
* would run something other than what was asked, so it is refused instead. The argument
|
|
6
|
+
* after a valued flag is its value, even when it starts with "--" (`--jest-args "--ci"`).
|
|
7
|
+
*/
|
|
8
|
+
export declare function unknownFlag(command: string, args: string[]): string | null;
|
|
9
|
+
export declare function main(argv: string[], log?: (line: string) => void): number | Promise<number>;
|