feat: remove obsolete CI workflows and update documentation for new CI structure
This commit is contained in:
@@ -1,17 +1,27 @@
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { defineConfig } from 'vitest/config';
|
||||
|
||||
const repoRoot = fileURLToPath(new URL('../..', import.meta.url));
|
||||
const libRoot = fileURLToPath(new URL('../../src/lib', import.meta.url));
|
||||
const setupFile = fileURLToPath(new URL('../../tests/unit/setup.ts', import.meta.url));
|
||||
|
||||
export default defineConfig({
|
||||
root: repoRoot,
|
||||
resolve: {
|
||||
alias: {
|
||||
'@lib': fileURLToPath(new URL('../../src/lib', import.meta.url)),
|
||||
'@lib': libRoot,
|
||||
},
|
||||
},
|
||||
server: {
|
||||
fs: {
|
||||
allow: [repoRoot],
|
||||
},
|
||||
},
|
||||
test: {
|
||||
environment: 'jsdom',
|
||||
globals: true,
|
||||
setupFiles: ['../../tests/unit/setup.ts'],
|
||||
include: ['../../tests/unit/**/*.test.ts'],
|
||||
exclude: ['../../tests/e2e/**/*'],
|
||||
setupFiles: [setupFile],
|
||||
include: ['tests/unit/**/*.test.ts'],
|
||||
exclude: ['tests/e2e/**/*', 'packages/**'],
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user