vitest 0.0.108 → 0.0.109
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/dist/entry.js +1 -2
- package/dist/{index-a7df3e65.js → index-a727b58c.js} +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/node.js +1 -1
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import require$$0 from 'readline';
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
3
|
import { e as ensurePackageInstalled } from './utils-d97bd6d9.js';
|
|
4
|
-
import { c as createVitest } from './index-
|
|
4
|
+
import { c as createVitest } from './index-a727b58c.js';
|
|
5
5
|
import 'tty';
|
|
6
6
|
import 'local-pkg';
|
|
7
7
|
import 'path';
|
|
@@ -634,7 +634,7 @@ class CAC extends EventEmitter {
|
|
|
634
634
|
|
|
635
635
|
const cac = (name = "") => new CAC(name);
|
|
636
636
|
|
|
637
|
-
var version = "0.0.
|
|
637
|
+
var version = "0.0.109";
|
|
638
638
|
|
|
639
639
|
const cli = cac("vitest");
|
|
640
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();
|
package/dist/entry.js
CHANGED
|
@@ -3931,13 +3931,12 @@ function setupConsoleLogSpy() {
|
|
|
3931
3931
|
callback();
|
|
3932
3932
|
}
|
|
3933
3933
|
});
|
|
3934
|
-
|
|
3934
|
+
globalThis.console = new Console({
|
|
3935
3935
|
stdout,
|
|
3936
3936
|
stderr,
|
|
3937
3937
|
colorMode: true,
|
|
3938
3938
|
groupIndentation: 2
|
|
3939
3939
|
});
|
|
3940
|
-
globalThis.console = newConsole;
|
|
3941
3940
|
}
|
|
3942
3941
|
async function withEnv(name, fn) {
|
|
3943
3942
|
const env = await environments[name].setup(globalThis);
|
|
@@ -7483,8 +7483,9 @@ ${c.inverse(c.bold(mode))} ${c.gray(this.ctx.config.root)}
|
|
|
7483
7483
|
this.ctx.error(c.red(divider(c.bold(c.inverse(` Failed Suites ${failedSuites.length} `)))));
|
|
7484
7484
|
this.ctx.error();
|
|
7485
7485
|
for (const suite of failedSuites) {
|
|
7486
|
+
const filepath = (suite == null ? void 0 : suite.filepath) || "";
|
|
7486
7487
|
this.ctx.error(c.red(`
|
|
7487
|
-
- ${getFullName(suite)}`));
|
|
7488
|
+
- ${getFullName(suite)} ${c.dim(`[ ${this.relative(filepath)} ]`)}`));
|
|
7488
7489
|
await printError((_a = suite.result) == null ? void 0 : _a.error, this.ctx);
|
|
7489
7490
|
errorDivider();
|
|
7490
7491
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Formatter } from 'picocolors/types';
|
|
|
2
2
|
import { OptionsReceived } from 'pretty-format';
|
|
3
3
|
import { MessagePort } from 'worker_threads';
|
|
4
4
|
export { assert, default as chai, expect, should } from 'chai';
|
|
5
|
+
export { Spy, SpyFn } from 'tinyspy';
|
|
5
6
|
|
|
6
7
|
declare const EXPECTED_COLOR: Formatter;
|
|
7
8
|
declare const RECEIVED_COLOR: Formatter;
|
package/dist/node.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.109",
|
|
4
4
|
"description": "A blazing fast unit test framework powered by Vite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vite",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"chai": "^4.3.4",
|
|
53
53
|
"local-pkg": "^0.4.0",
|
|
54
54
|
"tinypool": "^0.0.5",
|
|
55
|
-
"tinyspy": "^0.2.
|
|
55
|
+
"tinyspy": "^0.2.5"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@antfu/install-pkg": "^0.1.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@types/jsdom": "^16.2.14",
|
|
61
61
|
"@types/micromatch": "^4.0.2",
|
|
62
62
|
"@types/natural-compare": "^1.4.1",
|
|
63
|
-
"@types/node": "^17.0.
|
|
63
|
+
"@types/node": "^17.0.3",
|
|
64
64
|
"@types/prompts": "^2.4.0",
|
|
65
65
|
"c8": "^7.10.0",
|
|
66
66
|
"cac": "^6.7.12",
|