vitest 0.0.110 → 0.0.111

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  import require$$0 from 'readline';
2
2
  import { EventEmitter } from 'events';
3
- import { e as ensurePackageInstalled } from './utils-d97bd6d9.js';
4
- import { c as createVitest } from './index-b183bb20.js';
3
+ import { e as ensurePackageInstalled } from './utils-cb6b1266.js';
4
+ import { c as createVitest } from './index-8ab26d25.js';
5
5
  import 'tty';
6
6
  import 'local-pkg';
7
7
  import 'path';
@@ -11,10 +11,10 @@ import 'fs';
11
11
  import 'os';
12
12
  import 'util';
13
13
  import 'stream';
14
- import './constants-e762cbc5.js';
14
+ import './constants-2b0310b7.js';
15
15
  import 'url';
16
16
  import 'perf_hooks';
17
- import './diff-46ee5d7d.js';
17
+ import './diff-66d6bb83.js';
18
18
  import './index-61c8686f.js';
19
19
  import './_commonjsHelpers-c9e3b764.js';
20
20
  import 'assert';
@@ -634,10 +634,10 @@ class CAC extends EventEmitter {
634
634
 
635
635
  const cac = (name = "") => new CAC(name);
636
636
 
637
- var version = "0.0.110";
637
+ var version = "0.0.111";
638
638
 
639
639
  const cli = cac("vitest");
640
- 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();
640
+ 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();
641
641
  cli.command("run [...filters]").action(run);
642
642
  cli.command("watch [...filters]").action(dev);
643
643
  cli.command("dev [...filters]").action(dev);
@@ -1,5 +1,5 @@
1
1
  import { fileURLToPath } from 'url';
2
- import { h as resolve } from './utils-d97bd6d9.js';
2
+ import { h as resolve } from './utils-cb6b1266.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}"];
@@ -1,5 +1,5 @@
1
1
  import { existsSync, promises } from 'fs';
2
- import { k as notNullish, c, r as relative } from './utils-d97bd6d9.js';
2
+ import { k as notNullish, c, r as relative } from './utils-cb6b1266.js';
3
3
 
4
4
  function Diff() {}
5
5
  Diff.prototype = {
@@ -4733,4 +4733,4 @@ function formatLine(line) {
4733
4733
  return cliTruncate(line, (process.stdout.columns || 80) - 4);
4734
4734
  }
4735
4735
 
4736
- export { F_POINTER as F, ansiStyles as a, stripAnsi as b, sliceAnsi as c, F_DOWN as d, F_LONG_DASH as e, F_DOWN_RIGHT as f, F_DOT as g, F_CHECK as h, F_CROSS as i, cliTruncate as j, F_RIGHT as k, printError as p, stringWidth as s, unifiedDiff as u };
4736
+ export { F_POINTER as F, F_DOWN as a, F_LONG_DASH as b, F_DOWN_RIGHT as c, F_DOT as d, F_CHECK as e, F_CROSS as f, F_RIGHT as g, stringWidth as h, ansiStyles as i, sliceAnsi as j, cliTruncate as k, printError as p, stripAnsi as s, unifiedDiff as u };
package/dist/entry.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import fs, { promises } from 'fs';
2
- import { f as equals, h as iterableEquality, j as subsetEquality, k as isA, J as JestChaiExpect, l as clearContext, m as defaultSuite, n as setHooks, o as getHooks, p as context, s as setState, q as getFn, b as getState, e as vi } from './vi-aedc8539.js';
2
+ import { f as equals, h as iterableEquality, j as subsetEquality, k as isA, J as JestChaiExpect, l as clearContext, m as defaultSuite, n as setHooks, o as getHooks, p as context, s as setState, q as getFn, b as getState, e as vi } from './vi-cb9e4e4e.js';
3
3
  import { Console } from 'console';
4
4
  import { Writable } from 'stream';
5
5
  import { importModule } from 'local-pkg';
6
6
  import chai$1, { expect, util } from 'chai';
7
7
  import { a as commonjsRequire, c as commonjsGlobal } from './_commonjsHelpers-c9e3b764.js';
8
- import { l as index, g as getNames, c as c$1, t as toArray, r as relative, o as interpretOnlyMode, p as partitionSuiteChildren, q as hasTests, j as hasFailed } from './utils-d97bd6d9.js';
8
+ import { l as index, o as getNames, c as c$1, t as toArray, r as relative, p as interpretOnlyMode, q as partitionSuiteChildren, u as hasTests, j as hasFailed } from './utils-cb6b1266.js';
9
9
  import { r as rpc, s as send } from './rpc-7de86f29.js';
10
- import { u as unifiedDiff } from './diff-46ee5d7d.js';
10
+ import { u as unifiedDiff } from './diff-66d6bb83.js';
11
11
  import { performance } from 'perf_hooks';
12
12
  import { n as nanoid } from './jest-mock-a57b745c.js';
13
13
  import { format as format$1 } from 'util';
@@ -3472,7 +3472,7 @@ async function setupGlobalEnv(config) {
3472
3472
  setupConsoleLogSpy();
3473
3473
  await setupChai();
3474
3474
  if (config.global)
3475
- (await import('./global-b8ab5632.js')).registerApiGlobally();
3475
+ (await import('./global-201fd559.js')).registerApiGlobally();
3476
3476
  }
3477
3477
  function setupConsoleLogSpy() {
3478
3478
  const stdout = new Writable({
@@ -1,11 +1,11 @@
1
- import { g as globalApis } from './constants-e762cbc5.js';
2
- import { i as index } from './index-a90f376d.js';
1
+ import { g as globalApis } from './constants-2b0310b7.js';
2
+ import { i as index } from './index-2bb9fd4d.js';
3
3
  import 'url';
4
- import './utils-d97bd6d9.js';
4
+ import './utils-cb6b1266.js';
5
5
  import 'tty';
6
6
  import 'local-pkg';
7
7
  import 'path';
8
- import './vi-aedc8539.js';
8
+ import './vi-cb9e4e4e.js';
9
9
  import './jest-mock-a57b745c.js';
10
10
  import 'chai';
11
11
  import 'tinyspy';
@@ -1,4 +1,4 @@
1
- import { g as getCurrentSuite, w as withTimeout, a as getDefaultHookTimeout, b as getState, s as setState, c as suite, t as test, d as describe, i as it, v as vitest, e as vi } from './vi-aedc8539.js';
1
+ import { g as getCurrentSuite, w as withTimeout, a as getDefaultHookTimeout, b as getState, s as setState, c as suite, t as test, d as describe, i as it, v as vitest, e as vi } from './vi-cb9e4e4e.js';
2
2
  import chai, { assert, should } from 'chai';
3
3
  import { s as spies, a as spyOn, f as fn } from './jest-mock-a57b745c.js';
4
4