Cleanup non-generic assertions in our deploy test suite#90894
Conversation
| // the custom 404 only shows inside of the basePath so this | ||
| // could be a platform default 404 page on deploy | ||
| if (!isNextDeploy) { | ||
| expect(text).toContain('This page could not be found') |
There was a problem hiding this comment.
maybe skip this entire assertion in deploy mode? since we're not testing what it's saying
There was a problem hiding this comment.
the above assertion could still fail if it passes through instead of rendering a 404 or similar. We just can't assert what the 404 content can be since not Next.js specific
Stats from current PR✅ No significant changes detected📊 All Metrics📖 Metrics GlossaryDev Server Metrics:
Build Metrics:
Change Thresholds:
⚡ Dev Server
📦 Dev Server (Webpack) (Legacy)📦 Dev Server (Webpack)
⚡ Production Builds
📦 Production Builds (Webpack) (Legacy)📦 Production Builds (Webpack)
📦 Bundle SizesBundle Sizes⚡ TurbopackClient Main Bundles: **401 kB** → **401 kB** ✅ -15 B80 files with content-based hashes (individual files not comparable between builds) Server Middleware
Build DetailsBuild Manifests
📦 WebpackClient Main Bundles
Polyfills
Pages
Server Edge SSR
Middleware
Build DetailsBuild Manifests
Build Cache
🔄 Shared (bundler-independent)Runtimes
📎 Tarball URL |
Failing test suitesCommit: d462e0f | About building and testing Next.js
Expand output● deterministic build - changing deployment id › build output API - cacheComponents builder › should produce identical build outputs even when changing deployment id |
This makes sure we don't have assertions that will only pass in one environment e.g. these should work for running against bun and not just node or against a local metadata URL not just a deployed https fully qualified domain. Ensures others can leverage this test suite for their own verification easily.
This makes sure we don't have assertions that will only pass in one environment e.g. these should work for running against bun and not just node or against a local metadata URL not just a deployed https fully qualified domain. Ensures others can leverage this test suite for their own verification easily.