mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-29 21:15:16 +02:00
fix: ship new Itô skills through install manifests (#2704)
* fix: ship new Ito skills through install manifests * ci: audit shipped dependencies separately from tooling * test(release): pass previous version to heading helper
This commit is contained in:
@@ -42,7 +42,11 @@ function runHeadingUpdate(contents, version) {
|
||||
const file = path.join(dir, 'README.md');
|
||||
try {
|
||||
fs.writeFileSync(file, contents);
|
||||
const result = spawnSync(process.execPath, ['-e', headingProgram, file, version], {
|
||||
// release.sh passes the previous version as the helper's third argument.
|
||||
// Derive it from the fixture so this harness exercises the real call shape;
|
||||
// keep a deterministic value for fixtures intentionally missing a heading.
|
||||
const oldVersion = contents.match(/^### v([^ ]+)/m)?.[1] || '2.0.0';
|
||||
const result = spawnSync(process.execPath, ['-e', headingProgram, file, version, oldVersion], {
|
||||
encoding: 'utf8',
|
||||
});
|
||||
return {
|
||||
@@ -105,7 +109,7 @@ function runTests() {
|
||||
assert.notStrictEqual(result.status, 0, 'a missing heading must be a hard failure');
|
||||
assert.match(
|
||||
result.stderr,
|
||||
/could not update latest release heading/i,
|
||||
/could not update release heading/i,
|
||||
'the failure should name the unmet expectation'
|
||||
);
|
||||
assert.strictEqual(
|
||||
|
||||
Reference in New Issue
Block a user