Skip to content

Commit a3c24a1

Browse files
committed
work
1 parent 3049b2f commit a3c24a1

3 files changed

Lines changed: 15 additions & 10 deletions

File tree

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"@std/semver": "jsr:@std/semver@1",
6666
"@std/streams": "jsr:@std/streams@1",
6767

68-
"@astral/astral": "jsr:@astral/astral@^0.5.2",
68+
"@astral/astral": "jsr:@astral/astral@^0.5.3",
6969
"@marvinh-test/fresh-island": "jsr:@marvinh-test/fresh-island@^0.0.1",
7070
"linkedom": "npm:linkedom@^0.16.11",
7171
"@std/async": "jsr:@std/async@1",

deno.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/test_utils.tsx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { App, getIslandRegistry, setBuildCache } from "../src/app.ts";
22
import { launch, type Page } from "@astral/astral";
33
import * as colors from "@std/fmt/colors";
4-
import { type Document, DOMParser, HTMLElement } from "linkedom";
4+
import { DOMParser, HTMLElement } from "linkedom";
55
import { Builder } from "../src/dev/builder.ts";
66
import { TextLineStream } from "@std/streams/text-line-stream";
77
import * as path from "@std/path";
@@ -28,11 +28,16 @@ import { NodeProcess } from "./fixtures_islands/NodeProcess.tsx";
2828
import { FreshAttrs } from "./fixtures_islands/FreshAttrs.tsx";
2929
import { OptOutPartialLink } from "./fixtures_islands/OptOutPartialLink.tsx";
3030

31+
/**
32+
* If on Linux, disable `AppArmor` before running tests:
33+
* ```sh
34+
* echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
35+
* ```
36+
*
37+
* @see {@link https://github.com/lino-levan/astral#no-usable-sandbox-with-user-namespace-cloning-enabled}
38+
*/
3139
const browser = await launch({
32-
args: [
33-
"--window-size=1280,720",
34-
...(Deno.build.os === "linux" ? ["--no-sandbox"] : []),
35-
],
40+
args: ["--window-size=1280,720"],
3641
headless: true,
3742
});
3843

0 commit comments

Comments
 (0)