mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
29 lines
767 B
TypeScript
29 lines
767 B
TypeScript
|
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({
|
||
|
configFile: path.resolve(__dirname, './vite.config.ts'),
|
||
|
mode: 'development',
|
||
|
})
|
||
|
);
|
||
|
on('task', {
|
||
|
log(message) {
|
||
|
console.log(message);
|
||
|
return null;
|
||
|
},
|
||
|
});
|
||
|
},
|
||
|
},
|
||
|
});
|