I should have synced https://github.com/pyodide/pyodide/pull/2177 with main before merging it, as there were a few extra commits on main where this version of pre-commit configuration wasn't yet applied.

This should fix CI.
Fix pre-commit CI. I should have synced https://github.com/pyodide/pyodide/pull/2177 with main before merging it, as there were a few extra commits on main where this version of pre-commit configuration wasn't yet applied.

This should fix CI.
import assert from "assert";

// for a persistence-related browser test see /src/tests/test_filesystem.py

describe("FS", () => {
  const exists = () => {
    return pyodide.runPython("import os; os.path.exists('/tmp/js-test')");
  };
  it("no dir", async () => assert.strictEqual(exists(), false));
  it("mkdir", async () => pyodide.FS.mkdir("/tmp/js-test"));
  it("made dir", async () => assert.strictEqual(exists(), true));
});

import assert from "assert";

// for a persistence-related browser test see /src/tests/test_filesystem.py

describe("FS", () => {
  const exists = () => {
    return pyodide.runPython("import os; os.path.exists('/tmp/js-test')");
  };
  it("no dir", async () => assert.strictEqual(exists(), false));
  it("mkdir", async () => pyodide.FS.mkdir("/tmp/js-test"));
  it("made dir", async () => assert.strictEqual(exists(), true));
});
