vitest 0.20.0 → 0.20.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.
@@ -26,7 +26,7 @@ import MagicString from './chunk-magic-string.efe26975.mjs';
26
26
  import require$$0$2 from 'readline';
27
27
  import { p as prompts } from './vendor-index.de788b6a.mjs';
28
28
 
29
- var version$1 = "0.20.0";
29
+ var version$1 = "0.20.1";
30
30
 
31
31
  class EndError extends Error {
32
32
  constructor(value) {
@@ -9092,7 +9092,7 @@ createLogUpdate(process$1.stdout);
9092
9092
 
9093
9093
  createLogUpdate(process$1.stderr);
9094
9094
 
9095
- var version = "0.20.0";
9095
+ var version = "0.20.1";
9096
9096
 
9097
9097
  function fileFromParsedStack(stack) {
9098
9098
  var _a, _b;
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter } from 'events';
2
2
  import { p as picocolors } from './chunk-mock-date.9160e13b.mjs';
3
- import { v as version, s as startVitest, d as divider } from './chunk-vite-node-externalize.2e90dadf.mjs';
3
+ import { v as version, s as startVitest, d as divider } from './chunk-vite-node-externalize.fce5b934.mjs';
4
4
  import 'path';
5
5
  import 'tty';
6
6
  import 'local-pkg';
package/dist/node.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { B as BaseSequencer, V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.2e90dadf.mjs';
1
+ export { B as BaseSequencer, V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.fce5b934.mjs';
2
2
  export { V as VitestRunner } from './chunk-runtime-mocker.0a8f7c5e.mjs';
3
3
  import './chunk-mock-date.9160e13b.mjs';
4
4
  import 'path';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitest",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "description": "A blazing fast unit test framework powered by Vite",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -55,7 +55,8 @@
55
55
  "dist",
56
56
  "bin",
57
57
  "*.d.ts",
58
- "*.mjs"
58
+ "*.mjs",
59
+ "*.cjs"
59
60
  ],
60
61
  "engines": {
61
62
  "node": ">=v14.16.0"
@@ -109,7 +110,7 @@
109
110
  "@types/natural-compare": "^1.4.1",
110
111
  "@types/prompts": "^2.4.0",
111
112
  "@types/sinonjs__fake-timers": "^8.1.2",
112
- "@vitest/ui": "0.20.0",
113
+ "@vitest/ui": "0.20.1",
113
114
  "birpc": "^0.2.3",
114
115
  "c8": "^7.11.3",
115
116
  "cac": "^6.7.12",
@@ -137,7 +138,7 @@
137
138
  "source-map-js": "^1.0.2",
138
139
  "strip-ansi": "^7.0.1",
139
140
  "typescript": "^4.7.4",
140
- "vite-node": "0.20.0",
141
+ "vite-node": "0.20.1",
141
142
  "ws": "^8.8.1"
142
143
  },
143
144
  "scripts": {
@@ -0,0 +1,20 @@
1
+ // borrowed from tsx implementation:
2
+ // https://github.com/esbuild-kit/tsx
3
+
4
+ const ignoreWarnings = new Set([
5
+ '--experimental-loader is an experimental feature. This feature could change at any time',
6
+ 'Custom ESM Loaders is an experimental feature. This feature could change at any time',
7
+ ])
8
+
9
+ const { emit } = process
10
+
11
+ process.emit = function (event, warning) {
12
+ if (
13
+ event === 'warning'
14
+ && ignoreWarnings.has(warning.message)
15
+ )
16
+ return
17
+
18
+ // eslint-disable-next-line prefer-rest-params
19
+ return Reflect.apply(emit, this, arguments)
20
+ }