From 1e0df8b81445d89b4a65bcab3a156b51ee1d1a38 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Fri, 9 Feb 2024 09:18:31 +0100 Subject: infra!: drop NodeJS v14 and v16 support (#2121) --- vitest.config.ts | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'vitest.config.ts') diff --git a/vitest.config.ts b/vitest.config.ts index 16fa5aed..e903e970 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -4,17 +4,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: { @@ -30,16 +19,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' && -- cgit v1.2.3