Skip to content

Commit bebd2c6

Browse files
Re-enable MetadataMergeStage in parse_qmd_to_ast, enable test:ci in CI
- Re-enable MetadataMergeStage in parse_qmd_to_ast so format is injected into merged metadata (needed by formatDetection tests and PreviewRouter). Remove the commented-out AstTransformsStage entirely — parse_qmd_to_ast intentionally returns a pre-transform AST for Elliot's debug renderer. - Delete stale PreviewRouter.test.ts (file moved to render/ subdirectory, test was never visible in CI since test:ci was disabled). - Uncomment test:ci step in ts-test-suite.yml so hub-client tests run in CI.
1 parent 1b9e658 commit bebd2c6

3 files changed

Lines changed: 6 additions & 106 deletions

File tree

.github/workflows/ts-test-suite.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ jobs:
128128
cd hub-client
129129
npm run build:all
130130
131-
# - name: Run hub-client tests
132-
# shell: bash
133-
# run: |
134-
# cd hub-client
135-
# npm run test:ci
131+
- name: Run hub-client tests
132+
shell: bash
133+
run: |
134+
cd hub-client
135+
npm run test:ci

crates/quarto-core/src/pipeline.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,7 @@ pub async fn parse_qmd_to_ast(
297297
let stages: Vec<Box<dyn PipelineStage>> = vec![
298298
Box::new(ParseDocumentStage::new()),
299299
Box::new(EngineExecutionStage::new()),
300-
// elliot note: I want this function to give an un-processed AST
301-
// Box::new(MetadataMergeStage::new()),
302-
// Box::new(AstTransformsStage::new()),
300+
Box::new(MetadataMergeStage::new()),
303301
];
304302

305303
let (output, warnings) = run_pipeline(content, source_name, ctx, runtime, stages).await?;

hub-client/src/components/PreviewRouter.test.ts

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)