This website requires JavaScript.
About
Status
₊˚⊹Discord
Explore
Register
Sign in
Reference in a new issue
Blame
Copy permalink
Reference in a new issue
Copy permalink
TanStack
/
router
Star
0
Fork
You've already forked router
0
mirror of
https://github.com/TanStack/router.git
synced
2026-11-18 19:34:24 +00:00
Code
Issues
Releases
Packages
Activity
devtools-solid-2
router
/
packages
/
router-plugin
/
tests
/
code-splitter
/
snapshots
/
react
/
1-default
/
function-as-parameter@component.tsx
20 lines
538 B
Raw
Permalink
Normal View
History
test: format compiler output before comparing snapshots (#8658) * 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>
2026-10-10 14:09:42 +02:00
refactor: setup the `@tanstack/router-plugin` package using "unplugin" (#1778) * feat: scaffold the new `@tanstack/router-plugin` package * chore: include in the overrides * feat: more scaffolding * test: just a random test that'll be removed later * build: hopefully fixes build * style: import order * chore: peer deps for router-plugin * feat: setup the generator * refactor: combined needs to be done for the individual plugin * chore: copy all the babel stuff over from router-vite-plugin * feat: copy the babel plugin setup from router-plugin * feat: enfore pre * refactor: turn the error into its own custom one * style: eslint * style: more eslint * chore: update the readme
2024-06-19 15:43:31 +12:00
test: format compiler output before comparing snapshots (#8658) * 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>
2026-10-10 14:09:42 +02:00
refactor: setup the `@tanstack/router-plugin` package using "unplugin" (#1778) * feat: scaffold the new `@tanstack/router-plugin` package * chore: include in the overrides * feat: more scaffolding * test: just a random test that'll be removed later * build: hopefully fixes build * style: import order * chore: peer deps for router-plugin * feat: setup the generator * refactor: combined needs to be done for the individual plugin * chore: copy all the babel stuff over from router-vite-plugin * feat: copy the babel plugin setup from router-plugin * feat: enfore pre * refactor: turn the error into its own custom one * style: eslint * style: more eslint * chore: update the readme
2024-06-19 15:43:31 +12:00
test: format compiler output before comparing snapshots (#8658) * 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>
2026-10-10 14:09:42 +02:00
refactor: setup the `@tanstack/router-plugin` package using "unplugin" (#1778) * feat: scaffold the new `@tanstack/router-plugin` package * chore: include in the overrides * feat: more scaffolding * test: just a random test that'll be removed later * build: hopefully fixes build * style: import order * chore: peer deps for router-plugin * feat: setup the generator * refactor: combined needs to be done for the individual plugin * chore: copy all the babel stuff over from router-vite-plugin * feat: copy the babel plugin setup from router-plugin * feat: enfore pre * refactor: turn the error into its own custom one * style: eslint * style: more eslint * chore: update the readme
2024-06-19 15:43:31 +12:00
test: format compiler output before comparing snapshots (#8658) * 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>
2026-10-10 14:09:42 +02:00
refactor: setup the `@tanstack/router-plugin` package using "unplugin" (#1778) * feat: scaffold the new `@tanstack/router-plugin` package * chore: include in the overrides * feat: more scaffolding * test: just a random test that'll be removed later * build: hopefully fixes build * style: import order * chore: peer deps for router-plugin * feat: setup the generator * refactor: combined needs to be done for the individual plugin * chore: copy all the babel stuff over from router-vite-plugin * feat: copy the babel plugin setup from router-plugin * feat: enfore pre * refactor: turn the error into its own custom one * style: eslint * style: more eslint * chore: update the readme
2024-06-19 15:43:31 +12:00
test: format compiler output before comparing snapshots (#8658) * 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>
2026-10-10 14:09:42 +02:00
refactor: setup the `@tanstack/router-plugin` package using "unplugin" (#1778) * feat: scaffold the new `@tanstack/router-plugin` package * chore: include in the overrides * feat: more scaffolding * test: just a random test that'll be removed later * build: hopefully fixes build * style: import order * chore: peer deps for router-plugin * feat: setup the generator * refactor: combined needs to be done for the individual plugin * chore: copy all the babel stuff over from router-vite-plugin * feat: copy the babel plugin setup from router-plugin * feat: enfore pre * refactor: turn the error into its own custom one * style: eslint * style: more eslint * chore: update the readme
2024-06-19 15:43:31 +12:00
test: format compiler output before comparing snapshots (#8658) * 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>
2026-10-10 14:09:42 +02:00