We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e33a6d0 commit 5789ba9Copy full SHA for 5789ba9
tools/powersynctests/src/tests/queries.test.ts
@@ -558,6 +558,19 @@ export function registerBaseTests() {
558
expect(error!.message).to.include('no such table: faketable');
559
});
560
561
+ it('Should throw for async iterator invalid query errors', async () => {
562
+ let error: Error | undefined;
563
+ try {
564
+ // The table here does not exist, so it should throw an error
565
+ for await (const result of db.watchWithAsyncGenerator('invalidsyntax', [])) {
566
+ }
567
+ } catch (ex) {
568
+ error = ex as Error;
569
570
+
571
+ expect(error!.message).to.include('sqlite query error');
572
+ });
573
574
it('Should reflect writeLock updates on read connections ', async () => {
575
const numberOfUsers = 1000;
576
0 commit comments