chore(tests): add some tests for ReadMe custom components#1354
chore(tests): add some tests for ReadMe custom components#1354maximilianfalco wants to merge 12 commits intofalco/mdxish-cleanupfrom
Conversation
|
I wonder if we break this PR down further so it's easier to read, maybe into 2 parts for different batches of components? |
|
@eaglethrost this is already broken down into several parts tbh, this one just has a lot of diffs because im just consolidating and adding missing tests what do you reckon needs to be split |
Maybe we can split it like:
I feel like reading 25ish files is quite too big |
|
okay I think looking at this again, it should be fine. thankfully most of the file changes are trivial and easy to review. Out of 39, we have
so that brings it to 25 files changed. which is still significant but those changes are just test additions |
| 🎫 Resolve ISSUE_ID | | :-----------------: | ## 🎯 What does this PR do? Increased test coverage for the readme components & added testing for both the mdx & mdxish rendering engine. This is to better catch potential regressions from changes, and also ensure mdx & mdxish outputs are consistent with each other. This copies some tests from Falco's old PR in #1354 - Added a test pattern where the same input should be rendered with all the rendering engines, utilising snapshots for some tests - Created a customComponents fixture to help with MDX component tests ## 🧪 QA tips Every new test should pass
## Version 14.1.0 ### ⚠ BREAKING CHANGES * **mdxish:** AST nodes - We can't just use safeMode because we still need the inline expressions to be parsed as expression nodes, so there still needs to be an expression parsing ## 🎯 What does this PR do? ### ✨ New & Improved * **mdxish:** remove jsx attribute expression preprocessing ([#1429](#1429)) ([9545472](9545472)), closes [#1426](#1426) ### 🛠 Fixes & Updates * add readme components tests ([#1434](#1434)) ([72ea080](72ea080)), closes [#1354](#1354) * **deps:** bump actions/upload-artifact from 5 to 7 ([#1417](#1417)) ([3ca6d32](3ca6d32)) * **mdxish:** legacy glossary syntax in callout title crashing ([#1441](#1441)) ([9d1b18b](9d1b18b)) <!--SKIP CI-->
🧰 Changes
This is a follow up of #1353. This PR mainly adds test for existing functions for more robust regression prevention.
🧬 QA & Testing