2023-05-08 10:16:18 +02:00
|
|
|
import path from 'path';
|
|
|
|
import { defineConfig } from 'cypress';
|
|
|
|
import vitePreprocessor from 'cypress-vite';
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
projectId: 'tc2qff',
|
|
|
|
defaultCommandTimeout: 12000,
|
|
|
|
screenshotOnRunFailure: false,
|
|
|
|
video: false,
|
|
|
|
e2e: {
|
|
|
|
specPattern: '**/*.spec.ts',
|
|
|
|
setupNodeEvents(on, config) {
|
|
|
|
on(
|
|
|
|
'file:preprocessor',
|
|
|
|
vitePreprocessor({
|
2023-12-20 14:48:18 +01:00
|
|
|
configFile: path.resolve(__dirname, './vite.config.mts'),
|
2023-05-08 10:16:18 +02:00
|
|
|
mode: 'development',
|
2023-10-02 14:25:46 +02:00
|
|
|
}),
|
2023-05-08 10:16:18 +02:00
|
|
|
);
|
|
|
|
on('task', {
|
|
|
|
log(message) {
|
|
|
|
console.log(message);
|
|
|
|
return null;
|
|
|
|
},
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|