vitest 0.17.1 → 0.18.0

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.
Files changed (23) hide show
  1. package/dist/{chunk-api-setup.c728e251.mjs → chunk-api-setup.63babd7c.mjs} +4 -4
  2. package/dist/{chunk-constants.27550afb.mjs → chunk-constants.8eb2ed35.mjs} +1 -1
  3. package/dist/{chunk-env-node.aa51c4cc.mjs → chunk-env-node.26c72624.mjs} +1 -1
  4. package/dist/{chunk-install-pkg.6f5930c3.mjs → chunk-install-pkg.2dcb2c04.mjs} +1 -1
  5. package/dist/{chunk-integrations-globals.3df36e26.mjs → chunk-integrations-globals.61e4d6ae.mjs} +7 -7
  6. package/dist/{chunk-runtime-chain.6d23d202.mjs → chunk-runtime-chain.eb764dff.mjs} +3 -3
  7. package/dist/{chunk-runtime-mocker.34b9d585.mjs → chunk-runtime-mocker.79ccc3de.mjs} +3 -3
  8. package/dist/{chunk-runtime-rpc.d986adb9.mjs → chunk-runtime-rpc.cc6a06a2.mjs} +1 -1
  9. package/dist/{chunk-utils-global.4828c2e2.mjs → chunk-utils-global.1b22c4fd.mjs} +5 -5
  10. package/dist/{chunk-utils-source-map.a9047343.mjs → chunk-utils-source-map.957e7756.mjs} +2 -2
  11. package/dist/{chunk-vite-node-externalize.0fc8ed68.mjs → chunk-vite-node-externalize.0791f2ed.mjs} +2629 -2536
  12. package/dist/{chunk-vite-node-utils.0f776286.mjs → chunk-vite-node-utils.af8ead96.mjs} +1 -1
  13. package/dist/cli.mjs +11 -11
  14. package/dist/entry.mjs +6 -6
  15. package/dist/index.d.ts +70 -31
  16. package/dist/index.mjs +4 -4
  17. package/dist/node.d.ts +72 -40
  18. package/dist/node.mjs +12 -12
  19. package/dist/{vendor-entry.1ad8a08d.mjs → vendor-entry.78de67ab.mjs} +6 -6
  20. package/dist/{vendor-index.a2a385d8.mjs → vendor-index.4bf9c627.mjs} +405 -405
  21. package/dist/{vendor-index.98e769c1.mjs → vendor-index.de788b6a.mjs} +7 -7
  22. package/dist/worker.mjs +5 -5
  23. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import readline from 'readline';
1
+ import require$$0 from 'readline';
2
2
  import require$$2 from 'events';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -508,7 +508,7 @@ function requirePrompt$1 () {
508
508
  if (hasRequiredPrompt$1) return prompt$1;
509
509
  hasRequiredPrompt$1 = 1;
510
510
 
511
- const readline$1 = readline;
511
+ const readline = require$$0;
512
512
 
513
513
  const _require = requireUtil$1(),
514
514
  action = _require.action;
@@ -536,11 +536,11 @@ function requirePrompt$1 () {
536
536
 
537
537
  this.onRender = (opts.onRender || (() => void 0)).bind(this);
538
538
 
539
- const rl = readline$1.createInterface({
539
+ const rl = readline.createInterface({
540
540
  input: this.in,
541
541
  escapeCodeTimeout: 50
542
542
  });
543
- readline$1.emitKeypressEvents(this.in, rl);
543
+ readline.emitKeypressEvents(this.in, rl);
544
544
  if (this.in.isTTY) this.in.setRawMode(true);
545
545
  const isSelect = ['SelectPrompt', 'MultiselectPrompt'].indexOf(this.constructor.name) > -1;
546
546
 
@@ -3673,7 +3673,7 @@ function requirePrompt () {
3673
3673
  if (hasRequiredPrompt) return prompt;
3674
3674
  hasRequiredPrompt = 1;
3675
3675
 
3676
- const readline$1 = readline;
3676
+ const readline = require$$0;
3677
3677
  const { action } = requireUtil();
3678
3678
  const EventEmitter = require$$2;
3679
3679
  const { beep, cursor } = requireSrc();
@@ -3692,8 +3692,8 @@ function requirePrompt () {
3692
3692
  this.in = opts.stdin || process.stdin;
3693
3693
  this.out = opts.stdout || process.stdout;
3694
3694
  this.onRender = (opts.onRender || (() => void 0)).bind(this);
3695
- const rl = readline$1.createInterface({ input:this.in, escapeCodeTimeout:50 });
3696
- readline$1.emitKeypressEvents(this.in, rl);
3695
+ const rl = readline.createInterface({ input:this.in, escapeCodeTimeout:50 });
3696
+ readline.emitKeypressEvents(this.in, rl);
3697
3697
 
3698
3698
  if (this.in.isTTY) this.in.setRawMode(true);
3699
3699
  const isSelect = [ 'SelectPrompt', 'MultiselectPrompt' ].indexOf(this.constructor.name) > -1;
package/dist/worker.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { q as resolve, a as getWorkerState } from './chunk-utils-global.4828c2e2.mjs';
2
- import { c as createBirpc, M as ModuleCacheMap } from './chunk-vite-node-utils.0f776286.mjs';
1
+ import { q as resolve, a as getWorkerState } from './chunk-utils-global.1b22c4fd.mjs';
2
+ import { c as createBirpc, M as ModuleCacheMap } from './chunk-vite-node-utils.af8ead96.mjs';
3
3
  import { workerId } from 'tinypool';
4
- import { d as distDir } from './chunk-constants.27550afb.mjs';
5
- import { e as executeInViteNode } from './chunk-runtime-mocker.34b9d585.mjs';
6
- import { r as rpc } from './chunk-runtime-rpc.d986adb9.mjs';
4
+ import { d as distDir } from './chunk-constants.8eb2ed35.mjs';
5
+ import { e as executeInViteNode } from './chunk-runtime-mocker.79ccc3de.mjs';
6
+ import { r as rpc } from './chunk-runtime-rpc.cc6a06a2.mjs';
7
7
  import 'tty';
8
8
  import 'local-pkg';
9
9
  import 'path';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitest",
3
- "version": "0.17.1",
3
+ "version": "0.18.0",
4
4
  "description": "A blazing fast unit test framework powered by Vite",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -101,7 +101,7 @@
101
101
  "@types/natural-compare": "^1.4.1",
102
102
  "@types/prompts": "^2.4.0",
103
103
  "@types/sinonjs__fake-timers": "^8.1.2",
104
- "@vitest/ui": "0.17.1",
104
+ "@vitest/ui": "0.18.0",
105
105
  "birpc": "^0.2.3",
106
106
  "c8": "^7.11.3",
107
107
  "cac": "^6.7.12",
@@ -129,7 +129,7 @@
129
129
  "source-map-js": "^1.0.2",
130
130
  "strip-ansi": "^7.0.1",
131
131
  "typescript": "^4.7.4",
132
- "vite-node": "0.17.1",
132
+ "vite-node": "0.18.0",
133
133
  "ws": "^8.8.0"
134
134
  },
135
135
  "scripts": {