This is a reproduce for ts-jest issue #481.
Please execute
yarn start
to start the express server. It will serve Some text.
on port 3000.
It will log:
'import * as express from "express"' returned a function
Then kill the server using CTRL^C
Please execute
yarn test
to execute the tests. It will log:
'import * as express from "express"' returned a object
Edit tsconfig.json
and remove the line "allowSyntheticDefaultImports": true
.
Please execute
yarn test
to execute the tests. It will log:
'import * as express from "express"' returned a function