Skip to content

Commit 0fa5e2b

Browse files
committed
fix: typescript errors
1 parent 06224cf commit 0fa5e2b

File tree

5 files changed

+13
-14
lines changed

5 files changed

+13
-14
lines changed

.changeset/db-connection-fixes.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.changeset/typescript-errors.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/__tests__/helpers/TestResource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export class TestResource {
128128
let dbCleanupSuccess = false;
129129

130130
for (let attempt = 1; attempt <= 3; attempt++) {
131-
let client: pg.PoolClient | undefined;
131+
let client: PoolClient | undefined;
132132
try {
133133
client = await connect({ silent: true });
134134
await client.query('BEGIN');

src/lib/templateManager.test.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,11 @@ describe('TemplateManager', () => {
868868
error
869869
);
870870
// Skip test if DB connection fails rather than failing the build
871-
if (error.message?.includes('Database connection failed')) {
871+
const errorMessage =
872+
typeof error === 'object' && error !== null && 'message' in error
873+
? String(error.message)
874+
: String(error);
875+
if (errorMessage.includes('Database connection failed')) {
872876
console.log('Skipping test due to database connection issues');
873877
return;
874878
}
@@ -999,7 +1003,11 @@ describe('TemplateManager', () => {
9991003
error
10001004
);
10011005
// Skip test if DB connection fails rather than failing the build
1002-
if (error.message?.includes('Database connection failed')) {
1006+
const errorMessage =
1007+
typeof error === 'object' && error !== null && 'message' in error
1008+
? String(error.message)
1009+
: String(error);
1010+
if (errorMessage.includes('Database connection failed')) {
10031011
console.log('Skipping test due to database connection issues');
10041012
return;
10051013
}

0 commit comments

Comments
 (0)