Closed HenriBeck closed 5 years ago
I would expect expect
to just throw nice errors, so it should then work with any test runner.
@HenriBeck This line made me think it would modify the emitted code:
With --esModuleInterop two new helpers are generated importStar and importDefault for import * and import default respectively. For instance input like:
(from https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html)
But then after reading this, I think it's fine to enabled it:
Note: The new behavior is added under a flag to avoid unwarranted breaks to existing code bases. We highly recommend applying it both to new and existing projects. For existing projects, namespace imports (import * as express from "express"; express();) will need to be converted to default imports (import express from "express"; express();).
Closes #52