vitest 0.18.0 → 0.19.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.
- package/LICENSE.md +6 -6
- package/dist/browser.d.ts +1850 -0
- package/dist/browser.mjs +20 -0
- package/dist/{chunk-api-setup.63babd7c.mjs → chunk-api-setup.0cf2c96a.mjs} +37 -11
- package/dist/{chunk-constants.8eb2ed35.mjs → chunk-constants.38b43a44.mjs} +3 -3
- package/dist/{chunk-env-node.26c72624.mjs → chunk-defaults.ed196a9a.mjs} +458 -455
- package/dist/{chunk-install-pkg.2dcb2c04.mjs → chunk-install-pkg.6c6dc0c2.mjs} +11 -10
- package/dist/chunk-integrations-globals.1018e651.mjs +24 -0
- package/dist/chunk-node-git.9058b82a.mjs +1139 -0
- package/dist/chunk-runtime-chain.f2e00f4c.mjs +2039 -0
- package/dist/{vendor-entry.78de67ab.mjs → chunk-runtime-error.606e0393.mjs} +167 -183
- package/dist/{chunk-runtime-chain.eb764dff.mjs → chunk-runtime-hooks.d4cadf47.mjs} +33 -2012
- package/dist/{chunk-runtime-mocker.79ccc3de.mjs → chunk-runtime-mocker.dfdfd57b.mjs} +70 -22
- package/dist/{chunk-runtime-rpc.cc6a06a2.mjs → chunk-runtime-rpc.45d8ee19.mjs} +1 -1
- package/dist/{chunk-utils-global.1b22c4fd.mjs → chunk-utils-global.2aa95025.mjs} +11 -6
- package/dist/{chunk-utils-source-map.957e7756.mjs → chunk-utils-source-map.8b066ce2.mjs} +2 -2
- package/dist/{chunk-vite-node-externalize.0791f2ed.mjs → chunk-vite-node-externalize.e9af6472.mjs} +105 -1174
- package/dist/chunk-vite-node-utils.ad73f2ab.mjs +1433 -0
- package/dist/cli.mjs +9 -11
- package/dist/config.cjs +4 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.mjs +4 -1
- package/dist/entry.mjs +54 -10
- package/dist/index.d.ts +56 -27
- package/dist/index.mjs +12 -9
- package/dist/node.d.ts +37 -18
- package/dist/node.mjs +10 -12
- package/dist/spy.mjs +102 -2
- package/dist/suite.mjs +13 -0
- package/dist/vendor-index.61438b77.mjs +335 -0
- package/dist/{vendor-index.4bf9c627.mjs → vendor-index.62ce5c33.mjs} +11 -343
- package/dist/worker.mjs +6 -6
- package/package.json +20 -12
- package/dist/chunk-integrations-globals.61e4d6ae.mjs +0 -26
- package/dist/chunk-integrations-spy.674b628e.mjs +0 -102
- package/dist/chunk-vite-node-utils.af8ead96.mjs +0 -9195
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import path$2 from 'path';
|
|
2
2
|
import fs$2 from 'fs';
|
|
3
|
-
import
|
|
3
|
+
import util from 'util';
|
|
4
4
|
import childProcess$1 from 'child_process';
|
|
5
|
-
import { p as pathKey,
|
|
6
|
-
import
|
|
5
|
+
import { p as pathKey, m as mergeStream$1, g as getStream$1, c as crossSpawn$1 } from './vendor-index.62ce5c33.mjs';
|
|
6
|
+
import { s as signalExit, o as onetime$1 } from './vendor-index.61438b77.mjs';
|
|
7
|
+
import require$$0 from 'os';
|
|
7
8
|
import './vendor-_commonjsHelpers.4da45ef5.mjs';
|
|
8
|
-
import 'assert';
|
|
9
|
-
import 'events';
|
|
10
9
|
import 'buffer';
|
|
11
10
|
import 'stream';
|
|
11
|
+
import 'assert';
|
|
12
|
+
import 'events';
|
|
12
13
|
|
|
13
14
|
var findUp$1 = {exports: {}};
|
|
14
15
|
|
|
@@ -206,7 +207,7 @@ var pLocate_1 = pLocate$1;
|
|
|
206
207
|
|
|
207
208
|
const path$1 = path$2;
|
|
208
209
|
const fs$1 = fs$2;
|
|
209
|
-
const {promisify: promisify$1} =
|
|
210
|
+
const {promisify: promisify$1} = util;
|
|
210
211
|
const pLocate = pLocate_1;
|
|
211
212
|
|
|
212
213
|
const fsStat = promisify$1(fs$1.stat);
|
|
@@ -275,7 +276,7 @@ locatePath.exports.sync = (paths, options) => {
|
|
|
275
276
|
var pathExists = {exports: {}};
|
|
276
277
|
|
|
277
278
|
const fs = fs$2;
|
|
278
|
-
const {promisify} =
|
|
279
|
+
const {promisify} = util;
|
|
279
280
|
|
|
280
281
|
const pAccess = promisify(fs.access);
|
|
281
282
|
|
|
@@ -758,7 +759,7 @@ standard:"posix"};
|
|
|
758
759
|
const SIGRTMIN=34;
|
|
759
760
|
const SIGRTMAX=64;realtime.SIGRTMAX=SIGRTMAX;
|
|
760
761
|
|
|
761
|
-
Object.defineProperty(signals,"__esModule",{value:true});signals.getSignals=void 0;var _os$1=require$$0
|
|
762
|
+
Object.defineProperty(signals,"__esModule",{value:true});signals.getSignals=void 0;var _os$1=require$$0;
|
|
762
763
|
|
|
763
764
|
var _core=core;
|
|
764
765
|
var _realtime$1=realtime;
|
|
@@ -793,7 +794,7 @@ const number=supported?constantSignal:defaultNumber;
|
|
|
793
794
|
return {name,number,description,supported,action,forced,standard};
|
|
794
795
|
};
|
|
795
796
|
|
|
796
|
-
Object.defineProperty(main,"__esModule",{value:true});main.signalsByNumber=main.signalsByName=void 0;var _os=require$$0
|
|
797
|
+
Object.defineProperty(main,"__esModule",{value:true});main.signalsByNumber=main.signalsByName=void 0;var _os=require$$0;
|
|
797
798
|
|
|
798
799
|
var _signals=signals;
|
|
799
800
|
var _realtime=realtime;
|
|
@@ -1006,7 +1007,7 @@ stdio.exports.node = options => {
|
|
|
1006
1007
|
return [...stdio, 'ipc'];
|
|
1007
1008
|
};
|
|
1008
1009
|
|
|
1009
|
-
const os = require$$0
|
|
1010
|
+
const os = require$$0;
|
|
1010
1011
|
const onExit = signalExit.exports;
|
|
1011
1012
|
|
|
1012
1013
|
const DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { g as globalApis } from './chunk-constants.38b43a44.mjs';
|
|
2
|
+
import { i as index } from './chunk-runtime-hooks.d4cadf47.mjs';
|
|
3
|
+
import 'url';
|
|
4
|
+
import './chunk-utils-global.2aa95025.mjs';
|
|
5
|
+
import 'path';
|
|
6
|
+
import 'tty';
|
|
7
|
+
import 'local-pkg';
|
|
8
|
+
import './chunk-runtime-chain.f2e00f4c.mjs';
|
|
9
|
+
import 'util';
|
|
10
|
+
import 'chai';
|
|
11
|
+
import './vendor-_commonjsHelpers.4da45ef5.mjs';
|
|
12
|
+
import './chunk-runtime-rpc.45d8ee19.mjs';
|
|
13
|
+
import 'fs';
|
|
14
|
+
import './chunk-utils-source-map.8b066ce2.mjs';
|
|
15
|
+
import './spy.mjs';
|
|
16
|
+
import 'tinyspy';
|
|
17
|
+
|
|
18
|
+
function registerApiGlobally() {
|
|
19
|
+
globalApis.forEach((api) => {
|
|
20
|
+
globalThis[api] = index[api];
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { registerApiGlobally };
|