mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 01:50:39 +09:00
25 lines
811 B
JavaScript
25 lines
811 B
JavaScript
|
|
import assert from "node:assert/strict";
|
||
|
|
import test from "node:test";
|
||
|
|
|
||
|
|
import {
|
||
|
|
buildReleasePackagePlan,
|
||
|
|
checkConfiguration,
|
||
|
|
getReleasePackages,
|
||
|
|
} from "./release-package-map.mjs";
|
||
|
|
|
||
|
|
test("release package manifest covers all public packages with explicit CI enrollment", () => {
|
||
|
|
const packages = buildReleasePackagePlan();
|
||
|
|
assert.ok(packages.length > 0);
|
||
|
|
assert.ok(packages.every((pkg) => typeof pkg.publishFromCi === "boolean"));
|
||
|
|
});
|
||
|
|
|
||
|
|
test("release package list only contains CI-enrolled packages", () => {
|
||
|
|
const enabledPackages = getReleasePackages();
|
||
|
|
assert.ok(enabledPackages.length > 0);
|
||
|
|
assert.ok(enabledPackages.every((pkg) => pkg.publishFromCi === true));
|
||
|
|
});
|
||
|
|
|
||
|
|
test("release package configuration validates successfully", () => {
|
||
|
|
assert.doesNotThrow(() => checkConfiguration());
|
||
|
|
});
|