Skip to content

Commit

Permalink
write basic test
Browse files Browse the repository at this point in the history
  • Loading branch information
mixmix committed Jul 3, 2024
1 parent cc81634 commit 91ba236
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
File renamed without changes.
21 changes: 20 additions & 1 deletion packages/test-suite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,28 @@ import {
let storage: RxStorage<any, any>
let storageInstance: RxStorageInstance<any, any, any, any> | undefined


/*
Possible Approaches
1. read the tests from top to bottom
2. focus on getting "some" of the tests working (e.g. the queries?)
- use describe.skip
- this may not work if the tests depend on state from earlier tests?
- could see if this is case with indexdb tests
3. investigate if "parallelism" is messing with us here
- vitest uses "pools" to run many in once, the default strategy is "thread" (there is also "fork")
- this
*/



export function runTestSuite(suite: TestSuite, testStorage: RxTestStorage): void {
const { describe, it, beforeEach, afterEach } = suite
describe('RxStorageInstance', () => {
describe.skip('RxStorageInstance', () => {
beforeEach(async () => {
storage = await testStorage.getStorage()
})
Expand Down

0 comments on commit 91ba236

Please sign in to comment.