@@ -114,7 +114,7 @@ export class TestBed {
114114 private createTmpFileForFixture ( fixture : Fixture ) : TmpFile {
115115 const name = fixture . fixtureName ;
116116 const filename = `${ name } ${ fixture . fileExtension } ` ;
117- const directoryPath = join ( this . testBedDirectoryPath , name ) ;
117+ const directoryPath = join ( notNull ( this . testBedDirectoryPath ) , name ) ;
118118 return {
119119 name,
120120 filename,
@@ -142,7 +142,7 @@ export class TestBed {
142142 }
143143
144144 private createAndCommitTmpFileOnDisk ( tmpFile : TmpFile ) : void {
145- writeFileSync ( tmpFile . path , tmpFile . initialContents ) ;
145+ writeFileSync ( tmpFile . path , notNull ( tmpFile . initialContents ) ) ;
146146 runCommandSync ( "git" , [ "add" , tmpFile . path ] , tmpFile . directoryPath ) ;
147147 runCommandSync (
148148 "git" ,
@@ -196,7 +196,7 @@ export function readFixtures(): Fixture[] {
196196 : readFileSync ( join ( fixtureDirPath , initialContentsFileName ) , "utf8" ) ,
197197 stagedContents : stagedContentsFileName
198198 ? readFileSync ( join ( fixtureDirPath , stagedContentsFileName ) , "utf8" )
199- : readFileSync ( join ( fixtureDirPath , committedContentsFileName ) , "utf8" ) ,
199+ : readFileSync ( join ( fixtureDirPath , notNull ( committedContentsFileName ) ) , "utf8" ) ,
200200 committed : ! ! committedContentsFileName ,
201201 customPrettierConfig : ! prettierConfigFileName
202202 ? null
0 commit comments