vitest 0.0.106 → 0.0.107
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 +2 -2
- package/package.json +1 -1
- package/vitest.mjs +1 -1
package/dist/cli.js
CHANGED
|
@@ -635,10 +635,10 @@ class CAC extends EventEmitter {
|
|
|
635
635
|
|
|
636
636
|
const cac = (name = "") => new CAC(name);
|
|
637
637
|
|
|
638
|
-
var version = "0.0.
|
|
638
|
+
var version = "0.0.107";
|
|
639
639
|
|
|
640
640
|
const cli = cac("vitest");
|
|
641
|
-
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("--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();
|
|
641
|
+
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("--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();
|
|
642
642
|
cli.command("run [...filters]").action(run);
|
|
643
643
|
cli.command("watch [...filters]").action(dev);
|
|
644
644
|
cli.command("dev [...filters]").action(dev);
|
package/package.json
CHANGED
package/vitest.mjs
CHANGED
|
@@ -12,7 +12,7 @@ if (argv.includes('--coverage')) {
|
|
|
12
12
|
if (!await ensurePackageInstalled('c8'))
|
|
13
13
|
process.exit(1)
|
|
14
14
|
const filename = fileURLToPath(import.meta.url)
|
|
15
|
-
const entry = resolvePath(filename, '
|
|
15
|
+
const entry = resolvePath(filename, '../dist/cli.js')
|
|
16
16
|
process.argv.splice(2, 0, process.argv[0], entry)
|
|
17
17
|
await import('c8/bin/c8.js')
|
|
18
18
|
}
|