mirror of
https://github.com/immich-app/immich.git
synced 2026-03-22 17:59:48 +03:00
feat: vitest 4
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import { dirname, resolve } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import swc from 'unplugin-swc';
|
||||
import tsconfigPaths from 'vite-tsconfig-paths';
|
||||
import { defineConfig } from 'vitest/config';
|
||||
|
||||
const serverRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..');
|
||||
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
tsconfigPaths: true,
|
||||
},
|
||||
test: {
|
||||
name: 'server:unit',
|
||||
root: serverRoot,
|
||||
@@ -31,5 +32,4 @@ export default defineConfig({
|
||||
TZ: 'UTC',
|
||||
},
|
||||
},
|
||||
plugins: [swc.vite(), tsconfigPaths()],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user