test: align deployment checks with accepted diagnostics and public presentation
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-22 08:59:38 +02:00
parent 7fc4f2569f
commit eada56aa18
14 changed files with 158 additions and 35 deletions
+6 -1
View File
@@ -1,3 +1,4 @@
import * as publicPresentation from '../../resources/js/lib/public-presentation.ts';
import test from 'node:test';
import assert from 'node:assert/strict';
import fs from 'node:fs';
@@ -28,7 +29,11 @@ function load(file, mocks) {
).outputText;
const module = { exports: {} };
compileFunction(output, ['require', 'module', 'exports'])(
(name) => mocks[name] ?? require(name),
(name) =>
mocks[name] ??
(name === '@/lib/public-presentation'
? publicPresentation
: require(name)),
module,
module.exports,
);