Initial Commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { describe, expect, it } from "@suaveplan/testing/runner";
|
||||
import * as index from "../src/index.js";
|
||||
|
||||
describe("DEP-GRAPH-01 — No forbidden cross-plugin imports", () => {
|
||||
it("public index exports only local symbols", { timeout: 5000 }, () => {
|
||||
expect(index).toBeDefined();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,12 @@
|
||||
import { webcrypto } from "node:crypto";
|
||||
import { WebSocket } from "ws";
|
||||
|
||||
if (!globalThis.crypto) {
|
||||
// @ts-expect-error - polyfill for Node.js environment
|
||||
globalThis.crypto = webcrypto;
|
||||
}
|
||||
|
||||
if (!globalThis.WebSocket) {
|
||||
// @ts-expect-error - polyfill WebSocket for Node.js test environment
|
||||
globalThis.WebSocket = WebSocket;
|
||||
}
|
||||
Reference in New Issue
Block a user