Skip to content

chore(next): DEVXP-2630: run v0 tests #73

chore(next): DEVXP-2630: run v0 tests

chore(next): DEVXP-2630: run v0 tests #73

Triggered via pull request March 10, 2025 10:53
Status Failure
Total duration 55s
Artifacts

build-next.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
jsonLogic: cross-values validations › Does not conflict with native JSON schema › Given an optional field and empty value: src/tests/jsonLogic.test.js#L51
expect(received).toEqual(expected) // deep equality Expected: {"field_b": "Must be greater than field_a"} Received: undefined at Object.toEqual (../src/tests/jsonLogic.test.js:51:72)
jsonLogic: cross-values validations › Does not conflict with native JSON schema › Native validations have higher precedence than jsonLogic validations: src/tests/jsonLogic.test.js#L64
expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Object { - "field_a": "Required field", + "field_a": "is required", } at Object.toEqual (../src/tests/jsonLogic.test.js:64:47)
jsonLogic: cross-values validations › Relative: <: src/tests/jsonLogic.test.js#L85
TypeError: Cannot read properties of undefined (reading 'field_a') at Object.field_a (../src/tests/jsonLogic.test.js:85:25)
jsonLogic: cross-values validations › Relative: <: src/tests/jsonLogic.test.js#L98
TypeError: Cannot read properties of undefined (reading 'field_a') at Object.field_a (../src/tests/jsonLogic.test.js:98:25)
jsonLogic: cross-values validations › Relative: <: src/tests/jsonLogic.test.js#L111
TypeError: Cannot read properties of undefined (reading 'field_a') at Object.field_a (../src/tests/jsonLogic.test.js:111:25)
jsonLogic: cross-values validations › Incorrectly written schemas › "x-jsf-logic.validations: throw when theres a missing rule": src/tests/jsonLogic.test.js#L190
expect(jest.fn()).toHaveBeenCalledWith(...expected) Expected: "JSON Schema invalid!", [Error: [json-schema-form] json-logic error: Validation "a_greater_than_ten" has missing rule.] Number of calls: 0 at toHaveBeenCalledWith (../src/tests/jsonLogic.test.js:190:29)
jsonLogic: cross-values validations › Incorrectly written schemas › "x-jsf-logic.validations: throw when theres a value that does not exist in a rule": src/tests/jsonLogic.test.js#L190
expect(jest.fn()).toHaveBeenCalledWith(...expected) Expected: "JSON Schema invalid!", [Error: [json-schema-form] json-logic error: rule "a_equals_ten" has no variable "field_a".] Number of calls: 0 at toHaveBeenCalledWith (../src/tests/jsonLogic.test.js:190:29)
jsonLogic: cross-values validations › Incorrectly written schemas › "x-jsf-logic.computedValues: throw when theres a value that does not exist in a rule": src/tests/jsonLogic.test.js#L190
expect(jest.fn()).toHaveBeenCalledWith(...expected) Expected: "JSON Schema invalid!", [Error: [json-schema-form] json-logic error: rule "a_times_ten" has no variable "field_a".] Number of calls: 0 at toHaveBeenCalledWith (../src/tests/jsonLogic.test.js:190:29)
jsonLogic: cross-values validations › Incorrectly written schemas › "x-jsf-logic.computedValues: throw when theres a missing computed value": src/tests/jsonLogic.test.js#L190
expect(jest.fn()).toHaveBeenCalledWith(...expected) Expected: "JSON Schema invalid!", [Error: [json-schema-form] json-logic error: Computed value "a_plus_ten" has missing rule.] Number of calls: 0 at toHaveBeenCalledWith (../src/tests/jsonLogic.test.js:190:29)
jsonLogic: cross-values validations › Incorrectly written schemas › "x-jsf-logic-computedAttrs: error if theres a value that does not exist on an attribute.": src/tests/jsonLogic.test.js#L190
expect(jest.fn()).toHaveBeenCalledWith(...expected) Expected: "JSON Schema invalid!", [Error: [json-schema-form] json-logic error: Computed value "iDontExist" doesn't exist in field "field_a".] Number of calls: 0 at toHaveBeenCalledWith (../src/tests/jsonLogic.test.js:190:29)