aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/vitest/suppress-warnings.cjs
diff options
context:
space:
mode:
Diffstat (limited to 'vanilla/node_modules/vitest/suppress-warnings.cjs')
-rw-r--r--vanilla/node_modules/vitest/suppress-warnings.cjs21
1 files changed, 0 insertions, 21 deletions
diff --git a/vanilla/node_modules/vitest/suppress-warnings.cjs b/vanilla/node_modules/vitest/suppress-warnings.cjs
deleted file mode 100644
index 65a3106..0000000
--- a/vanilla/node_modules/vitest/suppress-warnings.cjs
+++ /dev/null
@@ -1,21 +0,0 @@
-// borrowed from tsx implementation:
-// https://github.com/esbuild-kit/tsx
-
-const ignoreWarnings = new Set([
- '--experimental-loader is an experimental feature. This feature could change at any time',
- 'Custom ESM Loaders is an experimental feature. This feature could change at any time',
- 'Custom ESM Loaders is an experimental feature and might change at any time',
- 'VM Modules is an experimental feature and might change at any time',
- 'VM Modules is an experimental feature. This feature could change at any time',
-])
-
-const { emit } = process
-
-process.emit = function (event, warning) {
- if (event === 'warning' && ignoreWarnings.has(warning.message)) {
- return
- }
-
- // eslint-disable-next-line prefer-rest-params
- return Reflect.apply(emit, this, arguments)
-}