0
0
mirror of https://github.com/sp-tarkov/db-website.git synced 2025-02-08 13:50:46 -05:00

13 lines
395 B
TypeScript
Raw Normal View History

import path from "node:path";
import vitePreprocessor from "cypress-vite";
export default async (on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions) => {
on("file:preprocessor", vitePreprocessor({
configFile: path.resolve(process.cwd(), "vite.config.ts"),
mode: "development"
}));
(await import("@cypress/code-coverage/task")).default(on, config);
return config;
};