-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReadError: Database is not open / existing setup after env #67
Comments
I had this issue too. For me it was because I was returning |
@jonoirwinrsa might be right here. If you remove your other |
It works if I remove my other afterEnvSetup setup file, but I need that to mock external api calls. Here's my jest-dynalite-config.ts file
jest.config.ts
|
Ok. Can you narrow down which test is causing this error and maybe post details about this test? It's likely you get an error like this if a DB call happens outside a test (as this library tears down the server after each test). This could be due to a forgotten |
I've created a minimal representation code. https://github.com/yamatatsu/represent-jest-dynalite-database-is-not-open I guess the condition of this error is below:
In my case, the work arround I found is to extend the timeout period. test('test case' async () => {...}, 60_000 /* long enough */) |
Hey there
I get the following error when running dynalite.
I have an existing setupFilesAfterEnv file in which there are conflicts.
When I remove it, my tests work - but I have no dynalite goodness :(
afterEnvSetup
I've tried the granular approach importing the start / stop fns individually. The out of the box solution and on an individual file. Still no luck
Would be great to get some help
The text was updated successfully, but these errors were encountered: