diff --git a/vite.config.ts b/vite.config.ts index ca3339f2c7e..4cbe0c4fcc5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,17 +5,6 @@ const VITEST_SEQUENCE_SEED = Date.now(); console.log('VITEST_SEQUENCE_SEED', VITEST_SEQUENCE_SEED); -// TODO @Shinigami92 2023-12-28: remove when we drop support for Node 14 -const [nodeVersionMajor] = process.versions.node.split('.').map(Number); -const excludedTests: string[] = []; -if (nodeVersionMajor < 16) { - excludedTests.push( - 'test/scripts/apidoc/module.spec.ts', - 'test/scripts/apidoc/signature.spec.ts', - 'test/scripts/apidoc/verify-jsdoc-tags.spec.ts' - ); -} - // https://vitejs.dev/config/ export default defineConfig({ test: { @@ -31,16 +20,6 @@ export default defineConfig({ seed: VITEST_SEQUENCE_SEED, shuffle: true, }, - // TODO @Shinigami92 2023-12-28: remove the whole `exclude` when we drop support for Node 14 - exclude: [ - // should be originally `...configDefaults.exclude` from `'vitest/config'`, but esm... - 'node_modules', - 'dist', - '.idea', - '.git', - '.cache', - ...excludedTests, - ], onConsoleLog(log, type) { if ( type === 'stderr' &&