Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Mar 15, 2024
1 parent e7cd735 commit 7977610
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@
"release": "np",
"test:sqlite": "DB=sqlite FORCE_COLOR=true node --enable-source-maps --loader=ts-node/esm ./bin/test.js",
"test:mysql": "DB=mysql FORCE_COLOR=true node --enable-source-maps --loader=ts-node/esm ./bin/test.js",
"test:mysql_legacy": "DB=mysql_legacy FORCE_COLOR=true node --enable-source-maps --loader=ts-node/esm ./bin/test.js",
"test:mssql": "DB=mssql FORCE_COLOR=true node --enable-source-maps --loader=ts-node/esm ./bin/test.js",
"test:pg": "DB=pg FORCE_COLOR=true node --enable-source-maps --loader=ts-node/esm ./bin/test.js",
"test:docker": "npm run test:mysql && npm run test:mysql_legacy && npm run test:pg && npm run test:mssql",
"test:docker": "npm run test:mysql && npm run test:pg && npm run test:mssql",
"test": "c8 npm run test:docker",
"version": "npm run build",
"prepublishOnly": "npm run build"
Expand All @@ -59,6 +58,7 @@
"husky": "^9.0.11",
"luxon": "^3.4.4",
"mysql": "^2.18.1",
"mysql2": "^3.9.2",
"np": "^10.0.1",
"pg": "^8.11.3",
"prettier": "^3.2.5",
Expand Down
17 changes: 2 additions & 15 deletions tests/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export function getConfig(basePath: string): ConnectionConfig {
useNullAsDefault: true,
debug: false,
}
case 'mysql':
case 'mysql2':
return {
client: 'mysql',
client: 'mysql2',
connection: {
host: process.env.MYSQL_HOST as string,
port: Number(process.env.MYSQL_PORT),
Expand All @@ -45,19 +45,6 @@ export function getConfig(basePath: string): ConnectionConfig {
},
useNullAsDefault: true,
}
case 'mysql_legacy':
return {
client: 'mysql',
version: '5.7',
connection: {
host: process.env.MYSQL_LEGACY_HOST as string,
port: Number(process.env.MYSQL_LEGACY_PORT),
database: process.env.DB_NAME as string,
user: process.env.MYSQL_LEGACY_USER as string,
password: process.env.MYSQL_LEGACY_PASSWORD as string,
},
useNullAsDefault: true,
}
case 'pg':
return {
client: 'pg',
Expand Down

0 comments on commit 7977610

Please sign in to comment.