Files
msd-core/tests/cline-support.test.cjs
Jakub Zych a9a7a328e6 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.
2026-10-06 01:47:40 +02:00

39 lines
1.7 KiB
JavaScript

// allow-test-rule: source-text-is-the-product
// Workflow .md / agent .md / command .md / reference .md files — their text
// IS what the runtime loads. Testing text content tests the deployed contract.
// Per CONTRIBUTING.md exception matrix.
const { test, describe } = require('node:test');
const assert = require('node:assert/strict');
const fs = require('fs');
const path = require('path');
describe('Cline runtime support', () => {
test('.clinerules file exists at repo root', () => {
const p = path.join(__dirname, '..', '.clinerules');
assert.ok(fs.existsSync(p), '.clinerules should exist at repo root');
});
test('.clinerules references MSD workflow enforcement', () => {
const content = fs.readFileSync(path.join(__dirname, '..', '.clinerules'), 'utf-8');
assert.ok(
content.includes('msd') || content.includes('MSD') || content.includes('workflow'),
'.clinerules should mention MSD workflows'
);
});
test('.clinerules includes coding standards', () => {
const content = fs.readFileSync(path.join(__dirname, '..', '.clinerules'), 'utf-8');
assert.ok(content.includes('CommonJS') || content.includes('require'),
'.clinerules should mention CommonJS standard');
assert.ok(content.includes('node:test') || content.includes('node:assert'),
'.clinerules should mention test framework');
});
test('.clinerules includes architecture overview', () => {
const content = fs.readFileSync(path.join(__dirname, '..', '.clinerules'), 'utf-8');
assert.ok(content.includes('bin/lib') || content.includes('workflows') || content.includes('agents'),
'.clinerules should describe project architecture');
});
});