17 lines
583 B
TypeScript
17 lines
583 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import { fileURLToPath, URL } from 'node:url';
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'gi://GLib': fileURLToPath(new URL('./tests/mocks/GLib.ts', import.meta.url)),
|
|
'gi://Gio': fileURLToPath(new URL('./tests/mocks/Gio.ts', import.meta.url)),
|
|
'gi://GObject': fileURLToPath(new URL('./tests/mocks/GObject.ts', import.meta.url)),
|
|
},
|
|
},
|
|
test: {
|
|
environment: 'node',
|
|
include: ['tests/unit/**/*.test.ts', 'tests/integration/**/*.test.ts'],
|
|
},
|
|
});
|