Skip to content

Commit 0702546

Browse files
igorcostaAutohand Evolve
andcommitted
Keep Tuistory tests on dedicated Vitest config
Co-authored-by: Autohand Evolve <code-noreply@autohand.ai>
1 parent 7d207f1 commit 0702546

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

tests/vitestConfig.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { describe, expect, it } from 'vitest';
77

88
interface VitestUserConfig {
99
test?: {
10+
exclude?: string[];
1011
maxConcurrency?: number;
1112
minWorkers?: number;
1213
maxWorkers?: number;
@@ -59,4 +60,10 @@ describe('vitest config', () => {
5960
expect(config.poolOptions?.forks?.singleFork).toBe(true);
6061
expect(config.poolOptions?.forks?.execArgv).toContain('--max-old-space-size=8192');
6162
});
63+
64+
it('keeps Tuistory tests on their dedicated built-CLI config', async () => {
65+
const config = await loadVitestConfig(true);
66+
67+
expect(config.test?.exclude).toContain('tests/tuistory/**');
68+
});
6269
});

vitest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export default defineConfig({
2525
'**/.worktrees/**',
2626
'**/.claude/worktrees/**',
2727
'**/.{idea,git,cache,output,temp}/**',
28+
'tests/tuistory/**',
2829
],
2930
},
3031
poolOptions: {

0 commit comments

Comments
 (0)