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
The database fixture conveniently accepts a function that I can use to interact with the mock database. In the case above, I am injecting a row into the `users` table with id `'abc-123'` and name `'John Doe'`.
66
+
The database fixture conveniently accepts a function that I can use to interact with the mock database. In the case above, I am injecting a row into the `users` table with id `'abc-123'` and name `'John Maverick'`.
67
67
68
68
> The `done()` callback is there because the SQLite implementation I'm using isn't Promise-friendly. You can disregard that part since it's not important for us today.
69
69
@@ -88,15 +88,15 @@ Like in the `createMockDatabase()` fixture, if it detects a failing test, it wil
88
88
89
89
```txt nonumber highlight=23-25
90
90
FAIL src/query-user.test.ts > returns the user by id
0 commit comments