You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//packages/sqlite/tests/sqlite.spec.ts// new testtest('raw > return types from separate queries should not be reused',async()=>{constdatabase=awaitdatabaseFactory([]);constq1=awaitdatabase.raw<{count1: number}>(sql`SELECT 42 AS count1`);constr1=awaitq1.findOne();constq2=awaitdatabase.raw(sql`SELECT 42 AS count2`);constr2=awaitq2.findOne();//^^^^^^^^^^^^^^^^^^^^^^// this call incorrectly tries to deserialize the query return value using the type passed at the previous query ({ count1: number })// and will consequently throw// @ts-ignoreexpect(r1.count1).toEqual(r2.count2)});
when running the test, error message is Validation error for type {count1: number}: count1(type): Not a number ValidationError: Validation error for type {count1: number}:
The text was updated successfully, but these errors were encountered:
when running the test, error message is
Validation error for type {count1: number}: count1(type): Not a number ValidationError: Validation error for type {count1: number}:
The text was updated successfully, but these errors were encountered: