Add Fable.Literate test infrastructure and fix boilerplate filtering - #6
Merged
Conversation
…ering - Add test project with Expecto (.NET) and Fable.Pyxpecto (Python) support - Fix isBoilerplate to keep modules with bodies (module Foo = ...) - Add trimCode utility to preserve indentation while removing empty lines - Add test commands to justfile (test, build-tests, test-python, test-all) - Regenerate docs with improved code visibility The boilerplate filter was too aggressive, removing all module declarations including those with bodies. Now it only filters standalone declarations (module Foo, namespace Bar) while keeping module definitions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
module Foo = ...) while still filtering standalone declarationstrimCodeutility to preserve indentation while removing leading empty linestest,build-tests,test-python,test-allDetails
The
isBoilerplatefunction was too aggressive - it filtered out ALL code blocks starting withmoduleornamespace, including modules with bodies likemodule Foo = let x = 1. Now it only filters standalone declarations (no=sign), keeping module definitions with bodies visible in the output.The test suite includes 18 tests covering:
Test plan
just test- 18 tests pass on .NETjust test-python- 18 tests pass on Pythonjust generateproduces correct markdown output🤖 Generated with Claude Code