From cf228beff64970e0c22c935f20e122b98ebdff2c Mon Sep 17 00:00:00 2001 From: Andrey Avtomonov Date: Thu, 21 May 2026 15:42:26 +0200 Subject: [PATCH] test: point examples-docs assertion at reviewing-context Update the doc smoke test that read context-as-code.mdx to read the new guides/reviewing-context.mdx path. The `ktx ingest --all --no-input` assertion still holds; the rename was the only break. --- scripts/examples-docs.test.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/examples-docs.test.mjs b/scripts/examples-docs.test.mjs index a1f89847..e7babd0f 100644 --- a/scripts/examples-docs.test.mjs +++ b/scripts/examples-docs.test.mjs @@ -245,7 +245,7 @@ describe('standalone example docs', () => { const setupReference = await readText('docs-site/content/docs/cli-reference/ktx-setup.mdx'); const buildingContext = await readText('docs-site/content/docs/guides/building-context.mdx'); const contextSources = await readText('docs-site/content/docs/integrations/context-sources.mdx'); - const contextAsCode = await readText('docs-site/content/docs/concepts/context-as-code.mdx'); + const reviewingContext = await readText('docs-site/content/docs/guides/reviewing-context.mdx'); const quickstart = await readText('docs-site/content/docs/getting-started/quickstart.mdx'); const primarySources = await readText('docs-site/content/docs/integrations/primary-sources.mdx'); const examplesIndex = await readText('examples/README.md'); @@ -257,7 +257,7 @@ describe('standalone example docs', () => { assert.match(buildingContext, /ktx ingest /); assert.match(buildingContext, /ktx ingest --all/); assert.match(contextSources, /ktx ingest /); - assert.match(contextAsCode, /ktx ingest --all --no-input/); + assert.match(reviewingContext, /ktx ingest --all --no-input/); assert.match(quickstart, /schema context/); assert.match(primarySources, /context:\n queryHistory:/); assert.match(rootReadme, /`ktx ingest ` \| Build context for one connection/); @@ -283,7 +283,7 @@ describe('standalone example docs', () => { assert.doesNotMatch(buildingContext, /live-database/); assert.doesNotMatch(contextSources, /ktx ingest run --connection-id/); assert.doesNotMatch(contextSources, /--adapter /); - assert.doesNotMatch(contextAsCode, /ktx ingest run --connection-id/); + assert.doesNotMatch(reviewingContext, /ktx ingest run --connection-id/); assert.doesNotMatch(quickstart, /Historic SQL/); assert.doesNotMatch(quickstart, /--enable-historic-sql/); assert.doesNotMatch(quickstart, /press d<\/kbd> to detach/);