| 
									
										
										
										
											2021-06-06 17:09:53 -07:00
										 |  |  | /** | 
					
						
							|  |  |  |  * Copyright (c) Microsoft Corporation. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Licensed under the Apache License, Version 2.0 (the "License"); | 
					
						
							|  |  |  |  * you may not use this file except in compliance with the License. | 
					
						
							|  |  |  |  * You may obtain a copy of the License at | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * http://www.apache.org/licenses/LICENSE-2.0
 | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Unless required by applicable law or agreed to in writing, software | 
					
						
							|  |  |  |  * distributed under the License is distributed on an "AS IS" BASIS, | 
					
						
							|  |  |  |  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
					
						
							|  |  |  |  * See the License for the specific language governing permissions and | 
					
						
							|  |  |  |  * limitations under the License. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-11 15:12:25 -08:00
										 |  |  | import { config as loadEnv } from 'dotenv'; | 
					
						
							|  |  |  | loadEnv({ path: path.join(__dirname, '..', '..', '.env') }); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-06 13:57:14 -08:00
										 |  |  | import type { Config } from './stable-test-runner'; | 
					
						
							| 
									
										
										
										
											2022-02-28 14:41:30 -07:00
										 |  |  | import * as path from 'path'; | 
					
						
							| 
									
										
										
										
											2021-06-06 17:09:53 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-28 14:41:30 -07:00
										 |  |  | const outputDir = path.join(__dirname, '..', '..', 'test-results'); | 
					
						
							| 
									
										
										
										
											2021-06-06 17:09:53 -07:00
										 |  |  | const config: Config = { | 
					
						
							|  |  |  |   testDir: __dirname, | 
					
						
							| 
									
										
										
										
											2021-09-03 11:22:25 -07:00
										 |  |  |   testIgnore: ['assets/**', 'stable-test-runner/**'], | 
					
						
							| 
									
										
										
										
											2021-06-08 15:52:08 -07:00
										 |  |  |   timeout: 30000, | 
					
						
							| 
									
										
										
										
											2021-06-06 17:09:53 -07:00
										 |  |  |   forbidOnly: !!process.env.CI, | 
					
						
							| 
									
										
										
										
											2022-06-23 15:55:12 -07:00
										 |  |  |   workers: process.env.CI ? 2 : undefined, | 
					
						
							| 
									
										
										
										
											2021-06-16 16:05:30 -07:00
										 |  |  |   preserveOutput: process.env.CI ? 'failures-only' : 'always', | 
					
						
							| 
									
										
										
										
											2022-03-25 22:09:02 -08:00
										 |  |  |   projects: [ | 
					
						
							| 
									
										
										
										
											2022-04-29 15:05:08 -08:00
										 |  |  |     { | 
					
						
							|  |  |  |       name: 'playwright-test' | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2021-11-03 15:26:18 -07:00
										 |  |  |   ], | 
					
						
							| 
									
										
										
										
											2022-02-28 14:41:30 -07:00
										 |  |  |   reporter: process.env.CI ? [ | 
					
						
							|  |  |  |     ['dot'], | 
					
						
							|  |  |  |     ['json', { outputFile: path.join(outputDir, 'report.json') }], | 
					
						
							|  |  |  |   ] : [ | 
					
						
							|  |  |  |     ['list'] | 
					
						
							|  |  |  |   ], | 
					
						
							| 
									
										
										
										
											2021-06-06 17:09:53 -07:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export default config; |