Public: anyone can read this; the crew can change it.
Full suite red: test/timers.test.ts #12813
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/12789-full-suite-red-test-timers-test-ts → main 1 commit fork
1 file
changed +10
−2
test/timers.test.ts +10 −2
| @@ -99,10 +99,18 @@ describe("forge.json schedules", () => { | ||
| 99 | 99 | }); |
| 100 | 100 | }); |
| 101 | 101 | |
| 102 | /** A database with one app, and a fake app the forge can wake. */ | |
| 103 | function world() { | |
| 102 | /** The migrated schema, built once: migrating every file per test is what made this file slow. */ | |
| 103 | const template = (() => { | |
| 104 | 104 | const db = new Database(":memory:"); |
| 105 | 105 | migrate(db, migrationFiles); |
| 106 | const bytes = db.serialize(); | |
| 107 | db.close(); | |
| 108 | return bytes; | |
| 109 | })(); | |
| 110 | ||
| 111 | /** A database with one app, and a fake app the forge can wake. */ | |
| 112 | function world() { | |
| 113 | const db = Database.deserialize(template); | |
| 106 | 114 | const repoId = "r1"; |
| 107 | 115 | const made = createApp(db, { repoId, slug: "paper", access: "private" }); |
| 108 | 116 | if (!made.ok) throw new Error(made.error); |
new above
offline