Skip to content

Commit bf68795

Browse files
author
Bruno Besson
committed
wip
1 parent 59a52f5 commit bf68795

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

test/environment/init-db.ts test/environment/init-db.mjs

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import path from 'node:path';
1+
// eslint-disable-next-line @typescript-eslint/no-var-requires
2+
const path = require('node:path');
23

3-
import knex, { type Knex } from 'knex';
4+
import knex from 'knex';
45

5-
void (async (): Promise<void> => {
6-
let connection: Knex | undefined;
6+
void (async () => {
7+
let connection;
78
try {
89
connection = knex({
910
client: 'pg',
@@ -25,7 +26,7 @@ void (async (): Promise<void> => {
2526
await connection('users').insert({ c2c_id: 1 });
2627
await connection('users').insert({ c2c_id: 2 });
2728
console.log('DB initialized 🚀');
28-
} catch (error: unknown) {
29+
} catch (error) {
2930
console.error(error);
3031
} finally {
3132
await connection?.destroy();

tsconfig.eslint.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"rootDir": ".",
55
"outDir": "./dist"
66
},
7-
"include": ["src/**/*.ts", "test/**/*.ts", "test/**/*.js", "jest.config.*"],
7+
"include": ["src/**/*.ts", "test/**/*.ts"],
88
"exclude": ["node_modules"]
99
}

0 commit comments

Comments
 (0)