Skip to content

Commit 67aef91

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

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"test:psql": "jest --config jest.config.psql.mjs --runInBand",
2121
"test:ci:s3": "jest --config jest.config.s3.ci.mjs --runInBand",
2222
"test:ci:psql": "npm run test:ci:psql:init && jest --config jest.config.psql.ci.mjs --runInBand",
23-
"test:ci:psql:init": "ts-node test/environment/init-db.ts"
23+
"test:ci:psql:init": "node test/environment/init-db.mjs"
2424
},
2525
"repository": {
2626
"type": "git",

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import path from 'node:path';
22

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

5-
void (async (): Promise<void> => {
6-
let connection: Knex | undefined;
5+
void (async () => {
6+
let connection;
77
try {
88
connection = knex({
99
client: 'pg',
@@ -25,7 +25,7 @@ void (async (): Promise<void> => {
2525
await connection('users').insert({ c2c_id: 1 });
2626
await connection('users').insert({ c2c_id: 2 });
2727
console.log('DB initialized 🚀');
28-
} catch (error: unknown) {
28+
} catch (error) {
2929
console.error(error);
3030
} finally {
3131
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)