fix(test): register Docker import check with Vitest
This commit is contained in:
1 parent
1eee6661f9
commit
76e46d295c
1 file changed
+4
@@ -1,6 +1,9 @@
|
|||||||
import assert from "node:assert/strict";
|
import assert from "node:assert/strict";
|
||||||
import { spawnSync } from "node:child_process";
|
import { spawnSync } from "node:child_process";
|
||||||
|
|
||||||
|
import { it } from "vitest";
|
||||||
|
|
||||||
|
it("imports runtime validation without starting the CMS", () => {
|
||||||
const result = spawnSync(
|
const result = spawnSync(
|
||||||
process.execPath,
|
process.execPath,
|
||||||
[
|
[
|
||||||
@@ -11,3 +14,4 @@ const result = spawnSync(
|
|||||||
{ encoding: "utf8" },
|
{ encoding: "utf8" },
|
||||||
);
|
);
|
||||||
assert.equal(result.status, 0, result.stderr);
|
assert.equal(result.status, 0, result.stderr);
|
||||||
|
});
|
||||||
Reference in new issue
Block a user