test: align deployment checks with accepted diagnostics and public presentation
tests / ci (push) Waiting to run
tests / ci (push) Waiting to run
This commit is contained in:
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user