Skip to content

Commit

Permalink
fix: deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Jan 26, 2024
1 parent e44910d commit 6d9cc9e
Show file tree
Hide file tree
Showing 4 changed files with 235 additions and 230 deletions.
4 changes: 2 additions & 2 deletions src/sqlite.db.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
createTestItemsDBM,
TEST_TABLE,
testItemDBMJsonSchema,
testItemBMJsonSchema,
} from '@naturalcycles/db-lib/dist/testing'
import { SQLiteDB } from './sqlite.db'

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

// await db.getTables()
await db.createTable(TEST_TABLE, testItemDBMJsonSchema, { dropIfExists: true })
await db.createTable(TEST_TABLE, testItemBMJsonSchema, { dropIfExists: true })

const items = createTestItemsDBM(3)
await db.saveBatch(TEST_TABLE, items)
Expand Down
2 changes: 1 addition & 1 deletion src/sqlite.db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class SQLiteDB extends BaseCommonDB implements CommonDB {
await this.db.exec(`DROP TABLE IF EXISTS ${table}`)
}

override async saveBatch<ROW extends Partial<ObjectWithId>>(
override async saveBatch<ROW extends ObjectWithId>(
table: string,
rows: ROW[],
_opt?: CommonDBSaveOptions<ROW>,
Expand Down
5 changes: 5 additions & 0 deletions src/test/setupJest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { jestLog, jestLogger } from '@naturalcycles/dev-lib/dist/testing'

// Patch console functions so jest doesn't log it so verbose
console.log = console.warn = jestLog
console.error = jestLogger.error.bind(jestLogger)
Loading

0 comments on commit 6d9cc9e

Please sign in to comment.