Created
November 17, 2023 22:49
-
-
Save cowboyd/c5735b5f80caf2e745dd93ee78cc48b7 to your computer and use it in GitHub Desktop.
A trivial test case launching the astral browser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { describe, it } from "https://deno.land/[email protected]/testing/bdd.ts" | |
import { launch } from "https://deno.land/x/[email protected]/mod.ts"; | |
describe("browser", () => { | |
it("launches, sleeps, and closes", async () => { | |
let browser = await launch(); | |
await new Promise((resolve) => setTimeout(resolve, 2000)); | |
browser.close(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment