vitest 0.34.0 → 0.34.1
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.
|
@@ -4,7 +4,7 @@ import { g as getDefaultExportFromCjs } from './vendor-_commonjsHelpers.7d1333e8
|
|
|
4
4
|
import require$$2 from 'util';
|
|
5
5
|
import require$$0$1 from 'child_process';
|
|
6
6
|
import { p as pathKeyExports, s as signalExitExports, m as mergeStream$1, g as getStreamExports, c as crossSpawnExports } from './vendor-index.1f85e5f1.js';
|
|
7
|
-
import { o as onetimeExports } from './vendor-node.
|
|
7
|
+
import { o as onetimeExports } from './vendor-node.caa511fc.js';
|
|
8
8
|
import require$$0 from 'os';
|
|
9
9
|
import 'node:buffer';
|
|
10
10
|
import 'node:path';
|
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { normalize } from 'pathe';
|
|
2
2
|
import cac from 'cac';
|
|
3
3
|
import c from 'picocolors';
|
|
4
|
-
import { v as version, s as startVitest, d as divider } from './vendor-node.
|
|
4
|
+
import { v as version, s as startVitest, d as divider } from './vendor-node.caa511fc.js';
|
|
5
5
|
import './vendor-index.087d1af7.js';
|
|
6
6
|
import { t as toArray } from './vendor-base.9c08bbd0.js';
|
|
7
7
|
import 'vite';
|
package/dist/node.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BaseSequencer, V as VitestPlugin, c as createVitest, r as registerConsoleShortcuts, s as startVitest } from './vendor-node.
|
|
1
|
+
export { B as BaseSequencer, V as VitestPlugin, c as createVitest, r as registerConsoleShortcuts, s as startVitest } from './vendor-node.caa511fc.js';
|
|
2
2
|
import 'pathe';
|
|
3
3
|
import 'vite';
|
|
4
4
|
import 'node:path';
|
|
@@ -61,7 +61,7 @@ function _mergeNamespaces(n, m) {
|
|
|
61
61
|
return Object.freeze(n);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
var version$1 = "0.34.
|
|
64
|
+
var version$1 = "0.34.1";
|
|
65
65
|
|
|
66
66
|
const __dirname$1 = url.fileURLToPath(new URL(".", import.meta.url));
|
|
67
67
|
async function ensurePackageInstalled(dependency, root) {
|
|
@@ -80,7 +80,7 @@ async function ensurePackageInstalled(dependency, root) {
|
|
|
80
80
|
message: c.reset(`Do you want to install ${c.green(dependency)}?`)
|
|
81
81
|
});
|
|
82
82
|
if (install) {
|
|
83
|
-
await (await import('./chunk-install-pkg.
|
|
83
|
+
await (await import('./chunk-install-pkg.dd40cbef.js')).installPackage(dependency, { dev: true });
|
|
84
84
|
process.stderr.write(c.yellow(`
|
|
85
85
|
Package ${dependency} installed, re-run the command to start.
|
|
86
86
|
`));
|
|
@@ -7518,7 +7518,8 @@ function createVmThreadsPool(ctx, { execArgv, env }) {
|
|
|
7518
7518
|
suppressLoaderWarningsPath$1,
|
|
7519
7519
|
...execArgv
|
|
7520
7520
|
],
|
|
7521
|
-
terminateTimeout: ctx.config.teardownTimeout
|
|
7521
|
+
terminateTimeout: ctx.config.teardownTimeout,
|
|
7522
|
+
maxMemoryLimitBeforeRecycle: ctx.config.experimentalVmWorkerMemoryLimit || void 0
|
|
7522
7523
|
};
|
|
7523
7524
|
if (ctx.config.singleThread) {
|
|
7524
7525
|
options.concurrentTasksPerWorker = 1;
|
|
@@ -11527,7 +11528,7 @@ createLogUpdate(process$1.stdout);
|
|
|
11527
11528
|
|
|
11528
11529
|
createLogUpdate(process$1.stderr);
|
|
11529
11530
|
|
|
11530
|
-
var version = "0.34.
|
|
11531
|
+
var version = "0.34.1";
|
|
11531
11532
|
|
|
11532
11533
|
const A=r=>r!==null&&typeof r=="object",a=(r,t)=>Object.assign(new Error(`[${r}]: ${t}`),{code:r}),_$1="ERR_INVALID_PACKAGE_CONFIG",E="ERR_INVALID_PACKAGE_TARGET",I="ERR_PACKAGE_PATH_NOT_EXPORTED",R$1=/^\d+$/,O=/^(\.{1,2}|node_modules)$/i,w=/\/|\\/;var h=(r=>(r.Export="exports",r.Import="imports",r))(h||{});const f=(r,t,e,o,c)=>{if(t==null)return [];if(typeof t=="string"){const[n,...i]=t.split(w);if(n===".."||i.some(l=>O.test(l)))throw a(E,`Invalid "${r}" target "${t}" defined in the package config`);return [c?t.replace(/\*/g,c):t]}if(Array.isArray(t))return t.flatMap(n=>f(r,n,e,o,c));if(A(t)){for(const n of Object.keys(t)){if(R$1.test(n))throw a(_$1,"Cannot contain numeric property keys");if(n==="default"||o.includes(n))return f(r,t[n],e,o,c)}return []}throw a(E,`Invalid "${r}" target "${t}"`)},s="*",m=(r,t)=>{const e=r.indexOf(s),o=t.indexOf(s);return e===o?t.length>r.length:o>e};function d$1(r,t){if(!t.includes(s)&&r.hasOwnProperty(t))return [t];let e,o;for(const c of Object.keys(r))if(c.includes(s)){const[n,i,l]=c.split(s);if(l===void 0&&t.startsWith(n)&&t.endsWith(i)){const g=t.slice(n.length,-i.length||void 0);g&&(!e||m(e,c))&&(e=c,o=g);}}return [e,o]}const p=r=>Object.keys(r).reduce((t,e)=>{const o=e===""||e[0]!==".";if(t===void 0||t===o)return o;throw a(_$1,'"exports" cannot contain some keys starting with "." and some not')},void 0),u=/^\w+:/,v=(r,t,e)=>{if(!r)throw new Error('"exports" is required');t=t===""?".":`./${t}`,(typeof r=="string"||Array.isArray(r)||A(r)&&p(r))&&(r={".":r});const[o,c]=d$1(r,t),n=f(h.Export,r[o],t,e,c);if(n.length===0)throw a(I,t==="."?'No "exports" main defined':`Package subpath '${t}' is not defined by "exports"`);for(const i of n)if(!i.startsWith("./")&&!u.test(i))throw a(E,`Invalid "exports" target "${i}" defined in the package config`);return n};
|
|
11533
11534
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.34.
|
|
4
|
+
"version": "0.34.1",
|
|
5
5
|
"description": "A blazing fast unit test framework powered by Vite",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -151,12 +151,12 @@
|
|
|
151
151
|
"tinypool": "^0.7.0",
|
|
152
152
|
"vite": "^3.0.0 || ^4.0.0",
|
|
153
153
|
"why-is-node-running": "^2.2.2",
|
|
154
|
-
"@vitest/
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"@vitest/
|
|
158
|
-
"@vitest/
|
|
159
|
-
"@vitest/
|
|
154
|
+
"@vitest/utils": "0.34.1",
|
|
155
|
+
"vite-node": "0.34.1",
|
|
156
|
+
"@vitest/runner": "0.34.1",
|
|
157
|
+
"@vitest/expect": "0.34.1",
|
|
158
|
+
"@vitest/snapshot": "0.34.1",
|
|
159
|
+
"@vitest/spy": "0.34.1"
|
|
160
160
|
},
|
|
161
161
|
"devDependencies": {
|
|
162
162
|
"@ampproject/remapping": "^2.2.1",
|