Skip to content

Commit ef1e7f7

Browse files
update tests
1 parent 5378497 commit ef1e7f7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/web/tests/stream.test.ts

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { WASQLiteOpenFactory, WASQLiteVFS } from '@powersync/web';
12
import Logger from 'js-logger';
23
import { afterEach, beforeAll, describe, expect, it, vi } from 'vitest';
34
import { TestConnector } from './utils/MockStreamOpenFactory';
@@ -21,6 +22,17 @@ describe('Streaming', { sequential: true }, () => {
2122

2223
it(`${name} - with web worker`, () => test(funcWithWebWorker));
2324
it(`${name} - without web worker`, () => test(funcWithoutWebWorker));
25+
it(`${name} - with OPFS`, () =>
26+
test(() =>
27+
generateConnectedDatabase({
28+
powerSyncOptions: {
29+
database: new WASQLiteOpenFactory({
30+
dbFilename: 'test-stream-connection-opfs.db',
31+
vfs: WASQLiteVFS.OPFSCoopSyncVFS
32+
})
33+
}
34+
})
35+
));
2436
};
2537

2638
beforeAll(() => Logger.useDefaults());

0 commit comments

Comments
 (0)