@@ -7,7 +7,7 @@ describe("TypeScriptLoader", () => {
77
88 describe ( "exports" , ( ) => {
99 it ( "should export the loader function as a default" , ( ) => {
10- expect ( typeof TypeScriptLoader ) . toBe ( "function" ) ;
10+ expect ( typeof TypeScriptLoader ) . toStrictEqual ( "function" ) ;
1111 } ) ;
1212 } ) ;
1313
@@ -22,7 +22,9 @@ describe("TypeScriptLoader", () => {
2222 path . resolve ( fixturesPath , "valid.fixture.ts" )
2323 ) ;
2424
25- expect ( typeof loadedCfg ?. config ) . toBe ( "object" ) ;
25+ expect ( typeof loadedCfg ! . config ) . toStrictEqual ( "object" ) ;
26+ expect ( typeof loadedCfg ! . config . test ) . toStrictEqual ( "object" ) ;
27+ expect ( loadedCfg ! . config . test . cake ) . toStrictEqual ( "a lie" ) ;
2628 } ) ;
2729
2830 it ( "should throw an error on loading an invalid TS file" , async ( ) => {
@@ -52,7 +54,9 @@ describe("TypeScriptLoader", () => {
5254 path . resolve ( fixturesPath , "valid.fixture.ts" )
5355 ) ;
5456
55- expect ( typeof loadedCfg ?. config ) . toBe ( "object" ) ;
57+ expect ( typeof loadedCfg ! . config ) . toStrictEqual ( "object" ) ;
58+ expect ( typeof loadedCfg ! . config . test ) . toStrictEqual ( "object" ) ;
59+ expect ( loadedCfg ! . config . test . cake ) . toStrictEqual ( "a lie" ) ;
5660 } ) ;
5761
5862 it ( "should throw an error on loading an invalid TS file" , ( ) => {
0 commit comments