Skip to content

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

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

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

Triggered via pull request March 10, 2025 11:12
Status Failure
Total duration 1m 1s
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#L52
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:52: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#L69
expect(received).toEqual(expected) // deep equality Expected: {"field_a": "Must be a multiple of 10"} Received: undefined at Object.toEqual (../src/tests/jsonLogic.test.js:69:61)
jsonLogic: cross-values validations › Relative: <: src/tests/jsonLogic.test.js#L86
TypeError: Cannot read properties of undefined (reading 'field_a') at Object.field_a (../src/tests/jsonLogic.test.js:86:25)
jsonLogic: cross-values validations › Relative: <: src/tests/jsonLogic.test.js#L99
TypeError: Cannot read properties of undefined (reading 'field_a') at Object.field_a (../src/tests/jsonLogic.test.js:99:25)
jsonLogic: cross-values validations › Relative: <: src/tests/jsonLogic.test.js#L112
TypeError: Cannot read properties of undefined (reading 'field_a') at Object.field_a (../src/tests/jsonLogic.test.js:112:25)
jsonLogic: cross-values validations › Incorrectly written schemas › "x-jsf-logic.validations: throw when theres a missing rule": src/tests/jsonLogic.test.js#L191
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:191: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#L191
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:191: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#L191
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:191:29)
jsonLogic: cross-values validations › Incorrectly written schemas › "x-jsf-logic.computedValues: throw when theres a missing computed value": src/tests/jsonLogic.test.js#L191
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:191: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#L191
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:191:29)