You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('outDir is tree-shaken if not needed',async()=>{
✖ outDir is tree-shaken if not needed (1.72359ms)
TypeError [Error]: Cannot read properties of undefined (reading 'replace')
at Object.readFile (file:///home/hl/ws/forks/astro/packages/astro/test/test-utils.js:217:22)
at TestContext.<anonymous> (file:///home/hl/ws/forks/astro/packages/integrations/vercel/test/serverless-prerender.test.js:25:34)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Test.run (node:internal/test_runner/test:574:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:318:7)
This one only fails on my WSL (Ubuntu 22.04) setup:
it('renders 404 page when a route does not match the request',async()=>{
✖ renders 404 page when a route does not match the request (1.939176ms)
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ ''
- 'Something went horribly wrong!'
at TestContext.<anonymous> (file:///home/hl/ws/forks/astro/packages/astro/test/ssr-error-pages.test.js:160:11)
at async Test.run (node:internal/test_runner/test:574:9)
at async Promise.all (index 0)
at async Suite.run (node:internal/test_runner/test:810:7)
at async Suite.processPendingSubtests (node:internal/test_runner/test:318:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '',
expected: 'Something went horribly wrong!',
operator: 'strictEqual'
}
What's the expected result?
pnpm build && pnpm test should pass.
Link to Minimal Reproducible Example
pnpm build && pnpm test on main
Participation
I am willing to submit a pull request for this issue.
The text was updated successfully, but these errors were encountered:
Everything seems to work for me in local (Node v22.0.0) and on CI. Might've been a fluke or specific to your setup. As long as it works in CI, we're generally okay with things!
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
These 2 tests are failing on main branch:
astro/packages/integrations/vercel/test/serverless-prerender.test.js
Line 21 in e22be22
This one only fails on my WSL (Ubuntu 22.04) setup:
astro/packages/astro/test/ssr-error-pages.test.js
Line 137 in 0626234
What's the expected result?
pnpm build && pnpm test
should pass.Link to Minimal Reproducible Example
pnpm build && pnpm test
onmain
Participation
The text was updated successfully, but these errors were encountered: