skills-layer 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -117,19 +117,21 @@ test("public package text stays limited to public CLI surface", async () => {
|
|
|
117
117
|
});
|
|
118
118
|
|
|
119
119
|
test("public bin wrapper and runtime expose deterministic package smoke commands", async () => {
|
|
120
|
+
const packageJson = JSON.parse(await readFile(packageUrl, "utf8"));
|
|
121
|
+
const expectedVersionLine = `skills-layer ${packageJson.version}`;
|
|
120
122
|
const runtime = await loadRuntime();
|
|
121
123
|
const binVersion = await runBin(["--version"]);
|
|
122
124
|
assert.equal(binVersion.exitCode, 0);
|
|
123
125
|
assert.equal(binVersion.stderr, "");
|
|
124
|
-
assert.
|
|
126
|
+
assert.equal(binVersion.stdout.trim(), expectedVersionLine);
|
|
125
127
|
|
|
126
128
|
const version = await runtime.executePublicCli(["--version"]);
|
|
127
129
|
assert.equal(version.exitCode, 0);
|
|
128
|
-
assert.
|
|
130
|
+
assert.equal(version.stdout.trim(), expectedVersionLine);
|
|
129
131
|
|
|
130
132
|
const jsonVersion = await runPublic(["version", "--json"]);
|
|
131
133
|
assert.equal(jsonVersion.exitCode, 0);
|
|
132
|
-
assert.equal(parseJsonOutput(jsonVersion).data.version,
|
|
134
|
+
assert.equal(parseJsonOutput(jsonVersion).data.version, packageJson.version);
|
|
133
135
|
|
|
134
136
|
const loginHelp = await runtime.executePublicCli(["login", "--help"]);
|
|
135
137
|
assert.equal(loginHelp.exitCode, 0);
|