fix: Get build back to a working state (temp workarounds) #3625
Annotations
14 errors and 1 notice
|
test
Process completed with exit code 1.
|
|
error: expect(received).toBeLessThan(expected):
test/unit/index.test.ts#L58
Expected: < 7000
Received: 58202
at <anonymous> (/home/runner/work/ekscss-repl/ekscss-repl/test/unit/index.test.ts:58:29)
|
|
error: expect(received).toHaveBeenCalledTimes(expected):
test/unit/repl.test.ts#L37
Expected number of calls: 5
Received number of calls: 4
at <anonymous> (/home/runner/work/ekscss-repl/ekscss-repl/test/unit/repl.test.ts:37:17)
at <anonymous> (/home/runner/work/ekscss-repl/ekscss-repl/test/unit/repl.test.ts:94:3)
|
|
error: expect(received).toBeArrayOfSize():
test/unit/repl.test.ts#L69
Received: [
{
type: "error",
level: 3,
message: [
2 | function anonymous(xcss,x,fn
3 | 'use strict'; return xcss`/*** Sample XCSS Styles* Try modify this code to see the build result live!*/${x.color = { red: 'coral', green: 'seagreen', blue: 'deepskyblue',}, null}body { font-size: 20px; color: ${x.color.red};}${x.fn.each(x.color, (name, value) => xcss` .${name} { color: ${value}; }`)}`
^
TypeError: x.fn.each is not a function. (In 'x.fn.each(x.color, (name, value) => xcss` .${name} { color: ${value}; }`)', 'x.fn.each' is an instance of ProxyObject)
at anonymous (file:///home/runner/work/ekscss-repl/ekscss-repl/dist/index-1fk1sgdw.js:3:242)
at Lr (/home/runner/work/ekscss-repl/ekscss-repl/dist/index-1fk1sgdw.js:1:6777)
at W (/home/runner/work/ekscss-repl/ekscss-repl/dist/index-1fk1sgdw.js:1:7119)
at /home/runner/work/ekscss-repl/ekscss-repl/dist/index-1fk1sgdw.js:26:1115
at requestImportModule (2:1)
],
group: null,
}
]
at <anonymous> (/home/runner/work/ekscss-repl/ekscss-repl/test/unit/repl.test.ts:69:16)
|
|
error: expect(received).toHaveLength(expected):
test/unit/css.test.ts#L77
Expected length: 2
Received length: 4
at <anonymous> (/home/runner/work/ekscss-repl/ekscss-repl/test/unit/css.test.ts:77:24)
|
|
e2e
Process completed with exit code 1.
|
|
[firefox] › test/e2e/index.spec.ts:56:5 › has no console calls (except 2 known calls) or unhandled errors:
test/e2e/index.spec.ts#L64
4) [firefox] › test/e2e/index.spec.ts:56:5 › has no console calls (except 2 known calls) or unhandled errors
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toHaveLength(expected)
Expected length: 2
Received length: 1
Received array: [{"_event": {"args": [{"_events": [Object], "_eventsCount": 1, "_maxListeners": undefined, "_object": [JSHandle], "_pendingHandlers": [Map], "_platform": [Object], "off": [Function removeListener], "on": [Function addListener]}], "location": {"columnNumber": 7952, "lineNumber": 0, "url": "http://localhost:3000/index-1fk1sgdw.js"}, "page": {"_events": {"bindingCall": [Function anonymous], "close": [Function anonymous], "crash": [Function anonymous], "download": [Function anonymous], "fileChooser": [Function anonymous], "frameAttached": [Function anonymous], "frameDetached": [Function anonymous], "locatorHandlerTriggered": [Function anonymous], "route": [Function anonymous], "video": [Function anonymous], "viewportSizeChanged": [Function anonymous], "webSocket": [Function anonymous], "webSocketRoute": [Function anonymous], "worker": [Function anonymous]}, "_eventsCount": 14, "_maxListeners": undefined, "_object": [Object], "_pendingHandlers": Map {}, "_platform": {"boxedStackPrefixes": [Function boxedStackPrefixes], "calculateSha1": [Function calculateSha1], "colors": [Object], "coreDir": "/home/runner/work/ekscss-repl/ekscss-repl/node_modules/playwright-core", "createGuid": [Function createGuid], "defaultMaxListeners": [Function defaultMaxListeners], "env": [Object], "fs": [Function fs], "inspectCustom": Symbol(nodejs.util.inspect.custom), "isDebugMode": [Function isDebugMode], "isJSDebuggerAttached": [Function isJSDebuggerAttached], "isLogEnabled": [Function isLogEnabled], "isUnderTest": [Function isUnderTest], "log": [Function log], "name": "node", "path": [Function path], "pathSeparator": "/", "showInternalStackFrames": [Function showInternalStackFrames], "streamFile": [Function streamFile], "streamReadable": [Function streamReadable], "streamWritable": [Function streamWritable], "zones": [Object]}, "off": [Function removeListener], "on": [Function addListener]}, "text": "Error", "type": "error"}, "_page": {"_guid": "page@d8629e9d45eaa173625a1068581fce65", "_type": "Page"}, Symbol(nodejs.util.inspect.custom): [Function anonymous]}]
62 |
63 | expect(unhandledErrors).toHaveLength(0);
> 64 | expect(consoleMessages).toHaveLength(2);
| ^
65 | expect(consoleMessages[0].type()).toBe("log");
66 | // Firefox prints "Array" instead of "[...]"
67 | expect(consoleMessages[0].text()).toMatch(/^AST: (\[.*]|Array)$/);
at /home/runner/work/ekscss-repl/ekscss-repl/test/e2e/index.spec.ts:64:27
|
|
[firefox] › test/e2e/index.spec.ts:56:5 › has no console calls (except 2 known calls) or unhandled errors:
test/e2e/index.spec.ts#L64
4) [firefox] › test/e2e/index.spec.ts:56:5 › has no console calls (except 2 known calls) or unhandled errors
Error: expect(received).toHaveLength(expected)
Expected length: 2
Received length: 1
Received array: [{"_event": {"args": [{"_events": [Object], "_eventsCount": 1, "_maxListeners": undefined, "_object": [JSHandle], "_pendingHandlers": [Map], "_platform": [Object], "off": [Function removeListener], "on": [Function addListener]}], "location": {"columnNumber": 7952, "lineNumber": 0, "url": "http://localhost:3000/index-1fk1sgdw.js"}, "page": {"_events": {"bindingCall": [Function anonymous], "close": [Function anonymous], "crash": [Function anonymous], "download": [Function anonymous], "fileChooser": [Function anonymous], "frameAttached": [Function anonymous], "frameDetached": [Function anonymous], "locatorHandlerTriggered": [Function anonymous], "route": [Function anonymous], "video": [Function anonymous], "viewportSizeChanged": [Function anonymous], "webSocket": [Function anonymous], "webSocketRoute": [Function anonymous], "worker": [Function anonymous]}, "_eventsCount": 14, "_maxListeners": undefined, "_object": [Object], "_pendingHandlers": Map {}, "_platform": {"boxedStackPrefixes": [Function boxedStackPrefixes], "calculateSha1": [Function calculateSha1], "colors": [Object], "coreDir": "/home/runner/work/ekscss-repl/ekscss-repl/node_modules/playwright-core", "createGuid": [Function createGuid], "defaultMaxListeners": [Function defaultMaxListeners], "env": [Object], "fs": [Function fs], "inspectCustom": Symbol(nodejs.util.inspect.custom), "isDebugMode": [Function isDebugMode], "isJSDebuggerAttached": [Function isJSDebuggerAttached], "isLogEnabled": [Function isLogEnabled], "isUnderTest": [Function isUnderTest], "log": [Function log], "name": "node", "path": [Function path], "pathSeparator": "/", "showInternalStackFrames": [Function showInternalStackFrames], "streamFile": [Function streamFile], "streamReadable": [Function streamReadable], "streamWritable": [Function streamWritable], "zones": [Object]}, "off": [Function removeListener], "on": [Function addListener]}, "text": "Error", "type": "error"}, "_page": {"_guid": "page@6db741038f7e5b0d502369a9026a7541", "_type": "Page"}, Symbol(nodejs.util.inspect.custom): [Function anonymous]}]
62 |
63 | expect(unhandledErrors).toHaveLength(0);
> 64 | expect(consoleMessages).toHaveLength(2);
| ^
65 | expect(consoleMessages[0].type()).toBe("log");
66 | // Firefox prints "Array" instead of "[...]"
67 | expect(consoleMessages[0].text()).toMatch(/^AST: (\[.*]|Array)$/);
at /home/runner/work/ekscss-repl/ekscss-repl/test/e2e/index.spec.ts:64:27
|
|
[firefox] › test/e2e/index.spec.ts:45:5 › matches screenshot:
test/e2e/index.spec.ts#L47
3) [firefox] › test/e2e/index.spec.ts:45:5 › matches screenshot ──────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(page).toHaveScreenshot(expected) failed
55400 pixels (ratio 0.06 of all image pixels) are different.
Snapshot: repl.png
Call log:
- Expect "toHaveScreenshot(repl.png)" with timeout 5000ms
- verifying given screenshot expectation
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- 55400 pixels (ratio 0.06 of all image pixels) are different.
- waiting 100ms before taking screenshot
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- captured a stable screenshot
- 55400 pixels (ratio 0.06 of all image pixels) are different.
45 | test("matches screenshot", async ({ page }) => {
46 | await page.goto("/");
> 47 | await expect(page).toHaveScreenshot("repl.png", {
| ^
48 | fullPage: true,
49 | mask: [
50 | page.locator("#con .console>div"), // mask compile time log entry
at /home/runner/work/ekscss-repl/ekscss-repl/test/e2e/index.spec.ts:47:22
|
|
[firefox] › test/e2e/index.spec.ts:45:5 › matches screenshot:
test/e2e/index.spec.ts#L47
3) [firefox] › test/e2e/index.spec.ts:45:5 › matches screenshot ──────────────────────────────────
Error: expect(page).toHaveScreenshot(expected) failed
55400 pixels (ratio 0.06 of all image pixels) are different.
Snapshot: repl.png
Call log:
- Expect "toHaveScreenshot(repl.png)" with timeout 5000ms
- verifying given screenshot expectation
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- 55400 pixels (ratio 0.06 of all image pixels) are different.
- waiting 100ms before taking screenshot
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- captured a stable screenshot
- 55400 pixels (ratio 0.06 of all image pixels) are different.
45 | test("matches screenshot", async ({ page }) => {
46 | await page.goto("/");
> 47 | await expect(page).toHaveScreenshot("repl.png", {
| ^
48 | fullPage: true,
49 | mask: [
50 | page.locator("#con .console>div"), // mask compile time log entry
at /home/runner/work/ekscss-repl/ekscss-repl/test/e2e/index.spec.ts:47:22
|
|
[chromium] › test/e2e/index.spec.ts:56:5 › has no console calls (except 2 known calls) or unhandled errors:
test/e2e/index.spec.ts#L64
2) [chromium] › test/e2e/index.spec.ts:56:5 › has no console calls (except 2 known calls) or unhandled errors
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toHaveLength(expected)
Expected length: 2
Received length: 1
Received array: [{"_event": {"args": [{"_events": [Object], "_eventsCount": 1, "_maxListeners": undefined, "_object": [JSHandle], "_pendingHandlers": [Map], "_platform": [Object], "off": [Function removeListener], "on": [Function addListener]}], "location": {"columnNumber": 7952, "lineNumber": 0, "url": "http://localhost:3000/index-1fk1sgdw.js"}, "page": {"_events": {"bindingCall": [Function anonymous], "close": [Function anonymous], "crash": [Function anonymous], "download": [Function anonymous], "fileChooser": [Function anonymous], "frameAttached": [Function anonymous], "frameDetached": [Function anonymous], "locatorHandlerTriggered": [Function anonymous], "route": [Function anonymous], "video": [Function anonymous], "viewportSizeChanged": [Function anonymous], "webSocket": [Function anonymous], "webSocketRoute": [Function anonymous], "worker": [Function anonymous]}, "_eventsCount": 14, "_maxListeners": undefined, "_object": [Object], "_pendingHandlers": Map {}, "_platform": {"boxedStackPrefixes": [Function boxedStackPrefixes], "calculateSha1": [Function calculateSha1], "colors": [Object], "coreDir": "/home/runner/work/ekscss-repl/ekscss-repl/node_modules/playwright-core", "createGuid": [Function createGuid], "defaultMaxListeners": [Function defaultMaxListeners], "env": [Object], "fs": [Function fs], "inspectCustom": Symbol(nodejs.util.inspect.custom), "isDebugMode": [Function isDebugMode], "isJSDebuggerAttached": [Function isJSDebuggerAttached], "isLogEnabled": [Function isLogEnabled], "isUnderTest": [Function isUnderTest], "log": [Function log], "name": "node", "path": [Function path], "pathSeparator": "/", "showInternalStackFrames": [Function showInternalStackFrames], "streamFile": [Function streamFile], "streamReadable": [Function streamReadable], "streamWritable": [Function streamWritable], "zones": [Object]}, "off": [Function removeListener], "on": [Function addListener]}, "text": "TypeError: x.fn.each is not a function
at eval (eval at Dr (http://localhost:3000/index-1fk1sgdw.js:1:4639), <anonymous>:22:8)
at Lr (http://localhost:3000/index-1fk1sgdw.js:1:6778)
at W (http://localhost:3000/index-1fk1sgdw.js:1:7119)
at http://localhost:3000/index-1fk1sgdw.js:26:1115", "type": "error"}, "_page": {"_guid": "page@0330468ed75d948644cda248da18e709", "_type": "Page"}, Symbol(nodejs.util.inspect.custom): [Function anonymous]}]
62 |
63 | expect(unhandledErrors).toHaveLength(0);
> 64 | expect(consoleMessages).toHaveLength(2);
| ^
65 | expect(consoleMessages[0].type()).toBe("log");
66 | // Firefox prints "Array" instead of "[...]"
67 | expect(consoleMessages[0].text()).toMatch(/^AST: (\[.*]|Array)$/);
at /home/runner/work/ekscss-repl/ekscss-repl/test/e2e/index.spec.ts:64:27
|
|
[chromium] › test/e2e/index.spec.ts:56:5 › has no console calls (except 2 known calls) or unhandled errors:
test/e2e/index.spec.ts#L64
2) [chromium] › test/e2e/index.spec.ts:56:5 › has no console calls (except 2 known calls) or unhandled errors
Error: expect(received).toHaveLength(expected)
Expected length: 2
Received length: 1
Received array: [{"_event": {"args": [{"_events": [Object], "_eventsCount": 1, "_maxListeners": undefined, "_object": [JSHandle], "_pendingHandlers": [Map], "_platform": [Object], "off": [Function removeListener], "on": [Function addListener]}], "location": {"columnNumber": 7952, "lineNumber": 0, "url": "http://localhost:3000/index-1fk1sgdw.js"}, "page": {"_events": {"bindingCall": [Function anonymous], "close": [Function anonymous], "crash": [Function anonymous], "download": [Function anonymous], "fileChooser": [Function anonymous], "frameAttached": [Function anonymous], "frameDetached": [Function anonymous], "locatorHandlerTriggered": [Function anonymous], "route": [Function anonymous], "video": [Function anonymous], "viewportSizeChanged": [Function anonymous], "webSocket": [Function anonymous], "webSocketRoute": [Function anonymous], "worker": [Function anonymous]}, "_eventsCount": 14, "_maxListeners": undefined, "_object": [Object], "_pendingHandlers": Map {}, "_platform": {"boxedStackPrefixes": [Function boxedStackPrefixes], "calculateSha1": [Function calculateSha1], "colors": [Object], "coreDir": "/home/runner/work/ekscss-repl/ekscss-repl/node_modules/playwright-core", "createGuid": [Function createGuid], "defaultMaxListeners": [Function defaultMaxListeners], "env": [Object], "fs": [Function fs], "inspectCustom": Symbol(nodejs.util.inspect.custom), "isDebugMode": [Function isDebugMode], "isJSDebuggerAttached": [Function isJSDebuggerAttached], "isLogEnabled": [Function isLogEnabled], "isUnderTest": [Function isUnderTest], "log": [Function log], "name": "node", "path": [Function path], "pathSeparator": "/", "showInternalStackFrames": [Function showInternalStackFrames], "streamFile": [Function streamFile], "streamReadable": [Function streamReadable], "streamWritable": [Function streamWritable], "zones": [Object]}, "off": [Function removeListener], "on": [Function addListener]}, "text": "TypeError: x.fn.each is not a function
at eval (eval at Dr (http://localhost:3000/index-1fk1sgdw.js:1:4639), <anonymous>:22:8)
at Lr (http://localhost:3000/index-1fk1sgdw.js:1:6778)
at W (http://localhost:3000/index-1fk1sgdw.js:1:7119)
at http://localhost:3000/index-1fk1sgdw.js:26:1115", "type": "error"}, "_page": {"_guid": "page@46390a789ba8c1e8cd7b32d9b25e6059", "_type": "Page"}, Symbol(nodejs.util.inspect.custom): [Function anonymous]}]
62 |
63 | expect(unhandledErrors).toHaveLength(0);
> 64 | expect(consoleMessages).toHaveLength(2);
| ^
65 | expect(consoleMessages[0].type()).toBe("log");
66 | // Firefox prints "Array" instead of "[...]"
67 | expect(consoleMessages[0].text()).toMatch(/^AST: (\[.*]|Array)$/);
at /home/runner/work/ekscss-repl/ekscss-repl/test/e2e/index.spec.ts:64:27
|
|
[chromium] › test/e2e/index.spec.ts:45:5 › matches screenshot:
test/e2e/index.spec.ts#L47
1) [chromium] › test/e2e/index.spec.ts:45:5 › matches screenshot ─────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(page).toHaveScreenshot(expected) failed
50108 pixels (ratio 0.05 of all image pixels) are different.
Snapshot: repl.png
Call log:
- Expect "toHaveScreenshot(repl.png)" with timeout 5000ms
- verifying given screenshot expectation
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- 50108 pixels (ratio 0.05 of all image pixels) are different.
- waiting 100ms before taking screenshot
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- captured a stable screenshot
- 50108 pixels (ratio 0.05 of all image pixels) are different.
45 | test("matches screenshot", async ({ page }) => {
46 | await page.goto("/");
> 47 | await expect(page).toHaveScreenshot("repl.png", {
| ^
48 | fullPage: true,
49 | mask: [
50 | page.locator("#con .console>div"), // mask compile time log entry
at /home/runner/work/ekscss-repl/ekscss-repl/test/e2e/index.spec.ts:47:22
|
|
[chromium] › test/e2e/index.spec.ts:45:5 › matches screenshot:
test/e2e/index.spec.ts#L47
1) [chromium] › test/e2e/index.spec.ts:45:5 › matches screenshot ─────────────────────────────────
Error: expect(page).toHaveScreenshot(expected) failed
50108 pixels (ratio 0.05 of all image pixels) are different.
Snapshot: repl.png
Call log:
- Expect "toHaveScreenshot(repl.png)" with timeout 5000ms
- verifying given screenshot expectation
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- 50108 pixels (ratio 0.05 of all image pixels) are different.
- waiting 100ms before taking screenshot
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- captured a stable screenshot
- 50108 pixels (ratio 0.05 of all image pixels) are different.
45 | test("matches screenshot", async ({ page }) => {
46 | await page.goto("/");
> 47 | await expect(page).toHaveScreenshot("repl.png", {
| ^
48 | fullPage: true,
49 | mask: [
50 | page.locator("#con .console>div"), // mask compile time log entry
at /home/runner/work/ekscss-repl/ekscss-repl/test/e2e/index.spec.ts:47:22
|
|
🎭 Playwright Run Summary
4 failed
[chromium] › test/e2e/index.spec.ts:45:5 › matches screenshot ──────────────────────────────────
[chromium] › test/e2e/index.spec.ts:56:5 › has no console calls (except 2 known calls) or unhandled errors
[firefox] › test/e2e/index.spec.ts:45:5 › matches screenshot ───────────────────────────────────
[firefox] › test/e2e/index.spec.ts:56:5 › has no console calls (except 2 known calls) or unhandled errors
2 passed (15.8s)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
playwright-report
Expired
|
2.03 MB |
sha256:5c844327dc69d1060d4291a70db156b536a3c8cff62254db068cbc70d4289071
|
|