hara-native 0.1.21

HAL-free native host runtime and package launcher for Hara
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { test, expect } from "@playwright/test";

test("wasm playground loads its packaged runtime without failed requests", async ({ page }) => {
  const failures = [];
  page.on("response", (response) => {
    if (response.status() >= 400) {
      failures.push(`${response.status()} ${response.url()}`);
    }
  });

  await page.goto("/rust/web/index.html");
  await expect(page.locator("#result")).toContainText("ready");
  expect(failures).toEqual([]);
});