mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
* test: format compiler output before comparing file snapshots The router-plugin and start-plugin-core compiler snapshots record the layout choices of the code generator (object wrapping, blank lines, parentheses around JSX) along with the emitted program, so swapping the code generator rewrites most snapshot files even when the output is the same. Format the output with Prettier before comparing it: fixed options, `objectWrap: 'collapse'`, and blank lines outside template literals removed. Comments are kept. Output that does not parse is compared as is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: regenerate compiler snapshots with formatted output Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: format inline compiler snapshots before comparing them Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
History
|
|
|---|---|---|
| .. | ||
| snapshots/server | ||
| test-files | ||
| clientOnlyJSX.test.ts | ||