mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-06 06:15:51 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
19 lines
545 B
TypeScript
19 lines
545 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import { pterodactylTestAliases, pterodactylTestSetup } from '../sdk/vitest.mjs';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
export default defineConfig({
|
|
root: fileURLToPath(new URL('.', import.meta.url)),
|
|
resolve: {
|
|
alias: pterodactylTestAliases(),
|
|
},
|
|
test: {
|
|
name: 'hello-world',
|
|
environment: 'jsdom',
|
|
setupFiles: [pterodactylTestSetup],
|
|
include: ['src/**/*.spec.{ts,tsx}'],
|
|
clearMocks: true,
|
|
restoreMocks: true,
|
|
},
|
|
});
|