Add AST support of JSONC (for theme check, language features, etc.) #1527
Annotations
13 errors and 2 warnings
packages/theme-check-common/src/checks/json-syntax-error/index.spec.ts > Module: JSONSyntaxError > should report an error for invalid JSON (0):
packages/theme-check-common/src/checks/json-syntax-error/index.spec.ts#L14
AssertionError: expected 'Failed to parse JSONC' to equal 'Unexpected token <,>'
Expected: "Unexpected token <,>"
Received: "Failed to parse JSONC"
❯ packages/theme-check-common/src/checks/json-syntax-error/index.spec.ts:14:36
|
packages/theme-check-common/src/checks/json-syntax-error/index.spec.ts > Module: JSONSyntaxError > should report an error for invalid JSON (1):
packages/theme-check-common/src/checks/json-syntax-error/index.spec.ts#L29
AssertionError: expected 'Failed to parse JSONC' to equal 'Unexpected end of input'
Expected: "Unexpected end of input"
Received: "Failed to parse JSONC"
❯ packages/theme-check-common/src/checks/json-syntax-error/index.spec.ts:29:36
|
packages/theme-check-common/src/checks/json-syntax-error/index.spec.ts > Module: JSONSyntaxError > should report an error for invalid JSON (2):
packages/theme-check-common/src/checks/json-syntax-error/index.spec.ts#L44
AssertionError: expected 'Failed to parse JSONC' to equal 'Unexpected symbol <\'>'
Expected: "Unexpected symbol <'>"
Received: "Failed to parse JSONC"
❯ packages/theme-check-common/src/checks/json-syntax-error/index.spec.ts:44:36
|
Tests / OS ubuntu-latest / NodeJS 20
Process completed with exit code 1.
|
Tests / OS windows-latest / NodeJS 20
The job was canceled because "ubuntu-latest_20" failed.
|
Tests / OS windows-latest / NodeJS 20
The operation was canceled.
|
Tests / OS windows-latest / NodeJS 18
The job was canceled because "ubuntu-latest_20" failed.
|
Tests / OS windows-latest / NodeJS 18
The operation was canceled.
|
Tests / OS ubuntu-latest / NodeJS 18
The job was canceled because "ubuntu-latest_20" failed.
|
packages/theme-check-common/src/checks/json-syntax-error/index.spec.ts > Module: JSONSyntaxError > should report an error for invalid JSON (0):
packages/theme-check-common/src/checks/json-syntax-error/index.spec.ts#L14
AssertionError: expected 'Failed to parse JSONC' to equal 'Unexpected token <,>'
Expected: "Unexpected token <,>"
Received: "Failed to parse JSONC"
❯ packages/theme-check-common/src/checks/json-syntax-error/index.spec.ts:14:36
|
packages/theme-check-common/src/checks/json-syntax-error/index.spec.ts > Module: JSONSyntaxError > should report an error for invalid JSON (1):
packages/theme-check-common/src/checks/json-syntax-error/index.spec.ts#L29
AssertionError: expected 'Failed to parse JSONC' to equal 'Unexpected end of input'
Expected: "Unexpected end of input"
Received: "Failed to parse JSONC"
❯ packages/theme-check-common/src/checks/json-syntax-error/index.spec.ts:29:36
|
packages/theme-check-common/src/checks/json-syntax-error/index.spec.ts > Module: JSONSyntaxError > should report an error for invalid JSON (2):
packages/theme-check-common/src/checks/json-syntax-error/index.spec.ts#L44
AssertionError: expected 'Failed to parse JSONC' to equal 'Unexpected symbol <\'>'
Expected: "Unexpected symbol <'>"
Received: "Failed to parse JSONC"
❯ packages/theme-check-common/src/checks/json-syntax-error/index.spec.ts:44:36
|
Tests / OS ubuntu-latest / NodeJS 18
The operation was canceled.
|
Tests / OS ubuntu-latest / NodeJS 20
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Code quality
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|