| 
									
										
										
										
											2021-06-06 17:09:53 -07:00
										 |  |  | /** | 
					
						
							|  |  |  |  * Copyright Microsoft Corporation. All rights reserved. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * 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-01-28 17:39:42 -08:00
										 |  |  | import type { TestInfoImpl } from './testInfo'; | 
					
						
							| 
									
										
										
										
											2022-04-06 13:57:14 -08:00
										 |  |  | import type { Suite } from './test'; | 
					
						
							| 
									
										
										
										
											2021-06-06 17:09:53 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-30 13:12:49 -07:00
										 |  |  | let currentTestInfoValue: TestInfoImpl | null = null; | 
					
						
							|  |  |  | export function setCurrentTestInfo(testInfo: TestInfoImpl | null) { | 
					
						
							| 
									
										
										
										
											2021-06-06 17:09:53 -07:00
										 |  |  |   currentTestInfoValue = testInfo; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2021-07-30 13:12:49 -07:00
										 |  |  | export function currentTestInfo(): TestInfoImpl | null { | 
					
						
							| 
									
										
										
										
											2021-06-06 17:09:53 -07:00
										 |  |  |   return currentTestInfoValue; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | let currentFileSuite: Suite | undefined; | 
					
						
							|  |  |  | export function setCurrentlyLoadingFileSuite(suite: Suite | undefined) { | 
					
						
							|  |  |  |   currentFileSuite = suite; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | export function currentlyLoadingFileSuite() { | 
					
						
							|  |  |  |   return currentFileSuite; | 
					
						
							|  |  |  | } |