Fail loud on a null package.json and a stray plugins/package.json
CI / full-gate (push) Successful in 2m42s

This commit is contained in:
lilleman
2026-08-17 22:50:29 +02:00
parent 616040fda6
commit 77343e859a
5 changed files with 23 additions and 19 deletions
+1 -2
View File
@@ -5,8 +5,7 @@ import assert from "node:assert/strict";
import test from "node:test";
import * as api from "./plugin-api.ts";
// A plugin with its own package.json reaches the barrel only as a package; a second copy landing
// there would fail every `instanceof GuardError` a handler makes.
// Both specifiers must reach one module instance; the Dockerfile symlink is what makes them.
test("the barrel resolves by package name to this same module", async () => {
const asPackage = await import("@plainpages/plugin-api");