mirror of
https://github.com/sp-tarkov/db-website.git
synced 2025-02-08 14:10:46 -05:00
13 lines
395 B
TypeScript
13 lines
395 B
TypeScript
|
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;
|
||
|
};
|