We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b566b7d commit 6560865Copy full SHA for 6560865
src/config.test.ts
@@ -0,0 +1,20 @@
1
+import { Kysely, MysqlDialect } from 'kysely'
2
+import { createPool } from 'mysql2'
3
+import { expect, test } from 'vitest'
4
+
5
+import { defineConfig } from './config.js'
6
7
+test('defineConfig', () => {
8
+ expect(
9
+ defineConfig({
10
+ db: new Kysely({
11
+ dialect: new MysqlDialect({ pool: createPool('mysql://') }),
12
+ }),
13
+ migrationFolder: 'src/db/migrations',
14
+ codegen: {
15
+ dialect: 'mysql',
16
+ out: 'src/db/types.ts',
17
+ },
18
19
+ ).toBeDefined()
20
+})
src/utils/loadEnv.test.ts
@@ -0,0 +1,7 @@
+import { loadEnv } from './loadEnv.js'
+test('loadEnv', () => {
+ expect(loadEnv()).toMatchInlineSnapshot('{}')
0 commit comments