import { defaultCoverageExclusions, defaultTestExclusions, defaultThresholds, mapThresholds, mergeThresholds, mergeVitestConfigs, scratchGlobalSetup, scratchSetupFiles, } from "./base.js";
export { defaultCoverageExclusions, defaultTestExclusions, defaultThresholds, mapThresholds, mergeThresholds, mergeVitestConfigs, scratchGlobalSetup, scratchSetupFiles, };
/**
 * Creates a Vitest configuration for Phaser projects.
 * @param options - Configuration options
 * @param options.thresholds - Coverage thresholds
 * @returns Vitest UserConfig object
 */
export const getPhaserVitestConfig = ({ thresholds, } = {}) => ({
    test: {
        setupFiles: [...scratchSetupFiles()],
        globalSetup: [...scratchGlobalSetup()],
        globals: true,
        environment: "node",
        include: ["tests/**/*.test.ts", "src/**/*.test.ts"],
        exclude: [...defaultTestExclusions, "tests/e2e/**"],
        testTimeout: 10000,
        coverage: {
            provider: "v8",
            include: ["src/**/*.ts"],
            exclude: [
                ...defaultCoverageExclusions,
                "src/types/**",
                "src/main.ts",
                "src/scenes/**",
                "src/entities/**",
                "src/vite-env.d.ts",
            ],
            thresholds: mapThresholds(thresholds
                ? mergeThresholds(defaultThresholds, thresholds)
                : defaultThresholds),
        },
    },
});
//# sourceMappingURL=phaser.js.map