()
| 50 | // Fresh module instances keep their own entry id clock. They load before any |
| 51 | // test runs, so loading them cannot stall running tests. |
| 52 | const isolate = () => { |
| 53 | vi.resetModules() |
| 54 | return Promise.all([ |
| 55 | import("effect/Effect"), |
| 56 | import("effect/eventlog/EventJournal"), |
| 57 | import("effect/eventlog/SqlEventJournal"), |
| 58 | import("effect/sql/SqlClient"), |
| 59 | import("@effect/sql-sqlite-node/SqliteClient"), |
| 60 | import("effect/reactivity/Reactivity") |
| 61 | ]).then(([Effect, EventJournal, SqlEventJournal, SqlClient, SqliteClient, Reactivity]) => ({ |
| 62 | Effect, |
| 63 | EventJournal, |
| 64 | SqlEventJournal, |
| 65 | SqlClient, |
| 66 | SqliteClient, |
| 67 | Reactivity |
| 68 | })) |
| 69 | } |
| 70 | // Stands in for another process. |
| 71 | const OtherProcess = await isolate() |
| 72 | // Importing the maximum timestamp can exhaust the entry id clock of its module. |
no test coverage detected