-
-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathindex.ts
More file actions
30 lines (25 loc) 路 1.05 KB
/
Copy pathindex.ts
File metadata and controls
30 lines (25 loc) 路 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { beforeEach, describe } from '../TestApi'
import { setupTestDb } from './common'
import registerExecuteUnitTests from './specs/operations/execute.spec'
import registerTransactionUnitTests from './specs/operations/transaction.spec'
import registerExecuteBatchUnitTests from './specs/operations/executeBatch.spec'
import registerPreparedStatementUnitTests from './specs/operations/preparedStatement.spec'
import registerTypeORMUnitTestsSpecs from './specs/typeorm.spec'
import registerDatabaseQueueUnitTests from './specs/DatabaseQueue.spec'
import registerSqliteVecUnitTestsSpecs from './specs/sqlite-vec.spec'
export function registerUnitTests() {
beforeEach(setupTestDb)
describe('Operations', () => {
registerExecuteUnitTests()
registerTransactionUnitTests()
registerExecuteBatchUnitTests()
registerPreparedStatementUnitTests()
})
registerDatabaseQueueUnitTests()
}
export function registerTypeORMUnitTests() {
registerTypeORMUnitTestsSpecs()
}
export function registerSqliteVecUnitTests() {
registerSqliteVecUnitTestsSpecs()
}