create-claude-webapp 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,47 @@
1
+ import { defineConfig } from 'vitest/config'
2
+ import path from 'path'
3
+ import { fileURLToPath } from 'url'
4
+
5
+ const __filename = fileURLToPath(import.meta.url)
6
+ const __dirname = path.dirname(__filename)
7
+
8
+ export default defineConfig({
9
+ test: {
10
+ globals: true,
11
+ environment: 'node',
12
+ // Process management improvements
13
+ testTimeout: 10000, // 10 second timeout
14
+ hookTimeout: 10000, // Hook processing timeout 10 seconds
15
+ teardownTimeout: 5000, // Teardown timeout 5 seconds
16
+ pool: 'threads', // Explicit process pool specification
17
+ poolOptions: {
18
+ threads: {
19
+ singleThread: false, // Allow parallel execution
20
+ isolate: true, // Isolate between tests
21
+ }
22
+ },
23
+ coverage: {
24
+ enabled: false, // Disable coverage by default
25
+ provider: 'v8',
26
+ reporter: ['text', 'json', 'html', 'lcov'],
27
+ reportsDirectory: './coverage',
28
+ clean: true, // Clear coverage files to prevent process residue
29
+ include: ['src/**/*.{js,ts,jsx,tsx}'],
30
+ exclude: [
31
+ 'node_modules/**',
32
+ 'dist/**',
33
+ '**/*.d.ts',
34
+ '**/*.config.*',
35
+ '**/mockData/**',
36
+ '**/__mocks__/**',
37
+ ],
38
+ // No coverage thresholds set for boilerplate
39
+ // Set appropriate values for each project
40
+ },
41
+ },
42
+ resolve: {
43
+ alias: {
44
+ src: path.resolve(__dirname, './src'),
45
+ },
46
+ },
47
+ })