Skip to content

fix: failing test (currently: 27 passing 15 failing) #1

fix: failing test (currently: 27 passing 15 failing)

fix: failing test (currently: 27 passing 15 failing) #1

Triggered via push July 11, 2025 12:34
Status Failure
Total duration 14s
Artifacts

test-build.yml

on: push
test-build
10s
test-build
Fit to window
Zoom out
Zoom in

Annotations

10 errors
error: Unexpected token in type:: dist/index.js#L7807
at parsePrimaryType (/home/runner/work/LuaTS/LuaTS/dist/index.js:7807:69) at parseIntersectionType (/home/runner/work/LuaTS/LuaTS/dist/index.js:7644:21) at parseUnionType (/home/runner/work/LuaTS/LuaTS/dist/index.js:7629:21) at typeAliasDeclaration (/home/runner/work/LuaTS/LuaTS/dist/index.js:7585:29) at parse (/home/runner/work/LuaTS/LuaTS/dist/index.js:7535:27) at generateTypes (/home/runner/work/LuaTS/LuaTS/dist/index.js:8925:22) at <anonymous> (/home/runner/work/LuaTS/LuaTS/test/types.test.ts:80:19)
error: Command failed: node ./dist/cli/index.js validate /home/runner/work/LuaTS/LuaTS/test-cli-temp/test.lua: test/cli.test.ts#L150
at <anonymous> (/home/runner/work/LuaTS/LuaTS/test/cli.test.ts:150:15)
error: expect(received).toBe(expected): test/cli.test.ts#L131
Expected: true Received: false at <anonymous> (/home/runner/work/LuaTS/LuaTS/test/cli.test.ts:131:15)
error: expect(received).toBeGreaterThan(expected): test/features.test.ts#L228
Expected: > 0 Received: 0 at <anonymous> (/home/runner/work/LuaTS/LuaTS/test/features.test.ts:228:34)
error: expect(received).toContain(expected): test/features.test.ts#L204
Expected to contain: "/**" Received: "interface User {\n id: number;\n name: string;\n}" at <anonymous> (/home/runner/work/LuaTS/LuaTS/test/features.test.ts:204:19)
error: expect(received).toContain(expected): test/features.test.ts#L187
Expected to contain: "/** This is a user type */" Received: "interface User {\n id: number;\n name: string;\n}" at <anonymous> (/home/runner/work/LuaTS/LuaTS/test/features.test.ts:187:19)
ParseError: Expected '}' after table type: dist/index.js#L7840
at consume (/home/runner/work/LuaTS/LuaTS/dist/index.js:7840:46) at parsePrimaryType (/home/runner/work/LuaTS/LuaTS/dist/index.js:7795:12) at parseIntersectionType (/home/runner/work/LuaTS/LuaTS/dist/index.js:7644:21) at parseUnionType (/home/runner/work/LuaTS/LuaTS/dist/index.js:7629:21) at typeAliasDeclaration (/home/runner/work/LuaTS/LuaTS/dist/index.js:7585:29) at parse (/home/runner/work/LuaTS/LuaTS/dist/index.js:7535:27) at generateTypes (/home/runner/work/LuaTS/LuaTS/dist/index.js:8925:22) at <anonymous> (/home/runner/work/LuaTS/LuaTS/test/features.test.ts:159:19)
error: expect(received).toContain(expected): test/features.test.ts#L149
Expected to contain: "type Handler = (message: string) => boolean" Received: "type Handler = (message: string) => any;" at <anonymous> (/home/runner/work/LuaTS/LuaTS/test/features.test.ts:149:19)