Files
EpicNext-Cms/scripts/docker-start.import.test.mjs
T
Simo 76e46d295c
CI / check (push) Successful in 3m7s
CI / deploy (push) Successful in 19s
CI / publish-container (push) Successful in 1m25s
fix(test): register Docker import check with Vitest
2026-09-13 18:02:00 +02:00

18 lines
550 B
JavaScript

import assert from "node:assert/strict";
import { spawnSync } from "node:child_process";
import { it } from "vitest";
it("imports runtime validation without starting the CMS", () => {
const result = spawnSync(
process.execPath,
[
"--input-type=module",
"-e",
"import {validateRuntime} from './scripts/docker-start.mjs';try{validateRuntime({});process.exit(1)}catch(error){if(!error.message.startsWith('Invalid runtime configuration'))throw error}",
],
{ encoding: "utf8" },
);
assert.equal(result.status, 0, result.stderr);
});