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", () => {
17
17
const fs = vfs . createFromFileSystem ( Harness . IO , /*ignoreCase*/ false ) ;
18
18
fs . linkSync ( `${ vfs . builtFolder } /${ fileName } ` , `${ vfs . srcFolder } /${ fileName } ` ) ;
19
19
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 ) ;
22
27
assert ( ! result . diagnostics || ! result . diagnostics . length , Harness . Compiler . minimalDiagnosticsToString ( result . diagnostics , /*pretty*/ true ) ) ;
23
28
} ) ;
24
29
}
You can’t perform that action at this time.
0 commit comments