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
Create a unit test in /tests/unit/test.spec.ts it can do anything:
import { test } from '@japa/runner'
test.group('A test just so something executes', (group) => {
test('Test that something happens', async ({ assert }) => {
assert.equal(true, true)
})
})
Package version
6.9.0
Describe the bug
Apologies if this issue would be better in vine or lucid repos, but it seems to touch on all through pacakges, so thought it best to report here.
Everytime I run a very basic test with
npm run test
I get the error:[ error ] Migration completed, but unable to release database lock
This then causes the test results to hang and not quit which is painful when running individual tests within VSCode.
I have looked on discord and found a number of people having a similar issue:
https://discord.com/channels/423256550564691970/1246405673772646432
https://discord.com/channels/423256550564691970/1113490995892457573
https://discord.com/channels/423256550564691970/423256550564691972/1087399322506768497
I have created some steps to recreate:
docker-compose.yml
with following content:docker compose up
Add the database credentials above to .env
In
tests/bootstrap.ts
:/tests/unit/test.spec.ts
it can do anything:npm run test
Every time I execute this I get the error:
If you remove the testUtils.db().truncate() from the setup command in bootstrap, the test runs fine.
Reproduction repo
No response
The text was updated successfully, but these errors were encountered: