test(bazel): use cross-platform file read of golden file (#31266)
PR Close #31266
This commit is contained in:
		
							parent
							
								
									7c2cd97e60
								
							
						
					
					
						commit
						431ddb9a45
					
				| @ -92,7 +92,7 @@ function runPackageGoldTest(testPackage: TestPackage) { | ||||
|   process.chdir(packagePath); | ||||
| 
 | ||||
|   // Gold file content from source control. We expect that the output of the package matches this.
 | ||||
|   const expected = fs.readFileSync(goldenFilePath, 'utf-8'); | ||||
|   const expected = readFileContents(goldenFilePath); | ||||
| 
 | ||||
|   // Actual file content generated from the rule.
 | ||||
|   const actual = getCurrentPackageContent(); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user