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
Using v2.2.2 on TS v4.6.2 with node v16
I have folder structure like the following:
ROOT
jest.config.ts
root.test.ts
CHILD-ONE
jest.config.ts
jest-mongodb-config.js
childOne.test.ts
CHILD-TWO
jest.config.ts
jest-mongodb-config.js
childOne.test.ts
The root jest.config.ts is setup to call it's own tests and then point at both children jest.configs.ts files so they can kick themselves off.
This works file and all the tests pass except the tests hang at the end. It causes an issue because even though they all pass, the testing stage of our build cycle never finishes because they hang, causing the build to fail eventually.
If I stop one of the children from running tests or remove all of their mongodb-config setup then everything works fine. Clearly either something isn't closing out or the in memory mongodb's are colliding in some weird way.
Things I tried:
Only having one jest-mongodb-config.js at the root
Fails because root/childOne/childTwo are all scoped within their own folders so they can't reference the one at the root level
Setting different 'instance' names or leaving 'instance' empty
Using v2.2.2 on TS v4.6.2 with node v16
I have folder structure like the following:
The root jest.config.ts is setup to call it's own tests and then point at both children jest.configs.ts files so they can kick themselves off.
This works file and all the tests pass except the tests hang at the end. It causes an issue because even though they all pass, the
testing stage
of our build cycle never finishes because they hang, causing the build to fail eventually.If I stop one of the children from running tests or remove all of their mongodb-config setup then everything works fine. Clearly either something isn't closing out or the in memory mongodb's are colliding in some weird way.
Things I tried:
Root jest.config.ts
Child jest.config.ts (other is a duplicate)
jest-mongodb-config.ts (both are the same except instance name)
Example code setup
The text was updated successfully, but these errors were encountered: