refactor: hard-fork GSD -> MSD (Make Software Done)
Mechanical rename produced by scripts/msd-rename.cjs: gsd/Gsd/GSD -> msd/Msd/MSD across contents and paths, upstream package/repo coordinates -> @golem15/msd-core and golem15com/msd-core. Deep links into upstream history, sibling upstream packages, the GSD-2 import feature, CHANGELOG.md and .changeset/ are kept as-is. Hand edits on top: MSD block-letter banner and logos, LICENSE copyright line, package/plugin identity, regenerated lockfile, install-tree fixtures, derived registries and benchmark baseline; migration checksum baseline re-locked (MSD keeps its own install state, so no install had applied the old sums); sort-order and regex-escaped expectations in tests adjusted.
This commit is contained in:
@@ -3,17 +3,17 @@
|
||||
const { describe, test, before, after } = require('node:test');
|
||||
const assert = require('node:assert/strict');
|
||||
|
||||
const { routePhasesCommand } = require('../gsd-core/bin/lib/phases-command-router.cjs');
|
||||
const { routePhasesCommand } = require('../msd-core/bin/lib/phases-command-router.cjs');
|
||||
|
||||
// These tests exercise router dispatch with a deterministic runtime context.
|
||||
let _prevWorkstream;
|
||||
before(() => {
|
||||
_prevWorkstream = process.env.GSD_WORKSTREAM;
|
||||
process.env.GSD_WORKSTREAM = 'test-unit';
|
||||
_prevWorkstream = process.env.MSD_WORKSTREAM;
|
||||
process.env.MSD_WORKSTREAM = 'test-unit';
|
||||
});
|
||||
after(() => {
|
||||
if (_prevWorkstream === undefined) delete process.env.GSD_WORKSTREAM;
|
||||
else process.env.GSD_WORKSTREAM = _prevWorkstream;
|
||||
if (_prevWorkstream === undefined) delete process.env.MSD_WORKSTREAM;
|
||||
else process.env.MSD_WORKSTREAM = _prevWorkstream;
|
||||
});
|
||||
|
||||
describe('phases-command-router', () => {
|
||||
@@ -110,25 +110,25 @@ const { describe, test, beforeEach, afterEach } = require('node:test');
|
||||
const assert = require('node:assert/strict');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const { runGsdTools, createTempProject, cleanup } = require('./helpers.cjs');
|
||||
const { runMsdTools, createTempProject, cleanup } = require('./helpers.cjs');
|
||||
|
||||
describe('bug #1826: phases clear --confirm guard', () => {
|
||||
let tmpDir;
|
||||
// Consolidation #1969: the host suite forces GSD_WORKSTREAM=test-unit, which
|
||||
// runGsdTools propagates into child processes and redirects the project lookup.
|
||||
// Consolidation #1969: the host suite forces MSD_WORKSTREAM=test-unit, which
|
||||
// runMsdTools propagates into child processes and redirects the project lookup.
|
||||
// Clear it for these tests (unset when this file ran standalone); restore after.
|
||||
let __savedWorkstream;
|
||||
|
||||
beforeEach(() => {
|
||||
__savedWorkstream = process.env.GSD_WORKSTREAM;
|
||||
delete process.env.GSD_WORKSTREAM;
|
||||
__savedWorkstream = process.env.MSD_WORKSTREAM;
|
||||
delete process.env.MSD_WORKSTREAM;
|
||||
tmpDir = createTempProject();
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
cleanup(tmpDir);
|
||||
if (__savedWorkstream === undefined) delete process.env.GSD_WORKSTREAM;
|
||||
else process.env.GSD_WORKSTREAM = __savedWorkstream;
|
||||
if (__savedWorkstream === undefined) delete process.env.MSD_WORKSTREAM;
|
||||
else process.env.MSD_WORKSTREAM = __savedWorkstream;
|
||||
});
|
||||
|
||||
test('phases clear without --confirm is rejected when phase dirs exist', () => {
|
||||
@@ -136,7 +136,7 @@ describe('bug #1826: phases clear --confirm guard', () => {
|
||||
fs.mkdirSync(path.join(phasesDir, '01-foundation'), { recursive: true });
|
||||
fs.mkdirSync(path.join(phasesDir, '02-api'), { recursive: true });
|
||||
|
||||
const result = runGsdTools(['phases', 'clear'], tmpDir);
|
||||
const result = runMsdTools(['phases', 'clear'], tmpDir);
|
||||
|
||||
assert.ok(!result.success, 'should exit non-zero when dirs exist and --confirm absent');
|
||||
assert.ok(
|
||||
@@ -154,7 +154,7 @@ describe('bug #1826: phases clear --confirm guard', () => {
|
||||
fs.mkdirSync(path.join(phasesDir, '01-foundation'), { recursive: true });
|
||||
fs.mkdirSync(path.join(phasesDir, '02-api'), { recursive: true });
|
||||
|
||||
const result = runGsdTools(['phases', 'clear', '--confirm'], tmpDir);
|
||||
const result = runMsdTools(['phases', 'clear', '--confirm'], tmpDir);
|
||||
|
||||
assert.ok(result.success, `should succeed with --confirm: ${result.error}`);
|
||||
const out = JSON.parse(result.output);
|
||||
@@ -164,7 +164,7 @@ describe('bug #1826: phases clear --confirm guard', () => {
|
||||
|
||||
test('phases clear without --confirm succeeds when no phase dirs exist', () => {
|
||||
// .planning/phases/ exists but is empty — nothing to guard
|
||||
const result = runGsdTools(['phases', 'clear'], tmpDir);
|
||||
const result = runMsdTools(['phases', 'clear'], tmpDir);
|
||||
|
||||
assert.ok(result.success, `should succeed with empty phases dir: ${result.error}`);
|
||||
const out = JSON.parse(result.output);
|
||||
|
||||
Reference in New Issue
Block a user