CI / check (push) Successful in 28s
CI / tests-ui (push) Failing after 32s
CI / tests-integration (push) Successful in 1m54s
CI / tests-unit (push) Successful in 2m1s
CI / preflight (push) Skipped
CI / deploy (push) Skipped
CI / tests-imaging-browsers (push) Successful in 1m39s
CI / tests-quality (push) Successful in 48s
Biome flagged TypeScript syntax in the .mjs stub module. Remove type annotations and prefix the unused run() store parameter with underscore to satisfy lint rules.
37 lines
722 B
JavaScript
37 lines
722 B
JavaScript
// Stubs for Node.js built-ins used by server-only modules that leak into the
|
|
// UI fixture bundle. These keep esbuild from failing on `node:*` imports
|
|
// while providing shape-compatible exports so the bundle stays loadable.
|
|
|
|
export class AsyncLocalStorage {
|
|
enterWith() {}
|
|
exit() {}
|
|
getStore() {
|
|
return undefined;
|
|
}
|
|
run(_store, work) {
|
|
return work();
|
|
}
|
|
}
|
|
|
|
export function createHash() {
|
|
return {
|
|
update: () => ({
|
|
digest: () => "",
|
|
}),
|
|
};
|
|
}
|
|
|
|
export function randomUUID() {
|
|
return "00000000-0000-0000-0000-000000000000";
|
|
}
|
|
|
|
export async function readFile() {
|
|
return Buffer.alloc(0);
|
|
}
|
|
|
|
export const path = {
|
|
join: (...parts) => parts.join("/"),
|
|
resolve: (...parts) => parts.join("/"),
|
|
sep: "/",
|
|
};
|