You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returndone('Command was expected to fail, but it succeeded.')
839
+
}
840
+
841
+
expect(err.message).to.contain('Unable to compile TypeScript')
842
+
expect(err.message).to.match(newRegExp('TS2345: Argument of type \'(?:number|1101)\' is not assignable to parameter of type \'string\'\\.'))
843
+
expect(err.message).to.match(newRegExp('TS2322: Type \'(?:"hello world"|string)\' is not assignable to type \'number\'\\.'))
844
+
expect(stdout).to.equal('')
845
+
846
+
returndone()
847
+
})
848
+
})
824
849
}
825
850
826
851
it('executes ESM as CJS, ignoring package.json "types" field (for backwards compatibility; should be changed in next major release to throw ERR_REQUIRE_ESM)',function(done){
0 commit comments