feat: implement stability fixes and enhance error handling
This commit is contained in:
1 parent
b0ec96d4a6
commit
5772e2e90e
17 files changed
+1161
-108
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import { defineConfig } from 'vitest/config';
|
||||
import path from 'path';
|
||||
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(process.cwd(), './src'),
|
||||
// Mock native modules that fail to load in test environment
|
||||
keytar: path.resolve(process.cwd(), './src/mocks/empty.ts'),
|
||||
'better-sqlite3': path.resolve(process.cwd(), './src/mocks/empty.ts'),
|
||||
},
|
||||
},
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'happy-dom',
|
||||
include: ['src/tests/unit/**/*.test.ts'],
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user