Skip to content

Commit

Permalink
remove test exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Jan 20, 2024
1 parent 5e6d4a4 commit 89b3dc9
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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' &&
Expand Down

0 comments on commit 89b3dc9

Please sign in to comment.