Skip to content

Commit

Permalink
refactor: use test_utils import path
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Jan 25, 2024
1 parent 942baa0 commit 92ec1d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/database_provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Check failure on line 95 in providers/database_provider.ts

View workflow job for this annotation

GitHub Actions / typecheck

Cannot find module '@adonisjs/core/test_utils' or its corresponding type declarations.

Check failure on line 95 in providers/database_provider.ts

View workflow job for this annotation

GitHub Actions / typecheck

Cannot find module '@adonisjs/core/test_utils' or its corresponding type declarations.
const ace = await this.app.container.make('ace')

TestUtils.macro('db', function (this: typeof ace, connectionName?: string) {
Expand Down

0 comments on commit 92ec1d3

Please sign in to comment.