mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	We're migrating to ESM, which will allow us to import the latest versions of our dependencies. Co-Authored-By: Christopher Kolstad <chriswk@getunleash.io>
		
			
				
	
	
		
			29 lines
		
	
	
		
			758 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			758 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('./vite.config.mts'),
 | |
|                     mode: 'development',
 | |
|                 }),
 | |
|             );
 | |
|             on('task', {
 | |
|                 log(message) {
 | |
|                     console.log(message);
 | |
|                     return null;
 | |
|                 },
 | |
|             });
 | |
|         },
 | |
|     },
 | |
| });
 |