Skip to content

test(sveltekit-3): Fix import defineEnvVars from @sveltejs/kit/env #51982

test(sveltekit-3): Fix import defineEnvVars from @sveltejs/kit/env

test(sveltekit-3): Fix import defineEnvVars from @sveltejs/kit/env #51982

Triggered via pull request July 20, 2026 11:44
Status Failure
Total duration 10m 41s
Artifacts 3

build.yml

on: pull_request
Get CI Metadata  /  Get Metadata
8s
Get CI Metadata / Get Metadata
Check lockfile
0s
Check lockfile
Check file formatting
52s
Check file formatting
Check PR branches
3s
Check PR branches
Build Lambda layer
0s
Build Lambda layer
Matrix: job_bundler_plugin_integration_tests
Matrix: job_node_core_integration_tests
Matrix: job_node_integration_tests
Matrix: job_node_unit_tests
Lint
1m 31s
Lint
Circular Dependency Check
1m 42s
Circular Dependency Check
Browser Unit Tests
43s
Browser Unit Tests
Bun Unit Tests
0s
Bun Unit Tests
Deno Unit Tests
0s
Deno Unit Tests
Node v18.0.0 Compatibility Check
0s
Node v18.0.0 Compatibility Check
Cloudflare Integration Tests
0s
Cloudflare Integration Tests
Bun Integration Tests
0s
Bun Integration Tests
Deno Integration Tests
0s
Deno Integration Tests
Check for faulty .d.ts files
45s
Check for faulty .d.ts files
Matrix: job_browser_loader_tests
Matrix: job_browser_playwright_tests
Matrix: job_optional_e2e_tests
Upload Artifacts
Upload Artifacts
Matrix: job_e2e_tests
All required jobs passed or were skipped
2s
All required jobs passed or were skipped
Fit to window
Zoom out
Zoom in

Annotations

4 errors, 1 warning, and 1 notice
E2E sveltekit-3 Test (optional)
Process completed with exit code 1.
[chromium] › tests/errors.server.test.ts:61:3 › server-side errors › captures server route (GET) error: ../../_temp/test-application/tests/errors.server.test.ts#L71
3) [chromium] › tests/errors.server.test.ts:61:3 › server-side errors › captures server route (GET) error Error: expect(received).toEqual(expected) // deep equality - Expected - 3 + Received + 15 - ObjectContaining { - "filename": StringMatching /app:\/\/\/_server.ts-.+.js/, + Object { + "colno": 9, + "context_line": " throw new Error('Server Route Error');", + "filename": "src/routes/server-route-error/+server.ts", "function": "GET", - "in_app": true, + "in_app": false, + "lineno": 2, + "post_context": Array [ + " return {", + " msg: 'Hello World',", + " };", + "};", + ], + "pre_context": Array [ + "export const GET = async () => {", + ], } 69 | const errorEventFrames = errorEvent.exception?.values?.[0]?.stacktrace?.frames; 70 | > 71 | expect(errorEventFrames?.[errorEventFrames?.length - 1]).toEqual( | ^ 72 | expect.objectContaining({ 73 | filename: expect.stringMatching(/app:\/\/\/_server.ts-.+.js/), 74 | function: 'GET', at /home/runner/work/_temp/test-application/tests/errors.server.test.ts:71:62
[chromium] › tests/errors.server.test.ts:33:3 › server-side errors › captures server load error: ../../_temp/test-application/tests/errors.server.test.ts#L43
2) [chromium] › tests/errors.server.test.ts:33:3 › server-side errors › captures server load error Error: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 15 - ObjectContaining { + Object { + "colno": 9, + "context_line": " throw new Error('Server Load Error');", + "filename": "src/routes/server-load-error/+page.server.ts", "function": "load", - "in_app": true, + "in_app": false, + "lineno": 2, + "post_context": Array [ + " return {", + " msg: 'Hello World',", + " };", + "};", + ], + "pre_context": Array [ + "export const load = async () => {", + ], } 41 | const errorEventFrames = errorEvent.exception?.values?.[0]?.stacktrace?.frames; 42 | > 43 | expect(errorEventFrames?.[errorEventFrames?.length - 1]).toEqual( | ^ 44 | expect.objectContaining({ 45 | function: 'load', 46 | in_app: true, at /home/runner/work/_temp/test-application/tests/errors.server.test.ts:43:62
[chromium] › tests/errors.server.test.ts:5:3 › server-side errors › captures universal load error: ../../_temp/test-application/tests/errors.server.test.ts#L15
1) [chromium] › tests/errors.server.test.ts:5:3 › server-side errors › captures universal load error Error: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 17 - ObjectContaining { + Object { + "colno": 9, + "context_line": " throw new Error(`Universal Load Error (${browser ? 'browser' : 'server'})`);", + "filename": "src/routes/universal-load-error/+page.ts", "function": "load", - "in_app": true, + "in_app": false, + "lineno": 4, + "post_context": Array [ + " return {", + " msg: 'Hello World',", + " };", + "};", + ], + "pre_context": Array [ + "import { browser } from '$app/environment';", + "", + "export const load = async () => {", + ], } 13 | const errorEventFrames = errorEvent.exception?.values?.[0]?.stacktrace?.frames; 14 | > 15 | expect(errorEventFrames?.[errorEventFrames?.length - 1]).toEqual( | ^ 16 | expect.objectContaining({ 17 | function: 'load', 18 | in_app: true, at /home/runner/work/_temp/test-application/tests/errors.server.test.ts:15:62
Size Check
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: ./dev-packages/size-limit-gh-action. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
🎭 Playwright Run Summary
3 failed [chromium] › tests/errors.server.test.ts:5:3 › server-side errors › captures universal load error [chromium] › tests/errors.server.test.ts:33:3 › server-side errors › captures server load error [chromium] › tests/errors.server.test.ts:61:3 › server-side errors › captures server route (GET) error 1 skipped 10 passed (24.6s)

Artifacts

Produced during runtime
Name Size Digest
build-bundle-output Expired
18.1 MB
sha256:8d9681ec1ddb0ee8c21945db8e1dbe834172b3fdf19d838d38b0640731f2f2b4
build-output Expired
12.7 MB
sha256:e28c599cb429480c0d8c5892f517ff6e0dcf067488292c76d9c592e731077bb0
build-tarball-output Expired
6.02 MB
sha256:f58eacb7830b83e6b89d191a5fc8d20e40fbd65b39bb66633f294f0f0c71b2ef