vitest 0.0.110 → 0.0.114

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/LICENSE.md CHANGED
@@ -193,6 +193,35 @@ Repository: chalk/ansi-styles
193
193
 
194
194
  ---------------------------------------
195
195
 
196
+ ## birpc
197
+ License: MIT
198
+ By: Anthony Fu
199
+ Repository: git+https://github.com/antfu/birpc.git
200
+
201
+ > MIT License
202
+ >
203
+ > Copyright (c) 2021 Anthony Fu <https://github.com/antfu>
204
+ >
205
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
206
+ > of this software and associated documentation files (the "Software"), to deal
207
+ > in the Software without restriction, including without limitation the rights
208
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
209
+ > copies of the Software, and to permit persons to whom the Software is
210
+ > furnished to do so, subject to the following conditions:
211
+ >
212
+ > The above copyright notice and this permission notice shall be included in all
213
+ > copies or substantial portions of the Software.
214
+ >
215
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
216
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
217
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
218
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
219
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
220
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
221
+ > SOFTWARE.
222
+
223
+ ---------------------------------------
224
+
196
225
  ## braces
197
226
  License: MIT
198
227
  By: Jon Schlinkert, Brian Woodward, Elan Shanker, Eugene Sharygin, hemanth.hm
package/dist/cli.js CHANGED
@@ -1,25 +1,27 @@
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 './index-ea5153a0.js';
4
+ import { c as createVitest } from './index-36694964.js';
5
+ import 'url';
5
6
  import 'tty';
6
7
  import 'local-pkg';
7
8
  import 'path';
9
+ import 'fs';
8
10
  import 'vite';
9
11
  import 'process';
10
- import 'fs';
11
12
  import 'os';
12
13
  import 'util';
13
14
  import 'stream';
14
- import './constants-e762cbc5.js';
15
- import 'url';
15
+ import './constants-9c7f06df.js';
16
+ import './magic-string.es-94000aea.js';
16
17
  import 'perf_hooks';
17
- import './diff-46ee5d7d.js';
18
+ import './diff-3cfdad26.js';
18
19
  import './index-61c8686f.js';
19
20
  import './_commonjsHelpers-c9e3b764.js';
20
21
  import 'assert';
21
22
  import 'worker_threads';
22
23
  import 'tinypool';
24
+ import './index-7889832e.js';
23
25
 
24
26
  function toArr(any) {
25
27
  return any == null ? [] : Array.isArray(any) ? any : [any];
@@ -634,10 +636,10 @@ class CAC extends EventEmitter {
634
636
 
635
637
  const cac = (name = "") => new CAC(name);
636
638
 
637
- var version = "0.0.110";
639
+ var version = "0.0.114";
638
640
 
639
641
  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();
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 console.log output from tests").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
643
  cli.command("run [...filters]").action(run);
642
644
  cli.command("watch [...filters]").action(dev);
643
645
  cli.command("dev [...filters]").action(dev);
@@ -645,7 +647,7 @@ cli.command("[...filters]").action(dev);
645
647
  cli.parse();
646
648
  async function dev(cliFilters, argv) {
647
649
  if (argv.watch == null)
648
- argv.watch = !process.env.CI && !process.env.NODE_V8_COVERAGE && !argv.silent && !argv.run;
650
+ argv.watch = !process.env.CI && !process.env.NODE_V8_COVERAGE && !argv.run;
649
651
  await run(cliFilters, argv);
650
652
  }
651
653
  async function run(cliFilters, options) {
@@ -1,9 +1,9 @@
1
1
  import { fileURLToPath } from 'url';
2
- import { h as resolve } from './utils-d97bd6d9.js';
2
+ import { j as resolve } from './index-ea5153a0.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}"];
6
- const defaultExclude = ["**/node_modules/**", "**/dist/**", "**/.{idea,git,cache,output,temp}/**"];
6
+ const defaultExclude = ["**/node_modules/**", "**/dist/**", "**/cypress/**", "**/.{idea,git,cache,output,temp}/**"];
7
7
  const defaultPort = 51204;
8
8
  const API_PATH = "/__vitest_api__";
9
9
  const configFiles = [