* refactor(#179): migrate configuration module to sdk/src/config * chore(#179): add changeset for config module path migration
This commit is contained in:
@@ -90,15 +90,15 @@ test('CJS DYNAMIC_KEY_PATTERNS .source fields match manifest dynamicKeyPatterns'
|
||||
|
||||
// ─── SDK side: verify config-schema.ts re-exports from configuration module ─
|
||||
|
||||
test('SDK config-schema.ts re-exports from configuration module (not inline literals)', () => {
|
||||
test('SDK config-schema.ts re-exports from config module (not inline literals)', () => {
|
||||
const SDK_SCHEMA_PATH = path.join(ROOT, 'sdk', 'src', 'query', 'config-schema.ts');
|
||||
const src = fs.readFileSync(SDK_SCHEMA_PATH, 'utf8');
|
||||
|
||||
// After Cycle 5, the file must NOT contain inline key literals.
|
||||
// It should import/re-export from '../configuration/index.js'.
|
||||
// It should import/re-export from '../config/index.js'.
|
||||
assert.ok(
|
||||
src.includes("from '../configuration/index.js'"),
|
||||
'sdk/src/query/config-schema.ts must re-export from ../configuration/index.js (not inline literals)',
|
||||
src.includes("from '../config/index.js'"),
|
||||
'sdk/src/query/config-schema.ts must re-export from ../config/index.js (not inline literals)',
|
||||
);
|
||||
|
||||
// Must NOT contain a standalone new Set([...]) block with key literals.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Parity test: configuration.generated.cjs (CJS) vs sdk/dist/configuration/index.js (ESM).
|
||||
* Parity test: configuration.generated.cjs (CJS) vs sdk/dist/config/index.js (ESM).
|
||||
*
|
||||
* For every fixture in the vitest pinning tests, asserts that both sides produce
|
||||
* identical output. This ensures the generator faithfully replicates the TS source.
|
||||
@@ -44,7 +44,7 @@ function cleanup(dir) {
|
||||
let esm;
|
||||
|
||||
before(async () => {
|
||||
esm = await import('../sdk/dist/configuration/index.js');
|
||||
esm = await import('../sdk/dist/config/index.js');
|
||||
});
|
||||
|
||||
// ─── Parity helper ────────────────────────────────────────────────────────────
|
||||
|
||||
@@ -73,8 +73,8 @@ const GENERATORS = [
|
||||
},
|
||||
{
|
||||
script: 'gen-configuration.mjs',
|
||||
dist: 'sdk/dist/configuration/index.js',
|
||||
ts: 'sdk/src/configuration/index.ts',
|
||||
dist: 'sdk/dist/config/index.js',
|
||||
ts: 'sdk/src/config/index.ts',
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user