From 92ec1d3139950f91dafa6a29487d0c445c239a95 Mon Sep 17 00:00:00 2001 From: Julien Ripouteau Date: Thu, 25 Jan 2024 23:45:09 +0100 Subject: [PATCH] refactor: use test_utils import path --- providers/database_provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/database_provider.ts b/providers/database_provider.ts index 9d83f279..024614be 100644 --- a/providers/database_provider.ts +++ b/providers/database_provider.ts @@ -92,7 +92,7 @@ export default class DatabaseServiceProvider { */ protected async registerTestUtils(db: Database) { if (this.app.getEnvironment() === 'test') { - const { TestUtils } = await import('@adonisjs/core') + const { TestUtils } = await import('@adonisjs/core/test_utils') const ace = await this.app.container.make('ace') TestUtils.macro('db', function (this: typeof ace, connectionName?: string) {