Skip to content

fix: fix detecting WC in Windows (#548) #1801

fix: fix detecting WC in Windows (#548)

fix: fix detecting WC in Windows (#548) #1801

Triggered via push October 16, 2024 11:48
Status Failure
Total duration 1m 19s
Artifacts

test.yml

on: push
Matrix: bun-tests
Matrix: node-tests
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 4 warnings
error: expect(received).not.toHaveBeenCalled(): packages/brisa/src/utils/compile-assets/index.test.ts#L82
Expected number of calls: 0 Received number of calls: 2 at /Users/runner/work/brisa/brisa/packages/brisa/src/utils/compile-assets/index.test.ts:82:21
error: expect(received).toEqual(expected): packages/brisa/src/utils/compile-assets/index.test.ts#L101
Expected: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"><url><loc>https://example.com</loc><lastmod>2021-10-01T00:00:00.000Z</lastmod><changefreq>daily</changefreq><priority>1.0</priority><image:image><image:loc>https://example.com/image.jpg</image:loc><image:title>Image title</image:title><image:caption>Image caption</image:caption></image:image></url></urlset>" Received: "" at /Users/runner/work/brisa/brisa/packages/brisa/src/utils/compile-assets/index.test.ts:101:65
error: expect(received).toEqual(expected): packages/brisa/src/utils/get-client-code-in-page/index.test.ts#L76
Expected: 9899 Received: 10037 at /Users/runner/work/brisa/brisa/packages/brisa/src/utils/get-client-code-in-page/index.test.ts:76:28
error: expect(received).toBe(expected): packages/brisa/src/utils/get-client-code-in-page/index.test.ts#L143
Expected: 213 Received: 217 at /Users/runner/work/brisa/brisa/packages/brisa/src/utils/get-client-code-in-page/index.test.ts:143:41
error: expect(received).toBe(expected): packages/brisa/src/utils/get-client-code-in-page/index.test.ts#L174
Expected: 2436 Received: 2468 at /Users/runner/work/brisa/brisa/packages/brisa/src/utils/get-client-code-in-page/index.test.ts:174:34
error: expect(received).toContain(expected): packages/brisa/src/utils/compile-files/index.test.ts#L307
JS shared by all [ info ]" JS shared by all [ info ]" at /Users/runner/work/brisa/brisa/packages/brisa/src/utils/compile-files/index.test.ts:307:25
error: expect(received).toContain(expected): packages/brisa/src/utils/compile-files/index.test.ts#L547
JS shared by all [ info ]" JS shared by all [ info ]" at /Users/runner/work/brisa/brisa/packages/brisa/src/utils/compile-files/index.test.ts:547:25
TypeError: window.mockCleanup is not a function. (In 'window.mockCleanup()'
at cleanupAnEffect (/Users/runner/work/brisa/brisa/packages/brisa/src/utils/signals/index.ts:67:33) at reset (/Users/runner/work/brisa/brisa/packages/brisa/src/utils/signals/index.ts:152:7) at disconnectedCallback (/Users/runner/work/brisa/brisa/packages/brisa/src/utils/brisa-element/index.ts:487:15) at [disconnectedFromDocument] (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/nodes/node/Node.js:830:18) at [disconnectedFromDocument] (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/nodes/element/Element.js:1102:30) at [disconnectedFromNode] (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/nodes/node/Node.js:757:33) at [disconnectedFromNode] (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/nodes/html-element/HTMLElement.js:505:30) at [disconnectedFromNode] (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/nodes/node/Node.js:773:42) at [disconnectedFromNode] (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/nodes/html-element/HTMLElement.js:505:30) at [disconnectedFromNode] (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/nodes/node/Node.js:773:42) at [disconnectedFromNode] (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/nodes/html-element/HTMLElement.js:505:30) at [removeChild] (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/nodes/node/Node.js:444:29) at [destroy] (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/window/BrowserWindow.js:1176:27) at /Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/browser/utilities/BrowserFrameFactory.js:52:49 at new Promise (1:11) at destroyFrame (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/browser/utilities/BrowserFrameFactory.js:26:16) at /Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/browser/utilities/BrowserPageUtility.js:31:33 at new Promise (1:11) at closePage (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/browser/utilities/BrowserPageUtility.js:22:16) at /Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/browser/detached-browser/DetachedBrowserPage.js:69:32 at new Promise (1:11) at close (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/browser/detached-browser/DetachedBrowserPage.js:67:16) at /Users/runner/work/brisa/brisa/node_modules/@happy-dom/global-registrator/lib/GlobalRegistrator.js:80:28 at unregister (/Users/runner/work/brisa/brisa/node_modules/@happy-dom/global-registrator/lib/GlobalRegistrator.js:65:31) at /Users/runner/work/brisa/brisa/packages/brisa/src/utils/client-build-plugin/integration.test.tsx:59:60 at /Users/runner/work/brisa/brisa/packages/brisa/src/utils/client-build-plugin/integration.test.tsx:58:15
bun-tests (windows-latest)
The job was canceled because "macos-latest" failed.
bun-tests (windows-latest)
The operation was canceled.
bun-tests (ubuntu-latest)
The job was canceled because "macos-latest" failed.
error: incorrect header check: node:zlib#L45
at zlibOnError (node:zlib:45:21) at writeSync (native:1:1) at processChunkSync (node:zlib:70:26) at zlibBufferSync (node:zlib:33:24) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:969:24
error: Decompression failed: node:zlib#L45
at zlibOnError (node:zlib:45:21) at writeSync (native:1:1) at processChunkSync (node:zlib:70:26) at zlibBufferSync (node:zlib:33:24) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:1054:24
error: incorrect header check: node:zlib#L45
at zlibOnError (node:zlib:45:21) at writeSync (native:1:1) at processChunkSync (node:zlib:70:26) at zlibBufferSync (node:zlib:33:24) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:969:24
error: Decompression failed: node:zlib#L45
at zlibOnError (node:zlib:45:21) at writeSync (native:1:1) at processChunkSync (node:zlib:70:26) at zlibBufferSync (node:zlib:33:24) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:1054:24
error: incorrect header check: node:zlib#L45
at zlibOnError (node:zlib:45:21) at writeSync (native:1:1) at processChunkSync (node:zlib:70:26) at zlibBufferSync (node:zlib:33:24) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:969:24
error: Decompression failed: node:zlib#L45
at zlibOnError (node:zlib:45:21) at writeSync (native:1:1) at processChunkSync (node:zlib:70:26) at zlibBufferSync (node:zlib:33:24) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:1054:24
error: incorrect header check: node:zlib#L45
at zlibOnError (node:zlib:45:21) at writeSync (native:1:1) at processChunkSync (node:zlib:70:26) at zlibBufferSync (node:zlib:33:24) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:969:24
error: Decompression failed: node:zlib#L45
at zlibOnError (node:zlib:45:21) at writeSync (native:1:1) at processChunkSync (node:zlib:70:26) at zlibBufferSync (node:zlib:33:24) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:1054:24
error: expect(received).toEqual(expected): packages/brisa/src/utils/get-client-code-in-page/index.test.ts#L76
Expected: 9899 Received: 10037 at /home/runner/work/brisa/brisa/packages/brisa/src/utils/get-client-code-in-page/index.test.ts:76:28
error: expect(received).toBe(expected): packages/brisa/src/utils/get-client-code-in-page/index.test.ts#L143
Expected: 213 Received: 217 at /home/runner/work/brisa/brisa/packages/brisa/src/utils/get-client-code-in-page/index.test.ts:143:41
node-tests (ubuntu-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
node-tests (macos-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
bun-tests (macos-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
node-tests (windows-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/