next.js
0daf6673 - Fix typed routes test expectations (#86487)

Commit
64 days ago
Fix typed routes test expectations (#86487) Follow up to https://github.com/vercel/next.js/pull/86273 The typed routes test was checking for `/project/[slug]` in the `RedirectRoutes` type, but this route doesn't actually exist in the test fixture anymore. The test fixture only has redirects defined for `/blog/[category]/[[...slug]]`. When Next.js generates the typed routes during the build, it only includes routes that actually exist in the project structure. The test was expecting a route that wasn't present, which would cause the test to fail if the generated types were correct. This removes `/project/[slug]` from the expected `RedirectRoutes` type so the test expectations match what's actually generated. Also includes a minor formatting fix in `apps/bundle-analyzer/next-env.d.ts` to use consistent semicolons and double quotes per the project's style guidelines.
Author
Parents
Loading