Skip to content

Commit 429a777

Browse files
committed
refactor(test): consolidate duplicate tests and vitest configs
Cleanup to reduce duplication and improve maintainability: Test Consolidation: - Removed 3 duplicate test files from test/helpers/ - Kept canonical versions in test/utils/ - Verified all 64 tests still pass - Files removed: cache-strategies, performance, memoization Config Consolidation: - Created shared vitest.config.simple.mts for common config - Updated 3 packages to extend shared config - Packages: node-sea-builder, node-smol-builder, cli-with-sentry - Reduces config duplication from 24 lines to 6 lines per package Test Results: ✓ 64 tests passing in 217ms
1 parent f164218 commit 429a777

File tree

7 files changed

+27
-803
lines changed

7 files changed

+27
-803
lines changed
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import { defineConfig } from 'vitest/config'
1+
/**
2+
* Extends shared simple vitest config.
3+
*/
4+
import baseConfig from '../../vitest.config.simple.mts'
25

3-
export default defineConfig({
4-
test: {
5-
testTimeout: 10000,
6-
hookTimeout: 10000,
7-
},
8-
})
6+
export default baseConfig

packages/cli/test/helpers/cache-strategies.test.mts

Lines changed: 0 additions & 162 deletions
This file was deleted.

0 commit comments

Comments
 (0)