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
I've setup mocha to run some TS tests with ts-node and under node 14 everything runs smoothly, but under node 16 it executes the tests and then hangs forever, so I have to press ctrl-c to get back to the shell prompt.
Search Terms
node 16
node16
mocha
Expected Behavior
mocha completes its operation under node 16 as it does with node 14
Actual Behavior
when run under node 16 all tests are executed but then mocha hangs forever
@cvlmtg first order of business will be to determine if this is a mocha issue or not. Have you done any investigation to figure out if mocha bas a bug related to require hooks or other things that ts-node needs to do?
I see your reproduction contains some dependencies that are not mentioned in your description. Have you tried removing them? The reproduction will need to be minimal, which means including only the absolute bare minimum of dependencies.
@cspotcode I tried to search anything related to mocha and ts-node and node 16 and found nothing.
anyway, I tried to make the repro as minimal as possible and everything works fine. If I reintroduce react-testing-library (and jsdom) the problem appears again. so (if I did everything correctly) it seems it's not a problem of ts-node but of one of those libraries. thanks for the help!
(I pushed my tests anyway, just in case they might be useful to someone)
I've setup mocha to run some TS tests with ts-node and under node 14 everything runs smoothly, but under node 16 it executes the tests and then hangs forever, so I have to press ctrl-c to get back to the shell prompt.
Search Terms
Expected Behavior
mocha completes its operation under node 16 as it does with node 14
Actual Behavior
when run under node 16 all tests are executed but then mocha hangs forever
Steps to reproduce the problem
just run
yarn test
Minimal reproduction
TypeStrong/ts-node-repros#18
Specifications
ts-node v10.2.1
node v16.9.1
compiler v4.4.3
The text was updated successfully, but these errors were encountered: