File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,13 @@ describe("unittests:: Public APIs", () => {
1717 const fs = vfs . createFromFileSystem ( Harness . IO , /*ignoreCase*/ false ) ;
1818 fs . linkSync ( `${ vfs . builtFolder } /${ fileName } ` , `${ vfs . srcFolder } /${ fileName } ` ) ;
1919 const sys = new fakes . System ( fs ) ;
20- const host = new fakes . CompilerHost ( sys ) ;
21- const result = compiler . compileFiles ( host , [ `${ vfs . srcFolder } /${ fileName } ` ] , { } ) ;
20+ const options : ts . CompilerOptions = {
21+ ...ts . getDefaultCompilerOptions ( ) ,
22+ strict : true ,
23+ exactOptionalPropertyTypes : true ,
24+ } ;
25+ const host = new fakes . CompilerHost ( sys , options ) ;
26+ const result = compiler . compileFiles ( host , [ `${ vfs . srcFolder } /${ fileName } ` ] , options ) ;
2227 assert ( ! result . diagnostics || ! result . diagnostics . length , Harness . Compiler . minimalDiagnosticsToString ( result . diagnostics , /*pretty*/ true ) ) ;
2328 } ) ;
2429 }
You can’t perform that action at this time.
0 commit comments