UNPKG

nodejs-schema-rules

Version:

The CLI tool automatically generates basic validation rules for popular libraries such as JOI, ValidatorJS and @vinejs/vine based on your database table schema!

24 lines (14 loc) 617 B
import { databaseInt } from "../src/examples/dbinit"; import { DATABASE_MYSQL, DATABASE_POSTGRES, DATABASE_SQLITE } from "../src/utils/constants"; test.only('Sqlite database connection check', async () => { const connection=await databaseInt(DATABASE_SQLITE); expect(connection).toBeTruthy() }); test.only('MySQL database connection check', async () => { const connection=await databaseInt(DATABASE_MYSQL); expect(connection).toBeTruthy() }); test.only('Postgres database connection check', async () => { const connection=await databaseInt(DATABASE_POSTGRES); expect(connection).toBeTruthy() });