@adonisjs/lucid
Version:
SQL ORM built on top of Active Record pattern
14 lines (13 loc) • 481 B
TypeScript
import type { PluginFn } from '@japa/runner/types';
import type { ApplicationService } from '@adonisjs/core/types';
import { DatabaseTestAssertions } from '../../test_utils/assertions.js';
declare module '@japa/runner/core' {
interface TestContext {
db: DatabaseTestAssertions;
}
}
/**
* Japa plugin that adds database assertion methods
* to the test context via `({ db }) => { ... }`.
*/
export declare function dbAssertions(app: ApplicationService): PluginFn;