import assert from "node:assert/strict";
import test from "node:test";

test("@nosecone/next", async function (t) {
  await t.test("should expose the public api", async function () {
    assert.deepEqual(Object.keys(await import("../dist/index.js")).sort(), [
      "createMiddleware",
      "default",
      // TODO(@wooorm-arcjet): use a clearer name: defaults for what, function to generate them?
      "defaults",
      "nonce",
      "nosecone",
      "withVercelToolbar",
    ]);
  });
});
