Nx
Enterprise
Nx
Sign in / Sign up
Open main menu
Nx
GitHub
Overview
Runs
Analytics
Loading workspace stats
Loading workspace insights...
Statistics interval
7 days
30 days
Latest CI Pipeline Executions
Status
Fix filter
Filter
Fuzzy
Filter range
Sort by
Sort by
Start time
Sort ascending
Sort descending
Succeeded
34350
4a65b656 chore(misc): add snapshot so we can see the updated file at a glance
5 days ago
by jaysoo
j
Succeeded
34350
881b4791 fix(testing): use surgical text replacement in Jest matcher alias migration The `replace-removed-matcher-aliases` migration was corrupting TypeScript files by using `tsquery.replace()`, which reprints the entire AST through TypeScript's Printer. This caused several issues: 1. **Syntax corruption**: The Printer would mangle complex patterns like destructuring (`{ result }` → `{result}:`), arrow functions (missing opening braces), and nested callbacks (collapsed blocks). 2. **Unnecessary reformatting**: Every test file was written back to disk even if no matchers were replaced, causing `formatFiles()` to reformat files that didn't need changes. This fix replaces the AST-reprinting approach with surgical text replacement: - Use `tsquery.query()` to find matching AST nodes - Collect text positions (start/end) for each node to replace - Apply replacements in reverse order using string slicing - Only write files that actually changed This pattern is already used successfully in other Nx migrations (e.g., `rename-cy-exec-code-property.ts` in the Cypress package). Additional improvements: - Single AST parse with regex selector vs. 11 separate passes - Quick string check skips parsing files without deprecated matchers - New regression test covers complex patterns that triggered corruption Fixes #32062
5 days ago
by baer
b
Previous page
Previous
Next
Next page