Skip to content
This repository was archived by the owner on May 25, 2025. It is now read-only.

Commit 6d9cc9e

Browse files
fix: deps
1 parent e44910d commit 6d9cc9e

File tree

4 files changed

+235
-230
lines changed

4 files changed

+235
-230
lines changed

src/sqlite.db.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
createTestItemsDBM,
33
TEST_TABLE,
4-
testItemDBMJsonSchema,
4+
testItemBMJsonSchema,
55
} from '@naturalcycles/db-lib/dist/testing'
66
import { SQLiteDB } from './sqlite.db'
77

@@ -13,7 +13,7 @@ test('test1', async () => {
1313
await db.ping()
1414

1515
// await db.getTables()
16-
await db.createTable(TEST_TABLE, testItemDBMJsonSchema, { dropIfExists: true })
16+
await db.createTable(TEST_TABLE, testItemBMJsonSchema, { dropIfExists: true })
1717

1818
const items = createTestItemsDBM(3)
1919
await db.saveBatch(TEST_TABLE, items)

src/sqlite.db.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class SQLiteDB extends BaseCommonDB implements CommonDB {
9797
await this.db.exec(`DROP TABLE IF EXISTS ${table}`)
9898
}
9999

100-
override async saveBatch<ROW extends Partial<ObjectWithId>>(
100+
override async saveBatch<ROW extends ObjectWithId>(
101101
table: string,
102102
rows: ROW[],
103103
_opt?: CommonDBSaveOptions<ROW>,

src/test/setupJest.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { jestLog, jestLogger } from '@naturalcycles/dev-lib/dist/testing'
2+
3+
// Patch console functions so jest doesn't log it so verbose
4+
console.log = console.warn = jestLog
5+
console.error = jestLogger.error.bind(jestLogger)

0 commit comments

Comments
 (0)