aboutsummaryrefslogtreecommitdiff
path: root/vitest.config.ts
diff options
context:
space:
mode:
authorShinigami <[email protected]>2024-02-09 09:18:31 +0100
committerGitHub <[email protected]>2024-02-09 09:18:31 +0100
commit1e0df8b81445d89b4a65bcab3a156b51ee1d1a38 (patch)
treebbfaac8c5dbb6865157b0e91bdc99a6273409794 /vitest.config.ts
parent7c7f78daa0fef802af916c2f192cc36bee6c88d2 (diff)
downloadfaker-1e0df8b81445d89b4a65bcab3a156b51ee1d1a38.tar.xz
faker-1e0df8b81445d89b4a65bcab3a156b51ee1d1a38.zip
infra!: drop NodeJS v14 and v16 support (#2121)
Diffstat (limited to 'vitest.config.ts')
-rw-r--r--vitest.config.ts21
1 files changed, 0 insertions, 21 deletions
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' &&