vitest 0.0.112 → 0.0.113
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/cli.js +7 -5
- package/dist/{constants-2b0310b7.js → constants-900abe4a.js} +1 -1
- package/dist/{diff-66d6bb83.js → diff-9c43ab50.js} +3300 -3298
- package/dist/entry.js +74 -18
- package/dist/{global-201fd559.js → global-75208c77.js} +7 -6
- package/dist/{utils-cb6b1266.js → index-041e627e.js} +1 -185
- package/dist/{index-2bb9fd4d.js → index-09437c50.js} +1 -1
- package/dist/index-1488b423.js +186 -0
- package/dist/{index-8ab26d25.js → index-c3f2f9fe.js} +64 -1113
- package/dist/index.d.ts +16 -3
- package/dist/index.js +3 -4
- package/dist/magic-string.es-94000aea.js +1360 -0
- package/dist/{middleware-2028dfa0.js → middleware-0ebc5238.js} +2 -4
- package/dist/node.d.ts +1 -0
- package/dist/node.js +8 -6
- package/dist/utils.js +3 -2
- package/dist/{vi-cb9e4e4e.js → vi-51946984.js} +1 -1
- package/dist/worker.js +5 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import require$$0 from 'readline';
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
|
-
import { e as ensurePackageInstalled } from './
|
|
4
|
-
import { c as createVitest } from './index-
|
|
3
|
+
import { e as ensurePackageInstalled } from './index-041e627e.js';
|
|
4
|
+
import { c as createVitest } from './index-c3f2f9fe.js';
|
|
5
5
|
import 'tty';
|
|
6
6
|
import 'local-pkg';
|
|
7
|
+
import './index-1488b423.js';
|
|
7
8
|
import 'path';
|
|
8
9
|
import 'vite';
|
|
9
10
|
import 'process';
|
|
@@ -11,10 +12,11 @@ import 'fs';
|
|
|
11
12
|
import 'os';
|
|
12
13
|
import 'util';
|
|
13
14
|
import 'stream';
|
|
14
|
-
import './constants-
|
|
15
|
+
import './constants-900abe4a.js';
|
|
15
16
|
import 'url';
|
|
17
|
+
import './magic-string.es-94000aea.js';
|
|
16
18
|
import 'perf_hooks';
|
|
17
|
-
import './diff-
|
|
19
|
+
import './diff-9c43ab50.js';
|
|
18
20
|
import './index-61c8686f.js';
|
|
19
21
|
import './_commonjsHelpers-c9e3b764.js';
|
|
20
22
|
import 'assert';
|
|
@@ -634,7 +636,7 @@ class CAC extends EventEmitter {
|
|
|
634
636
|
|
|
635
637
|
const cac = (name = "") => new CAC(name);
|
|
636
638
|
|
|
637
|
-
var version = "0.0.
|
|
639
|
+
var version = "0.0.113";
|
|
638
640
|
|
|
639
641
|
const cli = cac("vitest");
|
|
640
642
|
cli.version(version).option("-r, --root <path>", "root path").option("-c, --config <path>", "path to config file").option("-u, --update", "update snapshot").option("-w, --watch", "watch mode").option("-o, --open", "open Vitest UI").option("--api", "listen to port and serve API").option("--threads", "enabled threads", { default: true }).option("--silent", "silent").option("--reporter <name>", "reporter").option("--coverage", "use c8 for coverage").option("--run", "do not watch").option("--global", "inject apis globally").option("--dom", "mock browser api with happy-dom").option("--environment <env>", "runner environment", { default: "node" }).option("--passWithNoTests", "pass when no tests found").help();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fileURLToPath } from 'url';
|
|
2
|
-
import {
|
|
2
|
+
import { a as resolve } from './index-1488b423.js';
|
|
3
3
|
|
|
4
4
|
const distDir = resolve(fileURLToPath(import.meta.url), "../../dist");
|
|
5
5
|
const defaultInclude = ["**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"];
|