import { getSchemaPath , getSchema , getConfig , createDatabase } from '@prisma/sdk' ; import { ensureDatabaseExists } from '../utils/ensureDatabaseExists' ; import { jestConsoleContext , jestContext } from '@prisma/sdk' ; const ctx = jestContext . new ( ) . add ( jestConsoleContext ( ) ) . assemble ( ) ; it ( 'can create database - sqlite' , async ( ) => { ctx . fixture ( 'schema-only-sqlite' ) ; const schemaPath = ( await getSchemaPath ( ) ) ! ; const result = ensureDatabaseExists ( 'create' , true , schemaPath ) ; await expect ( result ) . resolves . toMatchInlineSnapshot ( `SQLite database dev.db created at file:dev.db` ) ; } ) ;