Skip to content

Fix: handle the quantifier of a lookaround assertion #122

Fix: handle the quantifier of a lookaround assertion

Fix: handle the quantifier of a lookaround assertion #122

Triggered via pull request August 13, 2024 14:47
Status Failure
Total duration 37s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors
src/parser/__tests__/literal-gen.test.ts: src/parser/gen-with-selected.ts#L4
TypeError: Class extends value undefined is not a constructor or null ❯ src/parser/gen-with-selected.ts:4:35 ❯ src/parser/index.ts:18:31
src/parser/__tests__/non-literal-parse.test.ts > parse should return correct ast when receiving '\1': src/parser/__tests__/non-literal-parse.test.ts#L309
AssertionError: expected { id: '', type: 'regex', …(4) } to deeply equal { id: '', type: 'regex', …(4) } - Expected + Received Object { "body": Array [ Object { "id": "", + "quantifier": null, "ref": "1", "type": "backReference", }, ], "escapeBackslash": false, "flags": Array [], "id": "", "literal": false, "type": "regex", } ❯ src/parser/__tests__/non-literal-parse.test.ts:309:5
src/parser/__tests__/non-literal-parse.test.ts > parse should return correct ast when receiving '\\1': src/parser/__tests__/non-literal-parse.test.ts#L348
AssertionError: expected { id: '', type: 'regex', …(4) } to deeply equal { id: '', type: 'regex', …(4) } - Expected + Received Object { "body": Array [ Object { "id": "", + "quantifier": null, "ref": "1", "type": "backReference", }, ], "escapeBackslash": true, "flags": Array [], "id": "", "literal": false, "type": "regex", } ❯ src/parser/__tests__/non-literal-parse.test.ts:348:5
src/parser/__tests__/valid-2015.test.ts: src/parser/gen-with-selected.ts#L4
TypeError: Class extends value undefined is not a constructor or null ❯ src/parser/gen-with-selected.ts:4:35 ❯ src/parser/index.ts:18:31
test
Process completed with exit code 1.