File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ import { TypeScriptCompileError } from "./typescript-compile-error";
77
88describe ( "TypeScriptLoader" , ( ) => {
99 const fixturesPath = path . resolve ( __dirname , "__fixtures__" ) ;
10+ const tsNodeSpy = jest . spyOn ( tsnode , "register" ) ;
1011
1112 let loader : Loader ;
12- let tsNodeSpy = jest . spyOn ( tsnode , "register" ) ;
1313
1414 function readFixtureContent ( file : string ) : string {
1515 return fs . readFileSync ( file ) . toString ( ) ;
@@ -33,7 +33,6 @@ describe("TypeScriptLoader", () => {
3333 const filePath = path . resolve ( fixturesPath , "valid.fixture.ts" ) ;
3434 loader ( filePath , readFixtureContent ( filePath ) ) ;
3535 loader ( filePath , readFixtureContent ( filePath ) ) ;
36- loader ( filePath , readFixtureContent ( filePath ) ) ;
3736 expect ( tsNodeSpy ) . toHaveBeenCalledTimes ( 1 ) ;
3837 } ) ;
3938
You can’t perform that action at this time.
0 commit comments