| 
									
										
										
										
											2025-05-04 14:17:47 +03:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @license Copyright (c) 2023-2024, CKSource Holding sp. z o.o. All rights reserved. | 
					
						
							|  |  |  |  * For licensing, see LICENSE.md. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import { defineConfig } from 'vitest/config'; | 
					
						
							|  |  |  | import svg from 'vite-plugin-svgo'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export default defineConfig( { | 
					
						
							|  |  |  | 	plugins: [ | 
					
						
							|  |  |  | 		svg() | 
					
						
							|  |  |  | 	], | 
					
						
							|  |  |  | 	test: { | 
					
						
							|  |  |  | 		browser: { | 
					
						
							|  |  |  | 			enabled: true, | 
					
						
							|  |  |  | 			name: 'chrome', | 
					
						
							|  |  |  | 			provider: 'webdriverio', | 
					
						
							|  |  |  | 			providerOptions: {}, | 
					
						
							|  |  |  | 			headless: true, | 
					
						
							|  |  |  | 			ui: false | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 		include: [ | 
					
						
							|  |  |  | 			'tests/**/*.[jt]s' | 
					
						
							|  |  |  | 		], | 
					
						
							|  |  |  | 		globals: true, | 
					
						
							|  |  |  | 		watch: false, | 
					
						
							| 
									
										
										
										
											2025-05-09 21:50:40 +03:00
										 |  |  | 		passWithNoTests: true, | 
					
						
							| 
									
										
										
										
											2025-05-04 14:17:47 +03:00
										 |  |  | 		coverage: { | 
					
						
							|  |  |  | 			thresholds: { | 
					
						
							|  |  |  | 				lines: 100, | 
					
						
							|  |  |  | 				functions: 100, | 
					
						
							|  |  |  | 				branches: 100, | 
					
						
							|  |  |  | 				statements: 100 | 
					
						
							|  |  |  | 			}, | 
					
						
							|  |  |  | 			provider: 'istanbul', | 
					
						
							|  |  |  | 			include: [ | 
					
						
							|  |  |  | 				'src' | 
					
						
							|  |  |  | 			] | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | } ); |