inversify / InversifyJS

A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript.
http://inversify.io/
MIT License
11.21k stars 715 forks source link

Tests for #549 are flaky (node 10 / es6) #1526

Closed Jameskmonger closed 1 year ago

Jameskmonger commented 1 year ago

The tests for #549 are flaky on CI when running against 10.x and src/tsconfig-es6.json

  1 failing

  1) Issue 549
       Should throw if circular dependencies found with dynamics:
     Error: Expected `willThrow` to throw:
- It looks like there is a circular dependency in one of the 'toDynamicValue' bindings. Please investigate bindings with service identifier 'Symbol(ADynamicValue)'.
or
- It looks like there is a circular dependency in one of the 'toDynamicValue' bindings. Please investigate bindings with service identifier 'Symbol(BDynamicValue)'.
but got
- Cannot read property 'rootRequest' of undefined
      at Context.it (test/bugs/issue_549.test.ts:65:15)
      at process.topLevelDomainCallback (domain.js:126:23)
PodaruDragos commented 1 year ago

honestly we should only test on 16+, since 16 is EOL.

gustavohenke commented 7 months ago

Weird, it's still broken locally for me on Node 20.x, but Node 18.x is fine.