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
it('should be a foo',async()=>{constfoo=awaitimport('../src/foo');console.log(foo);// Expected assertion (does not currently work) - this throws :(// expect(typeof foo.default).toBe('function');// This currently passes :(expect(typeoffoo.default.default).toBe('function');});
Version
29.2.1
Steps to reproduce
foo.ts
foo.test.ts
Repro link on github: https://github.com/magicmark/ts-jest-repro-1
You can run it in stackblitz here:
$ node --experimental-vm-modules node_modules/.bin/jest
Actual vs Expected behavior
This produces the following output:
Expected behavior is that it produces the following output:
Debug log
https://i.fluffy.cc/j8klVXNFT1pr5733Hq1SBcz1Q3N6Z6PH.html
Additional context
No response
Environment
System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Binaries: Node: 18.20.3 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 10.2.3 - /usr/local/bin/npm pnpm: 8.15.6 - /usr/local/bin/pnpm npmPackages: jest: ^29.7.0 => 29.7.0
The text was updated successfully, but these errors were encountered: