diff --git a/package.json b/package.json index b6c78320c..02354153f 100644 --- a/package.json +++ b/package.json @@ -33,13 +33,13 @@ "test": "jest", "test:watch": "jest --watchAll", "test:file": "jest --runTestsByPath --watch", - "test:v0-update-baseline": "jest --roots '/../src/tests' --json --outputFile=test/v0-baseline-test-results.json", + "test:v0-update-baseline": "cd v0 && jest --json --outputFile=../test/v0-baseline-test-results.json;", "test:v0-compare-results": "node test/v0_compare_test_results.js", - "test:v0": "jest --roots '/../src/tests' --json --outputFile=test/v0-test-results.json; pnpm run test:v0-compare-results", + "test:v0": "cd v0 && jest --json --outputFile=../test/v0-test-results.json; cd ..; pnpm run test:v0-compare-results", "lint": "eslint --max-warnings 0 .", "typecheck": "tsc --noEmit", "check": "pnpm run lint && pnpm run typecheck", - "check:pr-next-version": "node ../scripts/pr_next_dev_version", + "check:pr-next-version": "node ./scripts/pr_next_dev_version", "release:dev": "node ./scripts/release dev", "release:beta": "node ./scripts/release beta", "release": "node ./scripts/release official" diff --git a/src/field/schema.ts b/src/field/schema.ts index efbff7a68..85409fa1f 100644 --- a/src/field/schema.ts +++ b/src/field/schema.ts @@ -378,16 +378,14 @@ export function buildFieldSchema({ if (schema === false) { // If the schema is false (hidden field), we use the original schema to get the input type const inputType = getInputType(type, name, originalSchema, strictInputType) - const inputHasInnerFields = ['fieldset', 'group-array'].includes(inputType) const hiddenField: Field = { type: inputType, name, inputType, - jsonType: 'boolean', + jsonType: type || originalSchema.type, required, isVisible: false, - ...(inputHasInnerFields && { fields: [] }), } // Preserve default from originalSchema for hidden fields (important for GROUP_ARRAY fields) @@ -395,6 +393,11 @@ export function buildFieldSchema({ hiddenField.default = originalSchema.default } + // We still build nested fields if the parent schema is deemed false + // These allow the fields to be initialized by a form, and their default values to be set for when they're displayed + // We pass originalSchema instead of schema since schema is false at this point + addFields(hiddenField, originalSchema, originalSchema) + return hiddenField } diff --git a/src/mutations.ts b/src/mutations.ts index d0925e558..510c72ff3 100644 --- a/src/mutations.ts +++ b/src/mutations.ts @@ -104,12 +104,13 @@ function applySchemaRules( } // If the schema has an allOf property, evaluate each rule and add it to the conditional rules array - (schema.allOf ?? []) - .filter((rule: JsfSchema) => typeof rule.if !== 'undefined') - .forEach((rule) => { - const result = evaluateConditional(values, schema, rule as NonBooleanJsfSchema, options, jsonLogicContext) - conditionalRules.push(result) - }) + const allOf = schema.allOf ?? [] + const jsonLogicAllOf = schema['x-jsf-logic']?.allOf ?? []; + + [...allOf, ...jsonLogicAllOf].filter((rule: JsfSchema) => typeof rule.if !== 'undefined').forEach((rule) => { + const result = evaluateConditional(values, schema, rule, options, jsonLogicContext) + conditionalRules.push(result) + }) // Process the conditional rules for (const { rule, matches } of conditionalRules) { diff --git a/src/types.ts b/src/types.ts index c08c7ab05..b5bcfd641 100644 --- a/src/types.ts +++ b/src/types.ts @@ -44,7 +44,14 @@ export interface JsonLogicRules { rule: RulesLogic }> } -export interface JsonLogicRootSchema extends Pick {} +export type JsonLogicRootSchema = Pick & { + allOf?: (JsfSchema & { if?: JsonLogicIfNodeSchema })[] +} + +export type JsonLogicIfNodeSchema = JsfSchema & { + validations?: Record + computedValues?: Record +} export interface JsonLogicSchema extends JsonLogicRules, JsonLogicRootSchema {} diff --git a/src/validation/composition.ts b/src/validation/composition.ts index c2eb33bf5..3a6d31896 100644 --- a/src/validation/composition.ts +++ b/src/validation/composition.ts @@ -164,29 +164,18 @@ export function validateOneOf( } } - if (validCount === 0) { - return [ - { - path, - validation: 'oneOf', - schema, - value, - }, - ] - } - - if (validCount > 1) { - return [ - { - path, - validation: 'oneOf', - schema, - value, - }, - ] + if (validCount === 1) { + return [] } - return [] + return [ + { + path, + validation: 'oneOf', + schema, + value, + }, + ] } /** diff --git a/src/validation/conditions.ts b/src/validation/conditions.ts index 1c224794d..4d5213b4b 100644 --- a/src/validation/conditions.ts +++ b/src/validation/conditions.ts @@ -1,11 +1,12 @@ import type { ValidationError, ValidationErrorPath } from '../errors' import type { LegacyOptions } from '../form' -import type { JsfSchema, JsonLogicContext, NonBooleanJsfSchema, SchemaValue } from '../types' +import type { JsfSchema, JsonLogicContext, JsonLogicIfNodeSchema, NonBooleanJsfSchema, SchemaValue } from '../types' +import { computePropertyValues } from './json-logic' import { validateSchema } from './schema' export function evaluateIfCondition( value: SchemaValue, - ifNode: JsfSchema, + ifNode: JsfSchema | JsonLogicIfNodeSchema, options: LegacyOptions, jsonLogicContext: JsonLogicContext | undefined, path: ValidationErrorPath = [], @@ -13,9 +14,58 @@ export function evaluateIfCondition( // If a boolean value is used as a condition, we need to ignore the allowForbiddenValues option. // Otherwise, we can't evaluate the condition correctly const isTheConditionalABoolean = typeof ifNode === 'boolean' + const conditionIsTrue = validateSchema(value, ifNode, { ...options, ...(isTheConditionalABoolean ? { allowForbiddenValues: false } : {}) }, path, jsonLogicContext).length === 0 - return conditionIsTrue + const matchedValidations = !isTheConditionalABoolean && 'validations' in ifNode ? validateJsonLogicValidations(value, ifNode.validations, jsonLogicContext) : true + + const matchedComputedValues = !isTheConditionalABoolean && 'computedValues' in ifNode ? validateJsonLogicComputedValues(value, ifNode.computedValues, jsonLogicContext) : true + + return conditionIsTrue && matchedValidations && matchedComputedValues +} + +/** + * Checks if all the rules under the `validations` property of an `if` node are valid. + * These `validations` are defined in the `x-jsf-logic`.allOf.if.validations property of the schema. + */ +function validateJsonLogicValidations(value: SchemaValue, validations: JsfSchema | undefined, jsonLogicContext: JsonLogicContext | undefined): boolean { + if (!jsonLogicContext) { + throw new Error('`if` node with `validations` property but no `jsonLogicContext` present') + } + + const allValidationsMatch = Object.entries(validations ?? {}).every(([name, property]) => { + const validationRule = jsonLogicContext?.schema?.validations?.[name]?.rule + if (!validationRule) { + throw new Error(`\`if\` node with \`validations\` property but no validation rule present for ${name}`) + } + + const currentValue = computePropertyValues(name, validationRule, value) + return Object.hasOwn(property, 'const') && currentValue === property.const + }) + + return allValidationsMatch +} + +/** + * Checks if all the rules under the `computedValues` property of an `if` node are valid. + * These `computedValues` are defined in the `x-jsf-logic`.allOf.if.computedValues property of the schema. + */ +function validateJsonLogicComputedValues(value: SchemaValue, computedValues: JsfSchema | undefined, jsonLogicContext: JsonLogicContext | undefined): boolean { + if (!jsonLogicContext) { + throw new Error('`if` node with `computedValues` property but no `jsonLogicContext` present') + } + + const allComputedValuesMatch = Object.entries(computedValues ?? {}).every(([name, property]) => { + const computedValueRule = jsonLogicContext?.schema?.computedValues?.[name]?.rule + if (!computedValueRule) { + throw new Error(`\`if\` node with \`computedValues\` property but no computed value rule present for ${name}`) + } + + const currentValue = computePropertyValues(name, computedValueRule, value) + return Object.hasOwn(property, 'const') && currentValue === property.const + }) + + return allComputedValuesMatch } export function validateCondition( diff --git a/src/validation/json-logic.ts b/src/validation/json-logic.ts index db4ba6fd7..c87d5432d 100644 --- a/src/validation/json-logic.ts +++ b/src/validation/json-logic.ts @@ -180,10 +180,10 @@ function cycleThroughPropertiesAndApplyValues(schemaCopy: JsfSchema, computedVal cycleThroughPropertiesAndApplyValues(propertySchema.if, computedValues) } - /* If the schema has an allOf or anyOf property, we need to cycle through each property inside it and - * apply the computed values - */ - + /** + * If the schema has an allOf, anyOf or oneOf property, we need to cycle through each property inside it and + * apply the computed values + */ if (propertySchema.allOf && propertySchema.allOf.length > 0) { for (const schema of propertySchema.allOf) { cycleThroughPropertiesAndApplyValues(schema, computedValues) @@ -233,7 +233,8 @@ function cycleThroughAttrsAndApplyValues(propertySchema: JsfSchema, computedValu // If it's a template, we need to interpolate it, replacing the handlebars with the computed value return message.replace(/\{\{(.*?)\}\}/g, (_, computation) => { const computationName = computation.trim() - return computedValues[computationName] || `{{${computationName}}}` + // 0 is a valid computation output + return computedValues[computationName] ?? `{{${computationName}}}` }) } diff --git a/test/fields.test.ts b/test/fields.test.ts index 35f1d9149..abe4a9b19 100644 --- a/test/fields.test.ts +++ b/test/fields.test.ts @@ -98,8 +98,27 @@ describe('fields', () => { { inputType: 'fieldset', type: 'fieldset', - jsonType: 'boolean', - fields: [], + jsonType: 'object', + fields: [ + { + inputType: 'number', + isVisible: true, + jsonType: 'number', + label: 'Age', + name: 'age', + required: false, + type: 'number', + }, + { + inputType: 'number', + isVisible: true, + jsonType: 'number', + label: 'Amount', + name: 'amount', + required: false, + type: 'number', + }, + ], name: 'root', required: true, isVisible: false, diff --git a/test/fields/visibility.test.ts b/test/fields/visibility.test.ts index 2ab2bcfff..b3915d1ab 100644 --- a/test/fields/visibility.test.ts +++ b/test/fields/visibility.test.ts @@ -253,5 +253,495 @@ describe('Field visibility', () => { expect(getField(form.fields, 'form')?.isVisible).toBe(false) }) + + describe('supports conditionals over nested fieldsets', () => { + const schemaWithNestedFieldsetsConditionals: JsfObjectSchema = { + 'additionalProperties': false, + 'type': 'object', + 'properties': { + perks: { + 'additionalProperties': false, + 'properties': { + benefits_package: { + 'oneOf': [ + { + const: 'basic', + title: 'Basic', + }, + { + const: 'plus', + title: 'Plus', + }, + ], + 'title': 'Benefits package', + 'type': 'string', + 'x-jsf-presentation': { + inputType: 'radio', + }, + }, + has_retirement_plan: { + 'oneOf': [ + { + const: 'yes', + title: 'Yes', + }, + { + const: 'no', + title: 'No', + }, + ], + 'title': 'Has retirement plan?', + 'type': 'string', + 'x-jsf-presentation': { + inputType: 'radio', + }, + }, + declare_amount: { + 'oneOf': [ + { + const: 'yes', + title: 'Yes', + }, + { + const: 'no', + title: 'No', + }, + ], + 'title': 'Declare planned retirement amount?', + 'type': 'string', + 'default': 'yes', + 'x-jsf-presentation': { + inputType: 'radio', + }, + }, + retirement_plan: { + 'allOf': [ + { + if: { + properties: { + create_plan: { + const: 'yes', + }, + }, + required: ['create_plan'], + }, + then: {}, + else: { + properties: { + planned_contributions: false, + }, + }, + }, + ], + 'type': 'object', + 'title': 'Retirement plan', + 'properties': { + plan_name: { + type: 'string', + title: 'Plan name', + }, + year: { + type: 'number', + title: 'Year', + default: 2025, + }, + amount: { + type: 'number', + title: 'Planned amount', + }, + create_plan: { + 'type': 'string', + 'title': 'Create plan?', + 'oneOf': [ + { + const: 'yes', + title: 'Yes', + }, + { + const: 'no', + title: 'No', + }, + ], + 'default': 'yes', + 'x-jsf-presentation': { + inputType: 'radio', + }, + }, + planned_contributions: { + 'type': 'object', + 'title': 'Planned contributions', + 'properties': { + months: { + 'default': ['january', 'february'], + 'items': { + anyOf: [ + { + const: 'january', + title: 'January', + }, + { + const: 'february', + title: 'February', + }, + { + const: 'march', + title: 'March', + }, + { + const: 'april', + title: 'April', + }, + { + const: 'may', + title: 'May', + }, + { + const: 'june', + title: 'June', + }, + ], + }, + 'title': 'Select the months when you\'ll contribute', + 'type': 'array', + 'x-jsf-presentation': { + inputType: 'checkbox', + }, + }, + }, + 'x-jsf-presentation': { + inputType: 'fieldset', + }, + }, + }, + 'required': ['plan_name', 'year'], + 'x-jsf-presentation': { + inputType: 'fieldset', + }, + }, + }, + 'required': ['benefits_package', 'has_retirement_plan'], + 'title': 'Perks', + 'type': 'object', + 'x-jsf-presentation': { + inputType: 'fieldset', + }, + }, + total_contributions: { + 'title': 'Total contributions', + 'description': 'The total contributions for the retirement plan', + 'type': 'number', + 'x-jsf-presentation': { + inputType: 'number', + }, + 'x-jsf-logic-computedAttrs': { + const: 'total_contributions', + default: 'total_contributions', + description: 'You will contribute {{total_contributions}} times this year', + }, + }, + }, + 'allOf': [ + { + if: { + properties: { + perks: { + properties: { + declare_amount: { + const: 'no', + }, + }, + required: ['declare_amount'], + }, + }, + required: ['perks'], + }, + then: { + properties: { + perks: { + properties: { + retirement_plan: { + properties: { + amount: false, + }, + }, + }, + }, + }, + }, + }, + { + if: { + properties: { + perks: { + properties: { + has_retirement_plan: { + const: 'yes', + }, + }, + required: ['has_retirement_plan'], + }, + }, + required: ['perks'], + }, + then: {}, + else: { + properties: { + perks: { + properties: { + retirement_plan: false, + declare_amount: false, + }, + }, + }, + }, + }, + { + if: { + properties: { + perks: { + properties: { + has_retirement_plan: { + const: 'yes', + }, + declare_amount: { + const: 'yes', + }, + }, + required: ['has_retirement_plan', 'declare_amount'], + }, + }, + required: ['perks'], + }, + then: { + properties: { + perks: { + properties: { + retirement_plan: { + required: ['amount'], + }, + }, + }, + }, + }, + }, + ], + 'x-jsf-logic': { + computedValues: { + total_contributions: { + rule: { + if: [ + { + and: [ + { + '===': [ + { + var: 'perks.has_retirement_plan', + }, + 'yes', + ], + }, + { + '===': [ + { + var: 'perks.retirement_plan.create_plan', + }, + 'yes', + ], + }, + ], + }, + { + '+': [ + { + if: [ + { + in: [ + 'january', + { + var: 'perks.retirement_plan.planned_contributions.months', + }, + ], + }, + 1, + 0, + ], + }, + { + if: [ + { + in: [ + 'february', + { + var: 'perks.retirement_plan.planned_contributions.months', + }, + ], + }, + 1, + 0, + ], + }, + { + if: [ + { + in: [ + 'march', + { + var: 'perks.retirement_plan.planned_contributions.months', + }, + ], + }, + 1, + 0, + ], + }, + { + if: [ + { + in: [ + 'april', + { + var: 'perks.retirement_plan.planned_contributions.months', + }, + ], + }, + 1, + 0, + ], + }, + { + if: [ + { + in: [ + 'may', + { + var: 'perks.retirement_plan.planned_contributions.months', + }, + ], + }, + 1, + 0, + ], + }, + { + if: [ + { + in: [ + 'june', + { + var: 'perks.retirement_plan.planned_contributions.months', + }, + ], + }, + 1, + 0, + ], + }, + ], + }, + 0, + ], + }, + }, + }, + }, + } + + it('retirement_plan fieldset is hidden when no values are provided', () => { + const form = createHeadlessForm( + schemaWithNestedFieldsetsConditionals, + {}, + ) + + expect(getField(form.fields, 'perks', 'retirement_plan')?.isVisible).toBe(false) + + const errors = form.handleValidation({ perks: {} }) + + expect(errors.formErrors).toEqual({ + perks: { + benefits_package: 'Required field', + has_retirement_plan: 'Required field', + }, + }) + expect(getField(form.fields, 'perks', 'retirement_plan')?.isVisible).toBe(false) + }) + + it('submits without retirement_plan when user selects \'no\' for has_retirement_plan', () => { + const form = createHeadlessForm( + schemaWithNestedFieldsetsConditionals, + {}, + ) + + const errors = form.handleValidation({ perks: { benefits_package: 'basic', has_retirement_plan: 'no' } }) + + expect(errors.formErrors).toBeUndefined() + expect(getField(form.fields, 'perks', 'retirement_plan')?.isVisible).toBe(false) + }) + + it('retirement_plan fieldset is visible when user selects \'yes\' for has_retirement_plan', () => { + const form = createHeadlessForm( + schemaWithNestedFieldsetsConditionals, + {}, + ) + + const errors = form.handleValidation({ + perks: { + benefits_package: 'basic', + has_retirement_plan: 'yes', + declare_amount: 'yes', + retirement_plan: { plan_name: 'test', year: 2025 }, + }, + }) + + expect(errors.formErrors).toEqual({ + perks: { + retirement_plan: { + amount: 'Required field', + }, + }, + }) + expect(getField(form.fields, 'perks', 'retirement_plan')?.isVisible).toBe(true) + expect(getField(form.fields, 'perks', 'declare_amount')?.isVisible).toBe(true) + expect(getField(form.fields, 'perks', 'declare_amount')?.default).toBe('yes') + expect(getField(form.fields, 'perks', 'retirement_plan', 'amount')?.isVisible).toBe(true) + }) + + it('retirement_plan\'s amount field is hidden when user selects \'no\' for declare_amount', () => { + const form = createHeadlessForm( + schemaWithNestedFieldsetsConditionals, + {}, + ) + + const errors = form.handleValidation({ + perks: { + benefits_package: 'basic', + has_retirement_plan: 'yes', + declare_amount: 'no', + retirement_plan: { plan_name: 'test', year: 2025 }, + }, + }) + + expect(errors.formErrors).toBeUndefined() + expect(getField(form.fields, 'perks', 'retirement_plan')?.isVisible).toBe(true) + expect(getField(form.fields, 'perks', 'declare_amount')?.isVisible).toBe(true) + expect(getField(form.fields, 'perks', 'retirement_plan', 'amount')?.isVisible).toBe(false) + }) + + it('submits with valid retirement_plan', () => { + const form = createHeadlessForm( + schemaWithNestedFieldsetsConditionals, + {}, + ) + + const errors = form.handleValidation({ + perks: { + benefits_package: 'plus', + has_retirement_plan: 'yes', + retirement_plan: { plan_name: 'test', year: 2025, amount: 1000 }, + }, + }) + + expect(errors.formErrors).toBeUndefined() + }) + }) }) }) diff --git a/test/json-schema-test-suite/failed-json-schema-test-suite.json b/test/json-schema-test-suite/failed-json-schema-test-suite.json index af083cece..e4155abdb 100644 --- a/test/json-schema-test-suite/failed-json-schema-test-suite.json +++ b/test/json-schema-test-suite/failed-json-schema-test-suite.json @@ -1,11 +1,5 @@ { "JSON Schema Test Suite": { - "additionalProperties being false does not allow other properties": [ - "an additional property is invalid" - ], - "non-ASCII pattern with additionalProperties": [ - "not matching the pattern is invalid" - ], "additionalProperties with schema": [ "an additional invalid property is invalid" ], @@ -18,11 +12,6 @@ "additionalProperties with propertyNames": [ "Valid against propertyNames, but not additionalProperties" ], - "dependentSchemas with additionalProperties": [ - "additionalProperties doesn't consider dependentSchemas", - "additionalProperties can't see bar", - "additionalProperties can't see bar even when foo2 is present" - ], "Location-independent identifier": [ "mismatch" ], @@ -230,7 +219,6 @@ "object with any properties is invalid" ], "root pointer ref": [ - "mismatch", "recursive mismatch" ], "relative pointer ref to object": [ diff --git a/test/v0-baseline-test-results.json b/test/v0-baseline-test-results.json index e6a8e4d5c..5b73818d1 100644 --- a/test/v0-baseline-test-results.json +++ b/test/v0-baseline-test-results.json @@ -1 +1 @@ -{"numFailedTestSuites":8,"numFailedTests":189,"numPassedTestSuites":1,"numPassedTests":52,"numPendingTestSuites":0,"numPendingTests":1,"numRuntimeErrorTestSuites":3,"numTodoTests":0,"numTotalTestSuites":9,"numTotalTests":242,"openHandles":[],"snapshot":{"added":0,"didUpdate":false,"failure":true,"filesAdded":0,"filesRemoved":0,"filesRemovedList":[],"filesUnmatched":1,"filesUpdated":0,"matched":0,"total":1,"unchecked":0,"uncheckedKeysByFile":[],"unmatched":1,"updated":0},"startTime":1741605289540,"success":false,"testResults":[{"assertionResults":[{"ancestorTitles":["convertDiskSizeFromTo()"],"duration":9,"failureDetails":[],"failureMessages":[],"fullName":"convertDiskSizeFromTo() should convert bytes to KB","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should convert bytes to KB"},{"ancestorTitles":["convertDiskSizeFromTo()"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"convertDiskSizeFromTo() should convert bytes to MB","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should convert bytes to MB"},{"ancestorTitles":["convertDiskSizeFromTo()"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"convertDiskSizeFromTo() should convert KB to MB","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should convert KB to MB"},{"ancestorTitles":["convertDiskSizeFromTo()"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"convertDiskSizeFromTo() should convert KB to Bytes","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should convert KB to Bytes"},{"ancestorTitles":["convertDiskSizeFromTo()"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"convertDiskSizeFromTo() should convert MB to KB","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should convert MB to KB"},{"ancestorTitles":["convertDiskSizeFromTo()"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"convertDiskSizeFromTo() should convert MB to KB","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should convert MB to KB"}],"endTime":1741605290295,"message":"","name":"/Users/luka.dornhecker/code/json-schema-form/src/tests/utils.test.jsx","startTime":1741605290100,"status":"passed","summary":""},{"assertionResults":[],"coverage":{},"endTime":1741605291186,"message":" \u001b[1m● \u001b[22mTest suite failed to run\n\n Cannot find module '@/internals/checkIfConditionMatches' from '../src/tests/checkIfConditionMatches.test.js'\n\n \u001b[0m\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 1 |\u001b[39m \u001b[36mimport\u001b[39m { checkIfConditionMatchesProperties } \u001b[36mfrom\u001b[39m \u001b[32m'@/internals/checkIfConditionMatches'\u001b[39m\u001b[33m;\u001b[39m\n \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\n \u001b[90m 2 |\u001b[39m\n \u001b[90m 3 |\u001b[39m describe(\u001b[32m'checkIfConditionMatchesProperties()'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\n \u001b[90m 4 |\u001b[39m it(\u001b[32m'True if is always going to be true'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[0m\n\n \u001b[2mat Resolver._throwModNotFoundError (\u001b[22mnode_modules/.pnpm/jest-resolve@29.7.0/node_modules/jest-resolve/build/resolver.js\u001b[2m:427:11)\u001b[22m\n \u001b[2mat Object.require (\u001b[22m\u001b[0m\u001b[36m../src/tests/checkIfConditionMatches.test.js\u001b[39m\u001b[0m\u001b[2m:1:1)\u001b[22m\n","name":"/Users/luka.dornhecker/code/json-schema-form/src/tests/checkIfConditionMatches.test.js","startTime":1741605291186,"status":"failed","summary":""},{"assertionResults":[],"coverage":{},"endTime":1741605291186,"message":" \u001b[1m● \u001b[22mTest suite failed to run\n\n Cannot find module '@/modify' from '../src/tests/modify.test.js'\n\n \u001b[0m\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 1 |\u001b[39m \u001b[36mimport\u001b[39m { modify } \u001b[36mfrom\u001b[39m \u001b[32m'@/modify'\u001b[39m\u001b[33m;\u001b[39m\n \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\n \u001b[90m 2 |\u001b[39m\n \u001b[90m 3 |\u001b[39m \u001b[36mconst\u001b[39m schemaPet \u001b[33m=\u001b[39m {\n \u001b[90m 4 |\u001b[39m type\u001b[33m:\u001b[39m \u001b[32m'object'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\n\n \u001b[2mat Resolver._throwModNotFoundError (\u001b[22mnode_modules/.pnpm/jest-resolve@29.7.0/node_modules/jest-resolve/build/resolver.js\u001b[2m:427:11)\u001b[22m\n \u001b[2mat Object.require (\u001b[22m\u001b[0m\u001b[36m../src/tests/modify.test.js\u001b[39m\u001b[0m\u001b[2m:1:1)\u001b[22m\n","name":"/Users/luka.dornhecker/code/json-schema-form/src/tests/modify.test.js","startTime":1741605291186,"status":"failed","summary":""},{"assertionResults":[{"ancestorTitles":["validations: const"],"duration":9,"failureDetails":[{"matcherResult":{"actual":{"ten_only":"The only accepted value is 10"},"expected":{"ten_only":"The only accepted value is 10."},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"ten_only\": \"The only accepted value is 10.\",\u001b[39m\n\u001b[31m+ \"ten_only\": \"The only accepted value is 10\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"ten_only\": \"The only accepted value is 10.\",\u001b[39m\n\u001b[31m+ \"ten_only\": \"The only accepted value is 10\",\u001b[39m\n\u001b[2m }\u001b[22m\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/const.test.js:21:20)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"validations: const Should work for number","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"failed","title":"Should work for number"},{"ancestorTitles":["validations: const"],"duration":1,"failureDetails":[{"matcherResult":{"actual":{"zero_only":"The only accepted value is 0"},"expected":{"zero_only":"The only accepted value is 0."},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"zero_only\": \"The only accepted value is 0.\",\u001b[39m\n\u001b[31m+ \"zero_only\": \"The only accepted value is 0\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"zero_only\": \"The only accepted value is 0.\",\u001b[39m\n\u001b[31m+ \"zero_only\": \"The only accepted value is 0\",\u001b[39m\n\u001b[2m }\u001b[22m\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/const.test.js:49:20)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"validations: const Should work for when the number is 0","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"failed","title":"Should work for when the number is 0"},{"ancestorTitles":["validations: const"],"duration":11,"failureDetails":[{"matcherResult":{"actual":{"hello_only":"The only accepted value is \"hello\""},"expected":{"hello_only":"The only accepted value is hello."},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"hello_only\": \"The only accepted value is hello.\",\u001b[39m\n\u001b[31m+ \"hello_only\": \"The only accepted value is \\\"hello\\\"\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"hello_only\": \"The only accepted value is hello.\",\u001b[39m\n\u001b[31m+ \"hello_only\": \"The only accepted value is \\\"hello\\\"\",\u001b[39m\n\u001b[2m }\u001b[22m\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/const.test.js:77:20)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"validations: const Should work for text","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"failed","title":"Should work for text"},{"ancestorTitles":["validations: const"],"duration":1,"failureDetails":[{"matcherResult":{"actual":{"then":{"amount":"Required field"}},"expected":{"amount":"Required field"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 0\u001b[39m\n\u001b[31m+ Received + 2\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[31m+ \"then\": Object {\u001b[39m\n\u001b[2m \"amount\": \"Required field\",\u001b[22m\n\u001b[31m+ },\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 0\u001b[39m\n\u001b[31m+ Received + 2\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[31m+ \"then\": Object {\u001b[39m\n\u001b[2m \"amount\": \"Required field\",\u001b[22m\n\u001b[31m+ },\u001b[39m\n\u001b[2m }\u001b[22m\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/const.test.js:129:20)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"validations: const Should work for a conditionally applied const","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"Should work for a conditionally applied const"},{"ancestorTitles":["validations: const"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"validations: const Should show the custom error message","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"Should show the custom error message"},{"ancestorTitles":["validations: const"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"const\": 10,\u001b[22m\n\u001b[2m \"default\": 10,\u001b[22m\n\u001b[32m- \"forcedValue\": 10,\u001b[39m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"const\": 10,\u001b[22m\n\u001b[2m \"default\": 10,\u001b[22m\n\u001b[32m- \"forcedValue\": 10,\u001b[39m\n\u001b[2m }\u001b[22m\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/const.test.js:183:23)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"validations: const Should have value attribute for when const & default is present","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"failed","title":"Should have value attribute for when const & default is present"},{"ancestorTitles":["const/default with forced values"],"duration":1,"failureDetails":[{"matcherResult":{"actual":{"zero_only":"The only accepted value is 0"},"expected":{"zero_only":"The only accepted value is 0."},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"zero_only\": \"The only accepted value is 0.\",\u001b[39m\n\u001b[31m+ \"zero_only\": \"The only accepted value is 0\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"zero_only\": \"The only accepted value is 0.\",\u001b[39m\n\u001b[31m+ \"zero_only\": \"The only accepted value is 0\",\u001b[39m\n\u001b[2m }\u001b[22m\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/const.test.js:209:20)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"const/default with forced values Should work for when the number is 0","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"failed","title":"Should work for when the number is 0"},{"ancestorTitles":["const/default with forced values"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"ten_only":"The only accepted value is 10"},"expected":{"ten_only":"The only accepted value is 10."},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"ten_only\": \"The only accepted value is 10.\",\u001b[39m\n\u001b[31m+ \"ten_only\": \"The only accepted value is 10\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"ten_only\": \"The only accepted value is 10.\",\u001b[39m\n\u001b[31m+ \"ten_only\": \"The only accepted value is 10\",\u001b[39m\n\u001b[2m }\u001b[22m\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/const.test.js:244:20)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"const/default with forced values Should work for number","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"failed","title":"Should work for number"},{"ancestorTitles":["const/default with forced values"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"const/default with forced values do not set a forced value if const and default do not equal","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"do not set a forced value if const and default do not equal"},{"ancestorTitles":["const/default with forced values"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"number":"The only accepted value is 300"},"expected":{"number":"The only accepted value is 300."},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"number\": \"The only accepted value is 300.\",\u001b[39m\n\u001b[31m+ \"number\": \"The only accepted value is 300\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"number\": \"The only accepted value is 300.\",\u001b[39m\n\u001b[31m+ \"number\": \"The only accepted value is 300\",\u001b[39m\n\u001b[2m }\u001b[22m\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/const.test.js:300:20)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"const/default with forced values Should work numbers with non-standard input types","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"failed","title":"Should work numbers with non-standard input types"},{"ancestorTitles":["OneOf const"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"number":"Must match exactly one of the provided schemas"},"expected":{"number":"The option 3 is not valid."},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"number\": \"The option 3 is not valid.\",\u001b[39m\n\u001b[31m+ \"number\": \"Must match exactly one of the provided schemas\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"number\": \"The option 3 is not valid.\",\u001b[39m\n\u001b[31m+ \"number\": \"Must match exactly one of the provided schemas\",\u001b[39m\n\u001b[2m }\u001b[22m\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/const.test.js:334:20)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"OneOf const Validates numbers or strings correctly","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"failed","title":"Validates numbers or strings correctly"},{"ancestorTitles":["OneOf const"],"duration":1,"failureDetails":[{"matcherResult":{"actual":{"number":"Must match exactly one of the provided schemas"},"expected":{"number":"The option 3 is not valid."},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"number\": \"The option 3 is not valid.\",\u001b[39m\n\u001b[31m+ \"number\": \"Must match exactly one of the provided schemas\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"number\": \"The option 3 is not valid.\",\u001b[39m\n\u001b[31m+ \"number\": \"Must match exactly one of the provided schemas\",\u001b[39m\n\u001b[2m }\u001b[22m\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/const.test.js:368:20)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"OneOf const Validates numbers or strings when type is an array with null","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"failed","title":"Validates numbers or strings when type is an array with null"}],"endTime":1741605290393,"message":"\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mvalidations: const › Should work for number\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"ten_only\": \"The only accepted value is 10.\",\u001b[39m\n \u001b[31m+ \"ten_only\": \"The only accepted value is 10\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 19 |\u001b[39m \u001b[90m// Expectation: To fail with error \"The only accepted value is 10.\"\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 20 |\u001b[39m expect(handleValidation({ ten_only\u001b[33m:\u001b[39m \u001b[36mnull\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 21 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 22 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 23 |\u001b[39m it(\u001b[32m'Should work for when the number is 0'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 24 |\u001b[39m \u001b[36mconst\u001b[39m { handleValidation } \u001b[33m=\u001b[39m createHeadlessForm(\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/const.test.js\u001b[39m\u001b[0m\u001b[2m:21:20)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mvalidations: const › Should work for when the number is 0\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"zero_only\": \"The only accepted value is 0.\",\u001b[39m\n \u001b[31m+ \"zero_only\": \"The only accepted value is 0\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 47 |\u001b[39m }\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 48 |\u001b[39m }\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 49 |\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 50 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 51 |\u001b[39m expect(handleValidation({})\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 52 |\u001b[39m expect(handleValidation({ hello_only\u001b[33m:\u001b[39m \u001b[32m'what'\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/const.test.js\u001b[39m\u001b[0m\u001b[2m:49:20)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mvalidations: const › Should work for text\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"hello_only\": \"The only accepted value is hello.\",\u001b[39m\n \u001b[31m+ \"hello_only\": \"The only accepted value is \\\"hello\\\"\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 75 |\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 76 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 77 |\u001b[39m expect(handleValidation({})\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 78 |\u001b[39m expect(handleValidation({ answer\u001b[33m:\u001b[39m \u001b[32m'no'\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 79 |\u001b[39m expect(handleValidation({ answer\u001b[33m:\u001b[39m \u001b[32m'yes'\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({ amount\u001b[33m:\u001b[39m \u001b[32m'Required field'\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 80 |\u001b[39m expect(handleValidation({ answer\u001b[33m:\u001b[39m \u001b[32m'yes'\u001b[39m\u001b[33m,\u001b[39m amount\u001b[33m:\u001b[39m \u001b[35m1\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/const.test.js\u001b[39m\u001b[0m\u001b[2m:77:20)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mvalidations: const › Should work for a conditionally applied const\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 0\u001b[39m\n \u001b[31m+ Received + 2\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[31m+ \"then\": Object {\u001b[39m\n \u001b[2m \"amount\": \"Required field\",\u001b[22m\n \u001b[31m+ },\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 127 |\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 128 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 129 |\u001b[39m expect(handleValidation({})\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 130 |\u001b[39m expect(handleValidation({ zero_only\u001b[33m:\u001b[39m \u001b[35m1\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m 131 |\u001b[39m zero_only\u001b[33m:\u001b[39m \u001b[32m'The only accepted value is 0.'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 132 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/const.test.js\u001b[39m\u001b[0m\u001b[2m:129:20)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mvalidations: const › Should have value attribute for when const & default is present\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"const\": 10,\u001b[22m\n \u001b[2m \"default\": 10,\u001b[22m\n \u001b[32m- \"forcedValue\": 10,\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 181 |\u001b[39m inputType\u001b[33m:\u001b[39m \u001b[32m'money'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 182 |\u001b[39m }\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 183 |\u001b[39m }\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 184 |\u001b[39m }\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 185 |\u001b[39m required\u001b[33m:\u001b[39m [\u001b[32m'number'\u001b[39m]\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 186 |\u001b[39m }\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/const.test.js\u001b[39m\u001b[0m\u001b[2m:183:23)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mconst/default with forced values › Should work for when the number is 0\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"zero_only\": \"The only accepted value is 0.\",\u001b[39m\n \u001b[31m+ \"zero_only\": \"The only accepted value is 0\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 207 |\u001b[39m expect(handleValidation({})\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 208 |\u001b[39m expect(handleValidation({ number\u001b[33m:\u001b[39m \u001b[35m3\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 209 |\u001b[39m number\u001b[33m:\u001b[39m \u001b[32m'The option 3 is not valid.'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 210 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 211 |\u001b[39m expect(handleValidation({ number\u001b[33m:\u001b[39m \u001b[35m2\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 212 |\u001b[39m expect(handleValidation({ number\u001b[33m:\u001b[39m \u001b[32m'2'\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/const.test.js\u001b[39m\u001b[0m\u001b[2m:209:20)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mconst/default with forced values › Should work for number\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"ten_only\": \"The only accepted value is 10.\",\u001b[39m\n \u001b[31m+ \"ten_only\": \"The only accepted value is 10\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/const.test.js\u001b[39m\u001b[0m\u001b[2m:244:20)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mconst/default with forced values › Should work numbers with non-standard input types\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"number\": \"The only accepted value is 300.\",\u001b[39m\n \u001b[31m+ \"number\": \"The only accepted value is 300\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/const.test.js\u001b[39m\u001b[0m\u001b[2m:300:20)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mOneOf const › Validates numbers or strings correctly\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"number\": \"The option 3 is not valid.\",\u001b[39m\n \u001b[31m+ \"number\": \"Must match exactly one of the provided schemas\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/const.test.js\u001b[39m\u001b[0m\u001b[2m:334:20)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mOneOf const › Validates numbers or strings when type is an array with null\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"number\": \"The option 3 is not valid.\",\u001b[39m\n \u001b[31m+ \"number\": \"Must match exactly one of the provided schemas\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/const.test.js\u001b[39m\u001b[0m\u001b[2m:368:20)\u001b[22m\u001b[2m\u001b[22m\n","name":"/Users/luka.dornhecker/code/json-schema-form/src/tests/const.test.js","startTime":1741605290126,"status":"failed","summary":""},{"assertionResults":[],"coverage":{},"endTime":1741605291186,"message":" \u001b[1m● \u001b[22mTest suite failed to run\n\n Cannot find module '@/helpers' from '../src/tests/internals.helpers.test.js'\n\n \u001b[0m \u001b[90m 1 |\u001b[39m \u001b[36mimport\u001b[39m \u001b[33m*\u001b[39m \u001b[36mas\u001b[39m \u001b[33mYup\u001b[39m \u001b[36mfrom\u001b[39m \u001b[32m'yup'\u001b[39m\u001b[33m;\u001b[39m\n \u001b[90m 2 |\u001b[39m\n \u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 3 |\u001b[39m \u001b[36mimport\u001b[39m { yupToFormErrors } \u001b[36mfrom\u001b[39m \u001b[32m'@/helpers'\u001b[39m\u001b[33m;\u001b[39m\n \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\n \u001b[90m 4 |\u001b[39m \u001b[36mimport\u001b[39m { getFieldDescription\u001b[33m,\u001b[39m pickXKey } \u001b[36mfrom\u001b[39m \u001b[32m'@/internals/helpers'\u001b[39m\u001b[33m;\u001b[39m\n \u001b[90m 5 |\u001b[39m\n \u001b[90m 6 |\u001b[39m describe(\u001b[32m'getFieldDescription()'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[0m\n\n \u001b[2mat Resolver._throwModNotFoundError (\u001b[22mnode_modules/.pnpm/jest-resolve@29.7.0/node_modules/jest-resolve/build/resolver.js\u001b[2m:427:11)\u001b[22m\n \u001b[2mat Object.require (\u001b[22m\u001b[0m\u001b[36m../src/tests/internals.helpers.test.js\u001b[39m\u001b[0m\u001b[2m:3:1)\u001b[22m\n","name":"/Users/luka.dornhecker/code/json-schema-form/src/tests/internals.helpers.test.js","startTime":1741605291186,"status":"failed","summary":""},{"assertionResults":[{"ancestorTitles":["Conditional attributes updated"],"duration":18,"failureDetails":[{"matcherResult":{"actual":{"then":{"parent_sibling":"Required field"}},"expected":{"parent_sibling":"Required field"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 0\u001b[39m\n\u001b[31m+ Received + 2\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[31m+ \"then\": Object {\u001b[39m\n\u001b[2m \"parent_sibling\": \"Required field\",\u001b[22m\n\u001b[31m+ },\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 0\u001b[39m\n\u001b[31m+ Received + 2\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[31m+ \"then\": Object {\u001b[39m\n\u001b[2m \"parent_sibling\": \"Required field\",\u001b[22m\n\u001b[31m+ },\u001b[39m\n\u001b[2m }\u001b[22m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/conditions.test.js:48:71)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"Conditional attributes updated Should allow check of a nested property in a conditional","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"failed","title":"Should allow check of a nested property in a conditional"},{"ancestorTitles":["Conditional attributes updated"],"duration":1,"failureDetails":[{"matcherResult":{"actual":{"then":{"hours":"The only accepted value is 8"}},"expected":{"hours":"The only accepted value is 8."},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 3\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"hours\": \"The only accepted value is 8.\",\u001b[39m\n\u001b[31m+ \"then\": Object {\u001b[39m\n\u001b[31m+ \"hours\": \"The only accepted value is 8\",\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 3\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"hours\": \"The only accepted value is 8.\",\u001b[39m\n\u001b[31m+ \"then\": Object {\u001b[39m\n\u001b[31m+ \"hours\": \"The only accepted value is 8\",\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[2m }\u001b[22m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/conditions.test.js:91:76)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"Conditional attributes updated Update basic case with const, default, maximum","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"failed","title":"Update basic case with const, default, maximum"},{"ancestorTitles":["Conditional attributes updated"],"duration":0,"failureDetails":[{"matcherResult":{"expected":"We recommend 8 hours.","message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32m\"We recommend 8 hours.\"\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toBe","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32m\"We recommend 8 hours.\"\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toBe (/Users/luka.dornhecker/code/json-schema-form/src/tests/conditions.test.js:143:35)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"Conditional attributes updated Update a new attribute (eg description)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"Update a new attribute (eg description)"},{"ancestorTitles":["Conditional attributes updated"],"duration":1,"failureDetails":[{"matcherResult":{"actual":"Any value works.","expected":"We recommend 8 hours.","message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32m\"\u001b[7mWe recommend 8 hour\u001b[27ms.\"\u001b[39m\nReceived: \u001b[31m\"\u001b[7mAny value work\u001b[27ms.\"\u001b[39m","name":"toBe","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32m\"\u001b[7mWe recommend 8 hour\u001b[27ms.\"\u001b[39m\nReceived: \u001b[31m\"\u001b[7mAny value work\u001b[27ms.\"\u001b[39m\n at Object.toBe (/Users/luka.dornhecker/code/json-schema-form/src/tests/conditions.test.js:188:35)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"Conditional attributes updated Update an existing attribute (eg description)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"Update an existing attribute (eg description)"},{"ancestorTitles":["Conditional attributes updated"],"duration":0,"failureDetails":[{"matcherResult":{"expected":"info","message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32m\"info\"\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toBe","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32m\"info\"\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toBe (/Users/luka.dornhecker/code/json-schema-form/src/tests/conditions.test.js:234:32)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"Conditional attributes updated Update a nested attribute","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"failed","title":"Update a nested attribute"},{"ancestorTitles":["Conditional attributes updated"],"duration":0,"failureDetails":[{"matcherResult":{"actual":true,"expected":false,"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m","name":"toBe","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m\n at Object.toBe (/Users/luka.dornhecker/code/json-schema-form/src/tests/conditions.test.js:281:33)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"Conditional attributes updated Keeps existing attributes in matches that dont change the attr","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"failed","title":"Keeps existing attributes in matches that dont change the attr"},{"ancestorTitles":["Conditional attributes updated"],"duration":2,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 6\u001b[39m\n\u001b[31m+ Received + 2\u001b[39m\n\n\u001b[33m@@ -1,9 +1,7 @@\u001b[39m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"calculateConditionalProperties\": Any,\u001b[39m\n\u001b[32m- \"computedAttributes\": Object {},\u001b[39m\n\u001b[32m- \"inputType\": \"radio\",\u001b[39m\n\u001b[31m+ \"inputType\": \"text\",\u001b[39m\n\u001b[2m \"isVisible\": true,\u001b[22m\n\u001b[2m \"jsonType\": \"string\",\u001b[22m\n\u001b[2m \"label\": \"Salary period\",\u001b[22m\n\u001b[2m \"name\": \"salary_period\",\u001b[22m\n\u001b[2m \"options\": Array [\u001b[22m\n\u001b[33m@@ -15,9 +13,7 @@\u001b[39m\n\u001b[2m \"label\": \"Monthly\",\u001b[22m\n\u001b[2m \"value\": \"monthly\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[32m- \"scopedJsonSchema\": Any,\u001b[39m\n\u001b[32m- \"type\": \"radio\",\u001b[39m\n\u001b[31m+ \"type\": \"text\",\u001b[39m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 6\u001b[39m\n\u001b[31m+ Received + 2\u001b[39m\n\n\u001b[33m@@ -1,9 +1,7 @@\u001b[39m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"calculateConditionalProperties\": Any,\u001b[39m\n\u001b[32m- \"computedAttributes\": Object {},\u001b[39m\n\u001b[32m- \"inputType\": \"radio\",\u001b[39m\n\u001b[31m+ \"inputType\": \"text\",\u001b[39m\n\u001b[2m \"isVisible\": true,\u001b[22m\n\u001b[2m \"jsonType\": \"string\",\u001b[22m\n\u001b[2m \"label\": \"Salary period\",\u001b[22m\n\u001b[2m \"name\": \"salary_period\",\u001b[22m\n\u001b[2m \"options\": Array [\u001b[22m\n\u001b[33m@@ -15,9 +13,7 @@\u001b[39m\n\u001b[2m \"label\": \"Monthly\",\u001b[22m\n\u001b[2m \"value\": \"monthly\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[32m- \"scopedJsonSchema\": Any,\u001b[39m\n\u001b[32m- \"type\": \"radio\",\u001b[39m\n\u001b[31m+ \"type\": \"text\",\u001b[39m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/conditions.test.js:337:23)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"Conditional attributes updated Keeps internal attributes (dynamicInternalJsfAttrs)","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"failed","title":"Keeps internal attributes (dynamicInternalJsfAttrs)"},{"ancestorTitles":["Conditional attributes updated"],"duration":0,"failureDetails":[{"matcherResult":{"expected":"","message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32m\"\"\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toBe","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32m\"\"\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toBe (/Users/luka.dornhecker/code/json-schema-form/src/tests/conditions.test.js:406:33)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"Conditional attributes updated Keeps custom attributes (dynamicInternalJsfAttrs) (hotfix temporary)","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"failed","title":"Keeps custom attributes (dynamicInternalJsfAttrs) (hotfix temporary)"},{"ancestorTitles":["Conditional with a minimum value check"],"duration":1,"failureDetails":[{"matcherResult":{"actual":{"then":{"reason":"Required field"}},"expected":{"reason":"Required field"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 0\u001b[39m\n\u001b[31m+ Received + 2\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[31m+ \"then\": Object {\u001b[39m\n\u001b[2m \"reason\": \"Required field\",\u001b[22m\n\u001b[31m+ },\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 0\u001b[39m\n\u001b[31m+ Received + 2\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[31m+ \"then\": Object {\u001b[39m\n\u001b[2m \"reason\": \"Required field\",\u001b[22m\n\u001b[31m+ },\u001b[39m\n\u001b[2m }\u001b[22m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/conditions.test.js:476:59)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"Conditional with a minimum value check Should handle a maximum as a property field check","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"failed","title":"Should handle a maximum as a property field check"},{"ancestorTitles":["Conditional with literal booleans"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"name\": \"is_full_time\",\u001b[22m\n\u001b[32m- \"required\": true,\u001b[39m\n\u001b[31m+ \"required\": false,\u001b[39m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"name\": \"is_full_time\",\u001b[22m\n\u001b[32m- \"required\": true,\u001b[39m\n\u001b[31m+ \"required\": false,\u001b[39m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/conditions.test.js:507:23)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"Conditional with literal booleans handles true case","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"failed","title":"handles true case"},{"ancestorTitles":["Conditional with literal booleans"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"name\": \"salary\",\u001b[22m\n\u001b[32m- \"required\": true,\u001b[39m\n\u001b[31m+ \"required\": false,\u001b[39m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"name\": \"salary\",\u001b[22m\n\u001b[32m- \"required\": true,\u001b[39m\n\u001b[31m+ \"required\": false,\u001b[39m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/conditions.test.js:544:23)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"Conditional with literal booleans handles false case","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"failed","title":"handles false case"},{"ancestorTitles":["Conditional with anyOf"],"duration":0,"failureDetails":[{"matcherResult":{"actual":true,"expected":false,"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m","name":"toBe","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m\n at Object.toBe (/Users/luka.dornhecker/code/json-schema-form/src/tests/conditions.test.js:583:33)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"Conditional with anyOf handles true case","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"failed","title":"handles true case"},{"ancestorTitles":["Conditional with anyOf"],"duration":0,"failureDetails":[{"matcherResult":{"actual":true,"expected":false,"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m","name":"toBe","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m\n at Object.toBe (/Users/luka.dornhecker/code/json-schema-form/src/tests/conditions.test.js:593:33)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"Conditional with anyOf handles false case","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"failed","title":"handles false case"},{"ancestorTitles":["Conditionals - bugs and code-smells"],"duration":0,"failureDetails":[{"matcherResult":{"actual":true,"expected":false,"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m","name":"toBe","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m\n at Object.toBe (/Users/luka.dornhecker/code/json-schema-form/src/tests/conditions.test.js:651:36)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"Conditionals - bugs and code-smells Given values from hidden fields, it does not thrown an error (@bug)","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"failed","title":"Given values from hidden fields, it does not thrown an error (@bug)"},{"ancestorTitles":["Conditionals - bugs and code-smells"],"duration":1,"failureDetails":[{"matcherResult":{"actual":{"has_pet":"no","pet_name":"Max"},"expected":{"has_pet":"no","pet_name":null},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"has_pet\": \"no\",\u001b[22m\n\u001b[32m- \"pet_name\": null,\u001b[39m\n\u001b[31m+ \"pet_name\": \"Max\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"has_pet\": \"no\",\u001b[22m\n\u001b[32m- \"pet_name\": null,\u001b[39m\n\u001b[31m+ \"pet_name\": \"Max\",\u001b[39m\n\u001b[2m }\u001b[22m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/conditions.test.js:669:23)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"Conditionals - bugs and code-smells Given values from hidden fields, it mutates the values (@bug)","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"failed","title":"Given values from hidden fields, it mutates the values (@bug)"},{"ancestorTitles":["Conditionals - bugs and code-smells"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"then":{"field_c":"Must be greater or equal to 30"}},"expected":{"field_c":"Must be greater or equal to 10"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 3\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"field_c\": \"Must be greater or equal to 10\",\u001b[39m\n\u001b[31m+ \"then\": Object {\u001b[39m\n\u001b[31m+ \"field_c\": \"Must be greater or equal to 30\",\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 3\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"field_c\": \"Must be greater or equal to 10\",\u001b[39m\n\u001b[31m+ \"then\": Object {\u001b[39m\n\u001b[31m+ \"field_c\": \"Must be greater or equal to 30\",\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[2m }\u001b[22m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/conditions.test.js:710:35)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"Conditionals - bugs and code-smells Given multiple conditionals to the same field, it only applies the last one (@bug) - case 1","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"failed","title":"Given multiple conditionals to the same field, it only applies the last one (@bug) - case 1"},{"ancestorTitles":["Conditionals - bugs and code-smells"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"then":{"field_c":"Must be smaller or equal to 10"}},"expected":{"field_c":"Must be smaller or equal to 10"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 0\u001b[39m\n\u001b[31m+ Received + 2\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[31m+ \"then\": Object {\u001b[39m\n\u001b[2m \"field_c\": \"Must be smaller or equal to 10\",\u001b[22m\n\u001b[31m+ },\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 0\u001b[39m\n\u001b[31m+ Received + 2\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[31m+ \"then\": Object {\u001b[39m\n\u001b[2m \"field_c\": \"Must be smaller or equal to 10\",\u001b[22m\n\u001b[31m+ },\u001b[39m\n\u001b[2m }\u001b[22m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/conditions.test.js:748:36)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"Conditionals - bugs and code-smells Given multiple conditionals to the same field, it only applies the last one (@bug) - case 2","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"failed","title":"Given multiple conditionals to the same field, it only applies the last one (@bug) - case 2"}],"endTime":1741605290430,"message":"\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mConditional attributes updated › Should allow check of a nested property in a conditional\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 0\u001b[39m\n \u001b[31m+ Received + 2\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[31m+ \"then\": Object {\u001b[39m\n \u001b[2m \"parent_sibling\": \"Required field\",\u001b[22m\n \u001b[31m+ },\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 46 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 47 |\u001b[39m expect(handleValidation({ parent\u001b[33m:\u001b[39m { child\u001b[33m:\u001b[39m \u001b[32m'no'\u001b[39m } })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 48 |\u001b[39m expect(handleValidation({ parent\u001b[33m:\u001b[39m { child\u001b[33m:\u001b[39m \u001b[32m'yes'\u001b[39m } })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 49 |\u001b[39m parent_sibling\u001b[33m:\u001b[39m \u001b[32m'Required field'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 50 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 51 |\u001b[39m expect(handleValidation({ parent\u001b[33m:\u001b[39m { child\u001b[33m:\u001b[39m \u001b[32m'yes'\u001b[39m }\u001b[33m,\u001b[39m parent_sibling\u001b[33m:\u001b[39m \u001b[35m1\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/conditions.test.js\u001b[39m\u001b[0m\u001b[2m:48:71)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mConditional attributes updated › Update basic case with const, default, maximum\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 3\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"hours\": \"The only accepted value is 8.\",\u001b[39m\n \u001b[31m+ \"then\": Object {\u001b[39m\n \u001b[31m+ \"hours\": \"The only accepted value is 8\",\u001b[39m\n \u001b[31m+ },\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 89 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 90 |\u001b[39m \u001b[90m// Given \"Yes\" it applies \"const\" and \"default\"\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 91 |\u001b[39m expect(handleValidation({ is_full_time\u001b[33m:\u001b[39m \u001b[32m'yes'\u001b[39m\u001b[33m,\u001b[39m hours\u001b[33m:\u001b[39m \u001b[35m4\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 92 |\u001b[39m hours\u001b[33m:\u001b[39m \u001b[32m'The only accepted value is 8.'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 93 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 94 |\u001b[39m expect(fields[\u001b[35m1\u001b[39m])\u001b[33m.\u001b[39mtoMatchObject({ \u001b[36mconst\u001b[39m\u001b[33m:\u001b[39m \u001b[35m8\u001b[39m\u001b[33m,\u001b[39m \u001b[36mdefault\u001b[39m\u001b[33m:\u001b[39m \u001b[35m8\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/conditions.test.js\u001b[39m\u001b[0m\u001b[2m:91:76)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mConditional attributes updated › Update a new attribute (eg description)\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\n Expected: \u001b[32m\"We recommend 8 hours.\"\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 141 |\u001b[39m \u001b[90m// Given \"Yes\" it applies the conditional attribute\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 142 |\u001b[39m expect(handleValidation({ is_full_time\u001b[33m:\u001b[39m \u001b[32m'yes'\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 143 |\u001b[39m expect(fields[\u001b[35m1\u001b[39m]\u001b[33m.\u001b[39mdescription)\u001b[33m.\u001b[39mtoBe(\u001b[32m'We recommend 8 hours.'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 144 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 145 |\u001b[39m \u001b[90m// Changing to \"No\", removes the description\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 146 |\u001b[39m expect(handleValidation({ is_full_time\u001b[33m:\u001b[39m \u001b[32m'no'\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBe (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/conditions.test.js\u001b[39m\u001b[0m\u001b[2m:143:35)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mConditional attributes updated › Update an existing attribute (eg description)\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\n Expected: \u001b[32m\"\u001b[7mWe recommend 8 hour\u001b[27ms.\"\u001b[39m\n Received: \u001b[31m\"\u001b[7mAny value work\u001b[27ms.\"\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 186 |\u001b[39m \u001b[90m// Given \"Yes\" it applies the conditional attribute\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 187 |\u001b[39m expect(handleValidation({ is_full_time\u001b[33m:\u001b[39m \u001b[32m'yes'\u001b[39m\u001b[33m,\u001b[39m hours\u001b[33m:\u001b[39m \u001b[35m4\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 188 |\u001b[39m expect(fields[\u001b[35m1\u001b[39m]\u001b[33m.\u001b[39mdescription)\u001b[33m.\u001b[39mtoBe(\u001b[32m'We recommend 8 hours.'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 189 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 190 |\u001b[39m \u001b[90m// Changing to \"No\", it applies the base value again.\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 191 |\u001b[39m expect(handleValidation({ is_full_time\u001b[33m:\u001b[39m \u001b[32m'no'\u001b[39m\u001b[33m,\u001b[39m hours\u001b[33m:\u001b[39m \u001b[35m4\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBe (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/conditions.test.js\u001b[39m\u001b[0m\u001b[2m:188:35)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mConditional attributes updated › Update a nested attribute\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\n Expected: \u001b[32m\"info\"\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 232 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 233 |\u001b[39m \u001b[90m// By default the attribute is set the base value.\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 234 |\u001b[39m expect(fields[\u001b[35m1\u001b[39m]\u001b[33m.\u001b[39manything)\u001b[33m.\u001b[39mtoBe(\u001b[32m'info'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 235 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 236 |\u001b[39m \u001b[90m// Given \"Yes\" it applies the conditional attribute\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 237 |\u001b[39m expect(handleValidation({ is_full_time\u001b[33m:\u001b[39m \u001b[32m'yes'\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBe (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/conditions.test.js\u001b[39m\u001b[0m\u001b[2m:234:32)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mConditional attributes updated › Keeps existing attributes in matches that dont change the attr\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\n Expected: \u001b[32mfalse\u001b[39m\n Received: \u001b[31mtrue\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 279 |\u001b[39m \u001b[90m// By default the attribute is set the base value, even though the field is invisible.\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 280 |\u001b[39m expect(fields[\u001b[35m1\u001b[39m]\u001b[33m.\u001b[39mdescription)\u001b[33m.\u001b[39mtoBe(\u001b[32m'Any value works.'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 281 |\u001b[39m expect(fields[\u001b[35m1\u001b[39m]\u001b[33m.\u001b[39misVisible)\u001b[33m.\u001b[39mtoBe(\u001b[36mfalse\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 282 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 283 |\u001b[39m \u001b[90m// Given \"Yes\" it keeps the base value\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 284 |\u001b[39m expect(handleValidation({ is_full_time\u001b[33m:\u001b[39m \u001b[32m'yes'\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBe (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/conditions.test.js\u001b[39m\u001b[0m\u001b[2m:281:33)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mConditional attributes updated › Keeps internal attributes (dynamicInternalJsfAttrs)\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 6\u001b[39m\n \u001b[31m+ Received + 2\u001b[39m\n\n \u001b[33m@@ -1,9 +1,7 @@\u001b[39m\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"calculateConditionalProperties\": Any,\u001b[39m\n \u001b[32m- \"computedAttributes\": Object {},\u001b[39m\n \u001b[32m- \"inputType\": \"radio\",\u001b[39m\n \u001b[31m+ \"inputType\": \"text\",\u001b[39m\n \u001b[2m \"isVisible\": true,\u001b[22m\n \u001b[2m \"jsonType\": \"string\",\u001b[22m\n \u001b[2m \"label\": \"Salary period\",\u001b[22m\n \u001b[2m \"name\": \"salary_period\",\u001b[22m\n \u001b[2m \"options\": Array [\u001b[22m\n \u001b[33m@@ -15,9 +13,7 @@\u001b[39m\n \u001b[2m \"label\": \"Monthly\",\u001b[22m\n \u001b[2m \"value\": \"monthly\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m \"required\": false,\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[32m- \"scopedJsonSchema\": Any,\u001b[39m\n \u001b[32m- \"type\": \"radio\",\u001b[39m\n \u001b[31m+ \"type\": \"text\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 335 |\u001b[39m \u001b[90m// All the following attrs are never removed\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 336 |\u001b[39m \u001b[90m// during conditionals because they are core.\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 337 |\u001b[39m expect(fields[\u001b[35m1\u001b[39m])\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 338 |\u001b[39m name\u001b[33m:\u001b[39m \u001b[32m'salary_period'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 339 |\u001b[39m label\u001b[33m:\u001b[39m \u001b[32m'Salary period'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 340 |\u001b[39m required\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/conditions.test.js\u001b[39m\u001b[0m\u001b[2m:337:23)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mConditional attributes updated › Keeps custom attributes (dynamicInternalJsfAttrs) (hotfix temporary)\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\n Expected: \u001b[32m\"\"\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 404 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 405 |\u001b[39m \u001b[90m// It's there by default\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 406 |\u001b[39m expect(fields[\u001b[35m1\u001b[39m]\u001b[33m.\u001b[39m\u001b[33mComponent\u001b[39m)\u001b[33m.\u001b[39mtoBe(\u001b[32m''\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 407 |\u001b[39m expect(fields[\u001b[35m1\u001b[39m]\u001b[33m.\u001b[39mcalculateDynamicProperties)\u001b[33m.\u001b[39mtoEqual(expect\u001b[33m.\u001b[39many(\u001b[33mFunction\u001b[39m))\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 408 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 409 |\u001b[39m \u001b[90m// Given \"Yes\", it stays there too.\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBe (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/conditions.test.js\u001b[39m\u001b[0m\u001b[2m:406:33)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mConditional with a minimum value check › Should handle a maximum as a property field check\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 0\u001b[39m\n \u001b[31m+ Received + 2\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[31m+ \"then\": Object {\u001b[39m\n \u001b[2m \"reason\": \"Required field\",\u001b[22m\n \u001b[31m+ },\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 474 |\u001b[39m \u001b[36mconst\u001b[39m { handleValidation } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 475 |\u001b[39m expect(handleValidation({ salary\u001b[33m:\u001b[39m \u001b[35m120000\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 476 |\u001b[39m expect(handleValidation({ salary\u001b[33m:\u001b[39m \u001b[35m1000\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 477 |\u001b[39m reason\u001b[33m:\u001b[39m \u001b[32m'Required field'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 478 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 479 |\u001b[39m expect(handleValidation({ salary\u001b[33m:\u001b[39m \u001b[35m1000\u001b[39m\u001b[33m,\u001b[39m reason\u001b[33m:\u001b[39m \u001b[32m'reason_one'\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/conditions.test.js\u001b[39m\u001b[0m\u001b[2m:476:59)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mConditional with literal booleans › handles true case\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"name\": \"is_full_time\",\u001b[22m\n \u001b[32m- \"required\": true,\u001b[39m\n \u001b[31m+ \"required\": false,\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 505 |\u001b[39m handleValidation({})\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 506 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 507 |\u001b[39m expect(fields[\u001b[35m0\u001b[39m])\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 508 |\u001b[39m name\u001b[33m:\u001b[39m \u001b[32m'is_full_time'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 509 |\u001b[39m required\u001b[33m:\u001b[39m \u001b[36mtrue\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 510 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/conditions.test.js\u001b[39m\u001b[0m\u001b[2m:507:23)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mConditional with literal booleans › handles false case\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"name\": \"salary\",\u001b[22m\n \u001b[32m- \"required\": true,\u001b[39m\n \u001b[31m+ \"required\": false,\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 542 |\u001b[39m required\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 543 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 544 |\u001b[39m expect(fields[\u001b[35m1\u001b[39m])\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 545 |\u001b[39m name\u001b[33m:\u001b[39m \u001b[32m'salary'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 546 |\u001b[39m required\u001b[33m:\u001b[39m \u001b[36mtrue\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 547 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/conditions.test.js\u001b[39m\u001b[0m\u001b[2m:544:23)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mConditional with anyOf › handles true case\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\n Expected: \u001b[32mfalse\u001b[39m\n Received: \u001b[31mtrue\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 581 |\u001b[39m \u001b[36mconst\u001b[39m { fields\u001b[33m,\u001b[39m handleValidation } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 582 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 583 |\u001b[39m expect(fields[\u001b[35m2\u001b[39m]\u001b[33m.\u001b[39misVisible)\u001b[33m.\u001b[39mtoBe(\u001b[36mfalse\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 584 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[32m'x'\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[32m'2'\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m 585 |\u001b[39m field_c\u001b[33m:\u001b[39m \u001b[32m'Required field'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 586 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBe (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/conditions.test.js\u001b[39m\u001b[0m\u001b[2m:583:33)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mConditional with anyOf › handles false case\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\n Expected: \u001b[32mfalse\u001b[39m\n Received: \u001b[31mtrue\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 591 |\u001b[39m \u001b[36mconst\u001b[39m { fields\u001b[33m,\u001b[39m handleValidation } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 592 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 593 |\u001b[39m expect(fields[\u001b[35m2\u001b[39m]\u001b[33m.\u001b[39misVisible)\u001b[33m.\u001b[39mtoBe(\u001b[36mfalse\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 594 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[32m'x'\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[32m'x'\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 595 |\u001b[39m expect(fields[\u001b[35m2\u001b[39m]\u001b[33m.\u001b[39misVisible)\u001b[33m.\u001b[39mtoBe(\u001b[36mfalse\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 596 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBe (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/conditions.test.js\u001b[39m\u001b[0m\u001b[2m:593:33)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mConditionals - bugs and code-smells › Given values from hidden fields, it does not thrown an error (@bug)\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\n Expected: \u001b[32mfalse\u001b[39m\n Received: \u001b[31mtrue\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 649 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 650 |\u001b[39m \u001b[36mconst\u001b[39m validation \u001b[33m=\u001b[39m handleValidation({ has_pet\u001b[33m:\u001b[39m \u001b[32m'no'\u001b[39m\u001b[33m,\u001b[39m pet_name\u001b[33m:\u001b[39m \u001b[32m'Max'\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 651 |\u001b[39m expect(petNameField\u001b[33m.\u001b[39misVisible)\u001b[33m.\u001b[39mtoBe(\u001b[36mfalse\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 652 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 653 |\u001b[39m \u001b[90m// Bug: 🐛 It does not thrown an error,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 654 |\u001b[39m \u001b[90m// but it should to be compliant with JSON Schema specs.\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBe (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/conditions.test.js\u001b[39m\u001b[0m\u001b[2m:651:36)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mConditionals - bugs and code-smells › Given values from hidden fields, it mutates the values (@bug)\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"has_pet\": \"no\",\u001b[22m\n \u001b[32m- \"pet_name\": null,\u001b[39m\n \u001b[31m+ \"pet_name\": \"Max\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 667 |\u001b[39m \u001b[36mconst\u001b[39m validation \u001b[33m=\u001b[39m handleValidation(newValues)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 668 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 669 |\u001b[39m expect(newValues)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 670 |\u001b[39m has_pet\u001b[33m:\u001b[39m \u001b[32m'no'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 671 |\u001b[39m pet_name\u001b[33m:\u001b[39m \u001b[36mnull\u001b[39m\u001b[33m,\u001b[39m \u001b[90m// BUG! 🐛 Should still be \"Max\", should not be mutated.\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 672 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/conditions.test.js\u001b[39m\u001b[0m\u001b[2m:669:23)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mConditionals - bugs and code-smells › Given multiple conditionals to the same field, it only applies the last one (@bug) - case 1\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 3\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"field_c\": \"Must be greater or equal to 10\",\u001b[39m\n \u001b[31m+ \"then\": Object {\u001b[39m\n \u001b[31m+ \"field_c\": \"Must be greater or equal to 30\",\u001b[39m\n \u001b[31m+ },\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 708 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 709 |\u001b[39m \u001b[36mconst\u001b[39m validation \u001b[33m=\u001b[39m handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[32m'yes'\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[32m'yes'\u001b[39m\u001b[33m,\u001b[39m field_c\u001b[33m:\u001b[39m \u001b[35m5\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 710 |\u001b[39m expect(validation\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 711 |\u001b[39m \u001b[90m// BUG: 🐛 it should be \"Must be greater or equal to 30\"\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 712 |\u001b[39m field_c\u001b[33m:\u001b[39m \u001b[32m'Must be greater or equal to 10'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 713 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/conditions.test.js\u001b[39m\u001b[0m\u001b[2m:710:35)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mConditionals - bugs and code-smells › Given multiple conditionals to the same field, it only applies the last one (@bug) - case 2\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 0\u001b[39m\n \u001b[31m+ Received + 2\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[31m+ \"then\": Object {\u001b[39m\n \u001b[2m \"field_c\": \"Must be smaller or equal to 10\",\u001b[22m\n \u001b[31m+ },\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 746 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 747 |\u001b[39m \u001b[36mconst\u001b[39m validation1 \u001b[33m=\u001b[39m handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[32m'yes'\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[32m'yes'\u001b[39m\u001b[33m,\u001b[39m field_c\u001b[33m:\u001b[39m \u001b[35m12\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 748 |\u001b[39m expect(validation1\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 749 |\u001b[39m field_c\u001b[33m:\u001b[39m \u001b[32m'Must be smaller or equal to 10'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 750 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 751 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/conditions.test.js\u001b[39m\u001b[0m\u001b[2m:748:36)\u001b[22m\u001b[2m\u001b[22m\n","name":"/Users/luka.dornhecker/code/json-schema-form/src/tests/conditions.test.js","startTime":1741605290116,"status":"failed","summary":""},{"assertionResults":[{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","simple validation (eg maximum)"],"duration":3,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoHaveProperty\u001b[2m(\u001b[22m\u001b[32mpath\u001b[39m\u001b[2m, \u001b[22m\u001b[32mvalue\u001b[39m\u001b[2m)\u001b[22m\n\nExpected path: \u001b[32m\"maximum\"\u001b[39m\n\nExpected value: \u001b[32m14\u001b[39m\nReceived value: \u001b[31m30\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoHaveProperty\u001b[2m(\u001b[22m\u001b[32mpath\u001b[39m\u001b[2m, \u001b[22m\u001b[32mvalue\u001b[39m\u001b[2m)\u001b[22m\n\nExpected path: \u001b[32m\"maximum\"\u001b[39m\n\nExpected value: \u001b[32m14\u001b[39m\nReceived value: \u001b[31m30\u001b[39m\n at toHaveProperty (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:101:28)\n at validateFieldParams (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:106:3)\n at Object.validateNumberParams (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:157:7)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm() - custom validations (deprecated) simple validation (eg maximum) works as a number","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"failed","title":"works as a number"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","simple validation (eg maximum)"],"duration":2,"failureDetails":[{"matcherResult":{"expected":{"child_age":"Must be smaller or equal to 25"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"child_age\": \"Must be smaller or equal to 25\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"child_age\": \"Must be smaller or equal to 25\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:192:63)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm() - custom validations (deprecated) simple validation (eg maximum) works as a function","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"failed","title":"works as a function"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","simple validation (eg maximum)"],"duration":1,"failureDetails":[{"matcherResult":{"expected":{"child_age":"Must be greater or equal to 20"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"child_age\": \"Must be greater or equal to 20\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"child_age\": \"Must be greater or equal to 20\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:229:63)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm() - custom validations (deprecated) simple validation (eg maximum) works with minimum and maximum together","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"status":"failed","title":"works with minimum and maximum together"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","simple validation (eg maximum)"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoHaveProperty\u001b[2m(\u001b[22m\u001b[32mpath\u001b[39m\u001b[2m, \u001b[22m\u001b[32mvalue\u001b[39m\u001b[2m)\u001b[22m\n\nExpected path: \u001b[32m\"minimum\"\u001b[39m\n\nExpected value: \u001b[32m-15\u001b[39m\nReceived value: \u001b[31m-20\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoHaveProperty\u001b[2m(\u001b[22m\u001b[32mpath\u001b[39m\u001b[2m, \u001b[22m\u001b[32mvalue\u001b[39m\u001b[2m)\u001b[22m\n\nExpected path: \u001b[32m\"minimum\"\u001b[39m\n\nExpected value: \u001b[32m-15\u001b[39m\nReceived value: \u001b[31m-20\u001b[39m\n at toHaveProperty (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:98:28)\n at validateFieldParams (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:106:3)\n at Object.validateNumberParams (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:257:7)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm() - custom validations (deprecated) simple validation (eg maximum) works with negative values","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"failed","title":"works with negative values"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","simple validation (eg maximum)"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm() - custom validations (deprecated) simple validation (eg maximum) keeps original validation, given an empty validation","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"status":"passed","title":"keeps original validation, given an empty validation"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","simple validation (eg maximum)"],"duration":1,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoHaveProperty\u001b[2m(\u001b[22m\u001b[32mpath\u001b[39m\u001b[2m, \u001b[22m\u001b[32mvalue\u001b[39m\u001b[2m)\u001b[22m\n\nExpected path: \u001b[32m\"minimum\"\u001b[39m\n\nExpected value: \u001b[32m1\u001b[39m\nReceived value: \u001b[31mnull\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoHaveProperty\u001b[2m(\u001b[22m\u001b[32mpath\u001b[39m\u001b[2m, \u001b[22m\u001b[32mvalue\u001b[39m\u001b[2m)\u001b[22m\n\nExpected path: \u001b[32m\"minimum\"\u001b[39m\n\nExpected value: \u001b[32m1\u001b[39m\nReceived value: \u001b[31mnull\u001b[39m\n at toHaveProperty (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:98:28)\n at validateFieldParams (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:106:3)\n at Object.validateNumberParams (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:315:7)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm() - custom validations (deprecated) simple validation (eg maximum) applies validation, when original does not exist","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"failed","title":"applies validation, when original does not exist"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","in fieldsets"],"duration":1,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoHaveProperty\u001b[2m(\u001b[22m\u001b[32mpath\u001b[39m\u001b[2m, \u001b[22m\u001b[32mvalue\u001b[39m\u001b[2m)\u001b[22m\n\nExpected path: \u001b[32m\"minimum\"\u001b[39m\n\nExpected value: \u001b[32m24\u001b[39m\nReceived value: \u001b[31m5\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoHaveProperty\u001b[2m(\u001b[22m\u001b[32mpath\u001b[39m\u001b[2m, \u001b[22m\u001b[32mvalue\u001b[39m\u001b[2m)\u001b[22m\n\nExpected path: \u001b[32m\"minimum\"\u001b[39m\n\nExpected value: \u001b[32m24\u001b[39m\nReceived value: \u001b[31m5\u001b[39m\n at toHaveProperty (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:98:28)\n at validateFieldParams (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:106:3)\n at Object.validateNumberParams (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:383:7)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm() - custom validations (deprecated) in fieldsets applies custom validation in nested fields","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"failed","title":"applies custom validation in nested fields"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","in conditional fields"],"duration":1,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoHaveProperty\u001b[2m(\u001b[22m\u001b[32mpath\u001b[39m\u001b[2m, \u001b[22m\u001b[32mvalue\u001b[39m\u001b[2m)\u001b[22m\n\nExpected path: \u001b[32m\"inputType\"\u001b[39m\n\nExpected value: \u001b[32m\"money\"\u001b[39m\nReceived value: \u001b[31m\"text\"\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoHaveProperty\u001b[2m(\u001b[22m\u001b[32mpath\u001b[39m\u001b[2m, \u001b[22m\u001b[32mvalue\u001b[39m\u001b[2m)\u001b[22m\n\nExpected path: \u001b[32m\"inputType\"\u001b[39m\n\nExpected value: \u001b[32m\"money\"\u001b[39m\nReceived value: \u001b[31m\"text\"\u001b[39m\n at toHaveProperty (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:113:26)\n at Object.validateMoneyParams (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:477:7)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm() - custom validations (deprecated) in conditional fields validates conditional visible field","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"failed","title":"validates conditional visible field"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","in conditional fields"],"duration":8,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBeUndefined\u001b[2m()\u001b[22m\n\nReceived: \u001b[31m{\"else\": {\"bonus\": \"Always fails\"}}\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBeUndefined\u001b[2m()\u001b[22m\n\nReceived: \u001b[31m{\"else\": {\"bonus\": \"Always fails\"}}\u001b[39m\n at Object.toBeUndefined (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:520:9)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm() - custom validations (deprecated) in conditional fields ignores validation to conditional hidden field","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"failed","title":"ignores validation to conditional hidden field"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","in conditional fields"],"duration":1,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenNthCalledWith\u001b[2m(\u001b[22mn\u001b[2m, \u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nn: 1\nExpected: \u001b[32m\"Custom validation for bonus is not allowed because maximum:600000 is less strict than the original range: 0 to 500000\"\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenNthCalledWith\u001b[2m(\u001b[22mn\u001b[2m, \u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nn: 1\nExpected: \u001b[32m\"Custom validation for bonus is not allowed because maximum:600000 is less strict than the original range: 0 to 500000\"\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m\n at Object.toHaveBeenNthCalledWith (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:535:28)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm() - custom validations (deprecated) in conditional fields given an out-of-range validation, logs warning","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"given an out-of-range validation, logs warning"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","with errorMessage (deprecated)"],"duration":1,"failureDetails":[{"matcherResult":{"expected":{"child_age":"The child cannot be older than the parent of 18 yo."},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"child_age\": \"The child cannot be older than the parent of 18 yo.\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"child_age\": \"The child cannot be older than the parent of 18 yo.\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:580:63)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm() - custom validations (deprecated) with errorMessage (deprecated) overrides original error conditionally","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"status":"failed","title":"overrides original error conditionally"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","with errorMessage (deprecated)"],"duration":1,"failureDetails":[{"matcherResult":{"actual":{"child_age":"Must be smaller or equal to 40"},"expected":{"child_age":"The child cannot be older than 40yo."},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"child_age\": \"The child cannot be older than 40yo.\",\u001b[39m\n\u001b[31m+ \"child_age\": \"Must be smaller or equal to 40\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"child_age\": \"The child cannot be older than 40yo.\",\u001b[39m\n\u001b[31m+ \"child_age\": \"Must be smaller or equal to 40\",\u001b[39m\n\u001b[2m }\u001b[22m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:634:63)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm() - custom validations (deprecated) with errorMessage (deprecated) overrides errorMessage conditionally","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"failed","title":"overrides errorMessage conditionally"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","with x-jsf-errorMessage"],"duration":0,"failureDetails":[{"matcherResult":{"expected":{"child_age":"The child cannot be older than the parent of 18 yo."},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"child_age\": \"The child cannot be older than the parent of 18 yo.\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"child_age\": \"The child cannot be older than the parent of 18 yo.\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:679:63)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm() - custom validations (deprecated) with x-jsf-errorMessage overrides original error conditionally","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"status":"failed","title":"overrides original error conditionally"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","with x-jsf-errorMessage"],"duration":0,"failureDetails":[{"matcherResult":{"expected":{"child_age":"The child cannot be younger than half of the parent. Must be at least 25yo."},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"child_age\": \"The child cannot be younger than half of the parent. Must be at least 25yo.\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"child_age\": \"The child cannot be younger than half of the parent. Must be at least 25yo.\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:737:63)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm() - custom validations (deprecated) with x-jsf-errorMessage overrides errorMessage conditionally","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"status":"failed","title":"overrides errorMessage conditionally"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","invalid validations"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenNthCalledWith\u001b[2m(\u001b[22mn\u001b[2m, \u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nn: 1\nExpected: \u001b[32m\"Custom validation for parent_age is not allowed because minimum:0 is less strict than the original range: 5 to 100\"\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenNthCalledWith\u001b[2m(\u001b[22mn\u001b[2m, \u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nn: 1\nExpected: \u001b[32m\"Custom validation for parent_age is not allowed because minimum:0 is less strict than the original range: 5 to 100\"\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m\n at Object.toHaveBeenNthCalledWith (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js:767:28)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm() - custom validations (deprecated) invalid validations outside the schema range logs warning","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"status":"failed","title":"outside the schema range logs warning"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","invalid validations"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm() - custom validations (deprecated) invalid validations null or undefined ignores validation","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"status":"passed","title":"null or undefined ignores validation"}],"endTime":1741605290509,"message":"\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm() - custom validations (deprecated) › simple validation (eg maximum) › works as a number\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoHaveProperty\u001b[2m(\u001b[22m\u001b[32mpath\u001b[39m\u001b[2m, \u001b[22m\u001b[32mvalue\u001b[39m\u001b[2m)\u001b[22m\n\n Expected path: \u001b[32m\"maximum\"\u001b[39m\n\n Expected value: \u001b[32m14\u001b[39m\n Received value: \u001b[31m30\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 99 |\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 100 |\u001b[39m \u001b[36mif\u001b[39m (fieldParams\u001b[33m.\u001b[39mmaximum) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 101 |\u001b[39m expect(newFieldParams)\u001b[33m.\u001b[39mtoHaveProperty(\u001b[32m'maximum'\u001b[39m\u001b[33m,\u001b[39m fieldParams\u001b[33m.\u001b[39mmaximum)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 102 |\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 103 |\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 104 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toHaveProperty (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:101:28)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat validateFieldParams (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:106:3)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.validateNumberParams (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:157:7)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm() - custom validations (deprecated) › simple validation (eg maximum) › works as a function\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32m{\"child_age\": \"Must be smaller or equal to 25\"}\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 190 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 191 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 192 |\u001b[39m expect(validateForm({ parent_age\u001b[33m:\u001b[39m \u001b[35m25\u001b[39m\u001b[33m,\u001b[39m child_age\u001b[33m:\u001b[39m \u001b[35m26\u001b[39m }))\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 193 |\u001b[39m child_age\u001b[33m:\u001b[39m \u001b[32m'Must be smaller or equal to 25'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 194 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 195 |\u001b[39m expect(validateForm({ parent_age\u001b[33m:\u001b[39m \u001b[35m25\u001b[39m\u001b[33m,\u001b[39m child_age\u001b[33m:\u001b[39m \u001b[35m20\u001b[39m }))\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:192:63)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm() - custom validations (deprecated) › simple validation (eg maximum) › works with minimum and maximum together\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32m{\"child_age\": \"Must be greater or equal to 20\"}\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 227 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 228 |\u001b[39m \u001b[90m// Test the custom validations\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 229 |\u001b[39m expect(validateForm({ parent_age\u001b[33m:\u001b[39m \u001b[35m35\u001b[39m\u001b[33m,\u001b[39m child_age\u001b[33m:\u001b[39m \u001b[35m19\u001b[39m }))\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 230 |\u001b[39m child_age\u001b[33m:\u001b[39m \u001b[32m'Must be greater or equal to 20'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 231 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 232 |\u001b[39m expect(validateForm({ parent_age\u001b[33m:\u001b[39m \u001b[35m40\u001b[39m\u001b[33m,\u001b[39m child_age\u001b[33m:\u001b[39m \u001b[35m31\u001b[39m }))\u001b[33m.\u001b[39mtoEqual({\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:229:63)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm() - custom validations (deprecated) › simple validation (eg maximum) › works with negative values\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoHaveProperty\u001b[2m(\u001b[22m\u001b[32mpath\u001b[39m\u001b[2m, \u001b[22m\u001b[32mvalue\u001b[39m\u001b[2m)\u001b[22m\n\n Expected path: \u001b[32m\"minimum\"\u001b[39m\n\n Expected value: \u001b[32m-15\u001b[39m\n Received value: \u001b[31m-20\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 96 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 97 |\u001b[39m \u001b[36mif\u001b[39m (fieldParams\u001b[33m.\u001b[39mminimum) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 98 |\u001b[39m expect(newFieldParams)\u001b[33m.\u001b[39mtoHaveProperty(\u001b[32m'minimum'\u001b[39m\u001b[33m,\u001b[39m fieldParams\u001b[33m.\u001b[39mminimum)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 99 |\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 100 |\u001b[39m \u001b[36mif\u001b[39m (fieldParams\u001b[33m.\u001b[39mmaximum) {\u001b[22m\n\u001b[2m \u001b[90m 101 |\u001b[39m expect(newFieldParams)\u001b[33m.\u001b[39mtoHaveProperty(\u001b[32m'maximum'\u001b[39m\u001b[33m,\u001b[39m fieldParams\u001b[33m.\u001b[39mmaximum)\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toHaveProperty (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:98:28)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat validateFieldParams (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:106:3)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.validateNumberParams (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:257:7)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm() - custom validations (deprecated) › simple validation (eg maximum) › applies validation, when original does not exist\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoHaveProperty\u001b[2m(\u001b[22m\u001b[32mpath\u001b[39m\u001b[2m, \u001b[22m\u001b[32mvalue\u001b[39m\u001b[2m)\u001b[22m\n\n Expected path: \u001b[32m\"minimum\"\u001b[39m\n\n Expected value: \u001b[32m1\u001b[39m\n Received value: \u001b[31mnull\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 96 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 97 |\u001b[39m \u001b[36mif\u001b[39m (fieldParams\u001b[33m.\u001b[39mminimum) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 98 |\u001b[39m expect(newFieldParams)\u001b[33m.\u001b[39mtoHaveProperty(\u001b[32m'minimum'\u001b[39m\u001b[33m,\u001b[39m fieldParams\u001b[33m.\u001b[39mminimum)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 99 |\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 100 |\u001b[39m \u001b[36mif\u001b[39m (fieldParams\u001b[33m.\u001b[39mmaximum) {\u001b[22m\n\u001b[2m \u001b[90m 101 |\u001b[39m expect(newFieldParams)\u001b[33m.\u001b[39mtoHaveProperty(\u001b[32m'maximum'\u001b[39m\u001b[33m,\u001b[39m fieldParams\u001b[33m.\u001b[39mmaximum)\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toHaveProperty (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:98:28)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat validateFieldParams (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:106:3)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.validateNumberParams (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:315:7)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm() - custom validations (deprecated) › in fieldsets › applies custom validation in nested fields\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoHaveProperty\u001b[2m(\u001b[22m\u001b[32mpath\u001b[39m\u001b[2m, \u001b[22m\u001b[32mvalue\u001b[39m\u001b[2m)\u001b[22m\n\n Expected path: \u001b[32m\"minimum\"\u001b[39m\n\n Expected value: \u001b[32m24\u001b[39m\n Received value: \u001b[31m5\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 96 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 97 |\u001b[39m \u001b[36mif\u001b[39m (fieldParams\u001b[33m.\u001b[39mminimum) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 98 |\u001b[39m expect(newFieldParams)\u001b[33m.\u001b[39mtoHaveProperty(\u001b[32m'minimum'\u001b[39m\u001b[33m,\u001b[39m fieldParams\u001b[33m.\u001b[39mminimum)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 99 |\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 100 |\u001b[39m \u001b[36mif\u001b[39m (fieldParams\u001b[33m.\u001b[39mmaximum) {\u001b[22m\n\u001b[2m \u001b[90m 101 |\u001b[39m expect(newFieldParams)\u001b[33m.\u001b[39mtoHaveProperty(\u001b[32m'maximum'\u001b[39m\u001b[33m,\u001b[39m fieldParams\u001b[33m.\u001b[39mmaximum)\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toHaveProperty (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:98:28)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat validateFieldParams (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:106:3)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.validateNumberParams (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:383:7)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm() - custom validations (deprecated) › in conditional fields › validates conditional visible field\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoHaveProperty\u001b[2m(\u001b[22m\u001b[32mpath\u001b[39m\u001b[2m, \u001b[22m\u001b[32mvalue\u001b[39m\u001b[2m)\u001b[22m\n\n Expected path: \u001b[32m\"inputType\"\u001b[39m\n\n Expected value: \u001b[32m\"money\"\u001b[39m\n Received value: \u001b[31m\"text\"\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 111 |\u001b[39m \u001b[36mfunction\u001b[39m validateMoneyParams(fieldParams\u001b[33m,\u001b[39m newFieldParams) {\u001b[22m\n\u001b[2m \u001b[90m 112 |\u001b[39m validateFieldParams(fieldParams\u001b[33m,\u001b[39m newFieldParams)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 113 |\u001b[39m expect(newFieldParams)\u001b[33m.\u001b[39mtoHaveProperty(\u001b[32m'inputType'\u001b[39m\u001b[33m,\u001b[39m \u001b[32m'money'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 114 |\u001b[39m expect(newFieldParams)\u001b[33m.\u001b[39mtoHaveProperty(\u001b[32m'jsonType'\u001b[39m\u001b[33m,\u001b[39m \u001b[32m'integer'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 115 |\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 116 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toHaveProperty (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:113:26)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.validateMoneyParams (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:477:7)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm() - custom validations (deprecated) › in conditional fields › ignores validation to conditional hidden field\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBeUndefined\u001b[2m()\u001b[22m\n\n Received: \u001b[31m{\"else\": {\"bonus\": \"Always fails\"}}\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 518 |\u001b[39m \u001b[90m// \"bonus\" value is not expected? the native json schema spec throw an error...\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 519 |\u001b[39m })\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 520 |\u001b[39m )\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 521 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 522 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 523 |\u001b[39m it(\u001b[32m'given an out-of-range validation, logs warning'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBeUndefined (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:520:9)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm() - custom validations (deprecated) › in conditional fields › given an out-of-range validation, logs warning\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenNthCalledWith\u001b[2m(\u001b[22mn\u001b[2m, \u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\n n: 1\n Expected: \u001b[32m\"Custom validation for bonus is not allowed because maximum:600000 is less strict than the original range: 0 to 500000\"\u001b[39m\n\n Number of calls: \u001b[31m0\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 533 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 534 |\u001b[39m \u001b[90m// eslint-disable-next-line no-console\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 535 |\u001b[39m expect(console\u001b[33m.\u001b[39mwarn)\u001b[33m.\u001b[39mtoHaveBeenNthCalledWith(\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 536 |\u001b[39m \u001b[35m1\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 537 |\u001b[39m \u001b[32m'Custom validation for bonus is not allowed because maximum:600000 is less strict than the original range: 0 to 500000'\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 538 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toHaveBeenNthCalledWith (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:535:28)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm() - custom validations (deprecated) › with errorMessage (deprecated) › overrides original error conditionally\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32m{\"child_age\": \"The child cannot be older than the parent of 18 yo.\"}\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 578 |\u001b[39m child_age\u001b[33m:\u001b[39m \u001b[32m'Must be greater or equal to 5'\u001b[39m\u001b[33m,\u001b[39m \u001b[90m// applies the original error message\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 579 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 580 |\u001b[39m expect(validateForm({ parent_age\u001b[33m:\u001b[39m \u001b[35m18\u001b[39m\u001b[33m,\u001b[39m child_age\u001b[33m:\u001b[39m \u001b[35m19\u001b[39m }))\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 581 |\u001b[39m child_age\u001b[33m:\u001b[39m \u001b[32m'The child cannot be older than the parent of 18 yo.'\u001b[39m\u001b[33m,\u001b[39m \u001b[90m// applies the config.errorMessage\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 582 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 583 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:580:63)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm() - custom validations (deprecated) › with errorMessage (deprecated) › overrides errorMessage conditionally\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"child_age\": \"The child cannot be older than 40yo.\",\u001b[39m\n \u001b[31m+ \"child_age\": \"Must be smaller or equal to 40\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 632 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 633 |\u001b[39m \u001b[90m// applies the errorMessage by default\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 634 |\u001b[39m expect(validateForm({ parent_age\u001b[33m:\u001b[39m \u001b[35m50\u001b[39m\u001b[33m,\u001b[39m child_age\u001b[33m:\u001b[39m \u001b[35m45\u001b[39m }))\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 635 |\u001b[39m child_age\u001b[33m:\u001b[39m \u001b[32m'The child cannot be older than 40yo.'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 636 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 637 |\u001b[39m \u001b[90m// applies the config.errorMessage if it's triggered\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:634:63)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm() - custom validations (deprecated) › with x-jsf-errorMessage › overrides original error conditionally\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32m{\"child_age\": \"The child cannot be older than the parent of 18 yo.\"}\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 677 |\u001b[39m child_age\u001b[33m:\u001b[39m \u001b[32m'Must be greater or equal to 5'\u001b[39m\u001b[33m,\u001b[39m \u001b[90m// applies the original error message\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 678 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 679 |\u001b[39m expect(validateForm({ parent_age\u001b[33m:\u001b[39m \u001b[35m18\u001b[39m\u001b[33m,\u001b[39m child_age\u001b[33m:\u001b[39m \u001b[35m19\u001b[39m }))\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 680 |\u001b[39m child_age\u001b[33m:\u001b[39m \u001b[32m'The child cannot be older than the parent of 18 yo.'\u001b[39m\u001b[33m,\u001b[39m \u001b[90m// applies the config.errorMessage\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 681 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 682 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:679:63)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm() - custom validations (deprecated) › with x-jsf-errorMessage › overrides errorMessage conditionally\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32m{\"child_age\": \"The child cannot be younger than half of the parent. Must be at least 25yo.\"}\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 735 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 736 |\u001b[39m \u001b[90m// applies the config.errorMessage if it's triggered\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 737 |\u001b[39m expect(validateForm({ parent_age\u001b[33m:\u001b[39m \u001b[35m50\u001b[39m\u001b[33m,\u001b[39m child_age\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m }))\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 738 |\u001b[39m child_age\u001b[33m:\u001b[39m \u001b[32m`The child cannot be younger than half of the parent. Must be at least 25yo.`\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 739 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 740 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:737:63)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm() - custom validations (deprecated) › invalid validations › outside the schema range logs warning\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenNthCalledWith\u001b[2m(\u001b[22mn\u001b[2m, \u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\n n: 1\n Expected: \u001b[32m\"Custom validation for parent_age is not allowed because minimum:0 is less strict than the original range: 5 to 100\"\u001b[39m\n\n Number of calls: \u001b[31m0\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 765 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 766 |\u001b[39m \u001b[90m// eslint-disable-next-line no-console\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 767 |\u001b[39m expect(console\u001b[33m.\u001b[39mwarn)\u001b[33m.\u001b[39mtoHaveBeenNthCalledWith(\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 768 |\u001b[39m \u001b[35m1\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 769 |\u001b[39m \u001b[32m'Custom validation for parent_age is not allowed because minimum:0 is less strict than the original range: 5 to 100'\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 770 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toHaveBeenNthCalledWith (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.customValidations.test.js\u001b[39m\u001b[0m\u001b[2m:767:28)\u001b[22m\u001b[2m\u001b[22m\n","name":"/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.customValidations.test.js","startTime":1741605290112,"status":"failed","summary":""},{"assertionResults":[{"ancestorTitles":["jsonLogic: cross-values validations","Does not conflict with native JSON schema"],"duration":3,"failureDetails":[{"matcherResult":{"expected":{"field_b":"Must be greater than field_a"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"field_b\": \"Must be greater than field_a\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"field_b\": \"Must be greater than field_a\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:52:72)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Does not conflict with native JSON schema Given an optional field and empty value, jsonLogic validations are ignored","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"failed","title":"Given an optional field and empty value, jsonLogic validations are ignored"},{"ancestorTitles":["jsonLogic: cross-values validations","Does not conflict with native JSON schema"],"duration":0,"failureDetails":[{"matcherResult":{"expected":{"field_a":"Must be a multiple of 10"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"field_a\": \"Must be a multiple of 10\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"field_a\": \"Must be a multiple of 10\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:69:61)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Does not conflict with native JSON schema Native validations have higher precedence than jsonLogic validations","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"failed","title":"Native validations have higher precedence than jsonLogic validations"},{"ancestorTitles":["jsonLogic: cross-values validations","Relative: <, >, ="],"duration":0,"failureDetails":[{}],"failureMessages":["TypeError: Cannot read properties of undefined (reading 'field_a')\n at Object.field_a (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:86:25)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Relative: <, >, = bigger: field_a > field_b","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"bigger: field_a > field_b"},{"ancestorTitles":["jsonLogic: cross-values validations","Relative: <, >, ="],"duration":0,"failureDetails":[{}],"failureMessages":["TypeError: Cannot read properties of undefined (reading 'field_a')\n at Object.field_a (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:99:25)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Relative: <, >, = smaller: field_a < field_b","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"smaller: field_a < field_b"},{"ancestorTitles":["jsonLogic: cross-values validations","Relative: <, >, ="],"duration":1,"failureDetails":[{}],"failureMessages":["TypeError: Cannot read properties of undefined (reading 'field_a')\n at Object.field_a (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:112:25)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Relative: <, >, = equal: field_a = field_b","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"equal: field_a = field_b"},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: Validation \"a_greater_than_ten\" has missing rule.]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: Validation \"a_greater_than_ten\" has missing rule.]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m\n at toHaveBeenCalledWith (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:191:29)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic.validations: throw when theres a missing rule\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"\"x-jsf-logic.validations: throw when theres a missing rule\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: rule \"a_equals_ten\" has no variable \"field_a\".]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: rule \"a_equals_ten\" has no variable \"field_a\".]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m\n at toHaveBeenCalledWith (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:191:29)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic.validations: throw when theres a value that does not exist in a rule\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"\"x-jsf-logic.validations: throw when theres a value that does not exist in a rule\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: rule \"a_times_ten\" has no variable \"field_a\".]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: rule \"a_times_ten\" has no variable \"field_a\".]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m\n at toHaveBeenCalledWith (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:191:29)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic.computedValues: throw when theres a value that does not exist in a rule\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"\"x-jsf-logic.computedValues: throw when theres a value that does not exist in a rule\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: Computed value \"a_plus_ten\" has missing rule.]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: Computed value \"a_plus_ten\" has missing rule.]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m\n at toHaveBeenCalledWith (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:191:29)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic.computedValues: throw when theres a missing computed value\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"\"x-jsf-logic.computedValues: throw when theres a missing computed value\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":2,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: Computed value \"iDontExist\" doesn't exist in field \"field_a\".]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: Computed value \"iDontExist\" doesn't exist in field \"field_a\".]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m\n at toHaveBeenCalledWith (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:191:29)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic-computedAttrs: error if theres a value that does not exist on an attribute.\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"\"x-jsf-logic-computedAttrs: error if theres a value that does not exist on an attribute.\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: Computed value \"iDontExist\" doesn't exist in field \"field_a\".]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: Computed value \"iDontExist\" doesn't exist in field \"field_a\".]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m\n at toHaveBeenCalledWith (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:191:29)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic-computedAttrs: error if theres a value that does not exist on a template string (title).\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"\"x-jsf-logic-computedAttrs: error if theres a value that does not exist on a template string (title).\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: Computed value \"iDontExist\" doesn't exist in field \"field_a\".]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: Computed value \"iDontExist\" doesn't exist in field \"field_a\".]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m\n at toHaveBeenCalledWith (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:191:29)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic-computedAttrs: error if theres a value that does not exist on a template string (description).\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"\"x-jsf-logic-computedAttrs: error if theres a value that does not exist on a template string (description).\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: fieldName \"IdontExist\" doesn't exist in field \"field_a.x-jsf-logic-computedAttrs.title\".]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: fieldName \"IdontExist\" doesn't exist in field \"field_a.x-jsf-logic-computedAttrs.title\".]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m\n at toHaveBeenCalledWith (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:191:29)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic-computedAttrs:, error if theres a value referenced that does not exist on an inline rule.\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"\"x-jsf-logic-computedAttrs:, error if theres a value referenced that does not exist on an inline rule.\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: rule \"dummy_rule\" has no variable \"field_b\".]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: rule \"dummy_rule\" has no variable \"field_b\".]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m\n at toHaveBeenCalledWith (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:191:29)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic.validations: error if a field does not exist in a deeply nested rule\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"\"x-jsf-logic.validations: error if a field does not exist in a deeply nested rule\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: rule \"dummy_rule\" has no variable \"field_a\".]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: rule \"dummy_rule\" has no variable \"field_a\".]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m\n at toHaveBeenCalledWith (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:191:29)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic.validations: error if rule does not exist on a fieldset property\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"\"x-jsf-logic.validations: error if rule does not exist on a fieldset property\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: \"field_a\" required validation \"iDontExist\" doesn't exist.]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: \"field_a\" required validation \"iDontExist\" doesn't exist.]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m\n at toHaveBeenCalledWith (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:191:29)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-validations: error if a validation name does not exist\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"\"x-jsf-validations: error if a validation name does not exist\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: rule \"validation_parent\" has no variable \"child\".]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: rule \"validation_parent\" has no variable \"child\".]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m\n at toHaveBeenCalledWith (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:191:29)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic.validations: A top level logic keyword will not be able to reference fieldset properties\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"\"x-jsf-logic.validations: A top level logic keyword will not be able to reference fieldset properties\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: in \"badOperator\" rule there is an unknown operator \"++\".]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: in \"badOperator\" rule there is an unknown operator \"++\".]\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m\n at toHaveBeenCalledWith (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:191:29)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic.validations: error if unknown operation\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"\"x-jsf-logic.validations: error if unknown operation\""},{"ancestorTitles":["jsonLogic: cross-values validations","Arithmetic: +, -, *, /"],"duration":0,"failureDetails":[{}],"failureMessages":["TypeError: Cannot read properties of undefined (reading 'field_a')\n at Object.field_a (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:207:25)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Arithmetic: +, -, *, / multiple: field_a > field_b * 2","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"multiple: field_a > field_b * 2"},{"ancestorTitles":["jsonLogic: cross-values validations","Arithmetic: +, -, *, /"],"duration":0,"failureDetails":[{"matcherResult":{"expected":{"field_a":"Field A must be greater than field_b / 2"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"field_a\": \"Field A must be greater than field_b / 2\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"field_a\": \"Field A must be greater than field_b / 2\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:221:71)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Arithmetic: +, -, *, / divide: field_a > field_b / 2","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"divide: field_a > field_b / 2"},{"ancestorTitles":["jsonLogic: cross-values validations","Arithmetic: +, -, *, /"],"duration":0,"failureDetails":[{}],"failureMessages":["TypeError: Cannot read properties of undefined (reading 'field_a')\n at Object.field_a (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:238:25)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Arithmetic: +, -, *, / sum: field_a > field_b + field_c","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"sum: field_a > field_b + field_c"},{"ancestorTitles":["jsonLogic: cross-values validations","Reduce"],"duration":null,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Reduce reduce: working_hours_per_day * work_days","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"pending","title":"reduce: working_hours_per_day * work_days"},{"ancestorTitles":["jsonLogic: cross-values validations","Logical: ||, &&"],"duration":0,"failureDetails":[{}],"failureMessages":["TypeError: Cannot read properties of undefined (reading 'field_a')\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:281:82)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Logical: ||, && AND: field_a > field_b && field_a > field_c (implicit with multiple rules in a single field)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"AND: field_a > field_b && field_a > field_c (implicit with multiple rules in a single field)"},{"ancestorTitles":["jsonLogic: cross-values validations","Logical: ||, &&"],"duration":0,"failureDetails":[{}],"failureMessages":["TypeError: Cannot read properties of undefined (reading 'field_a')\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:305:83)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Logical: ||, && OR: field_a > field_b or field_a > field_c","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"OR: field_a > field_b or field_a > field_c"},{"ancestorTitles":["jsonLogic: cross-values validations","Multiple validations"],"duration":1,"failureDetails":[{"matcherResult":{"actual":{"field_b":"Required field"},"expected":{"field_a":"A must be even","field_b":"Required field"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"field_a\": \"A must be even\",\u001b[39m\n\u001b[2m \"field_b\": \"Required field\",\u001b[22m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"field_a\": \"A must be even\",\u001b[39m\n\u001b[2m \"field_b\": \"Required field\",\u001b[22m\n\u001b[2m }\u001b[22m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:320:59)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Multiple validations two rules: A > B; A is even","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"two rules: A > B; A is even"},{"ancestorTitles":["jsonLogic: cross-values validations","Multiple validations"],"duration":0,"failureDetails":[{"matcherResult":{"expected":{"field_a":"A must be bigger than B","field_b":"B must be even"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"field_a\": \"A must be bigger than B\", \"field_b\": \"B must be even\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"field_a\": \"A must be bigger than B\", \"field_b\": \"B must be even\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:337:71)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Multiple validations 2 seperate fields with rules failing","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"2 seperate fields with rules failing"},{"ancestorTitles":["jsonLogic: cross-values validations","Derive values"],"duration":0,"failureDetails":[{"matcherResult":{"expected":"This field is 2 times bigger than field_a with value of 4.","message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m\"This field is 2 times bigger than field_a with value of 4.\"\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m\"This field is 2 times bigger than field_a with value of 4.\"\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:352:34)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Derive values field_b is field_a * 2","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"field_b is field_a * 2"},{"ancestorTitles":["jsonLogic: cross-values validations","Derive values"],"duration":1,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 2\u001b[39m\n\u001b[31m+ Received + 10\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"const\": 6,\u001b[39m\n\u001b[32m- \"default\": 4,\u001b[39m\n\u001b[31m+ \"inputType\": \"text\",\u001b[39m\n\u001b[31m+ \"isVisible\": true,\u001b[39m\n\u001b[31m+ \"jsonType\": \"number\",\u001b[39m\n\u001b[31m+ \"name\": \"field_b\",\u001b[39m\n\u001b[31m+ \"required\": false,\u001b[39m\n\u001b[31m+ \"type\": \"text\",\u001b[39m\n\u001b[31m+ \"x-jsf-logic-computedAttrs\": Object {\u001b[39m\n\u001b[31m+ \"const\": \"a_times_three\",\u001b[39m\n\u001b[31m+ \"default\": \"a_times_two\",\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 2\u001b[39m\n\u001b[31m+ Received + 10\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"const\": 6,\u001b[39m\n\u001b[32m- \"default\": 4,\u001b[39m\n\u001b[31m+ \"inputType\": \"text\",\u001b[39m\n\u001b[31m+ \"isVisible\": true,\u001b[39m\n\u001b[31m+ \"jsonType\": \"number\",\u001b[39m\n\u001b[31m+ \"name\": \"field_b\",\u001b[39m\n\u001b[31m+ \"required\": false,\u001b[39m\n\u001b[31m+ \"type\": \"text\",\u001b[39m\n\u001b[31m+ \"x-jsf-logic-computedAttrs\": Object {\u001b[39m\n\u001b[31m+ \"const\": \"a_times_three\",\u001b[39m\n\u001b[31m+ \"default\": \"a_times_two\",\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:367:25)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Derive values A forced value will not be set when const and default are not equal","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"A forced value will not be set when const and default are not equal"},{"ancestorTitles":["jsonLogic: cross-values validations","Derive values"],"duration":0,"failureDetails":[{"matcherResult":{"expected":{"field_b":"Must be bigger than 4"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"field_b\": \"Must be bigger than 4\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"field_b\": \"Must be bigger than 4\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:377:71)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Derive values Derived errorMessages and statements work","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"Derived errorMessages and statements work"},{"ancestorTitles":["jsonLogic: cross-values validations","Derive values"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"field_b":"Required field"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32mundefined\u001b[39m\nReceived: \u001b[31m{\"field_b\": \"Required field\"}\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32mundefined\u001b[39m\nReceived: \u001b[31m{\"field_b\": \"Required field\"}\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:396:74)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Derive values Use a inline-rule in a schema for a title attribute","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"Use a inline-rule in a schema for a title attribute"},{"ancestorTitles":["jsonLogic: cross-values validations","Derive values"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"field_b":"Required field"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32mundefined\u001b[39m\nReceived: \u001b[31m{\"field_b\": \"Required field\"}\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32mundefined\u001b[39m\nReceived: \u001b[31m{\"field_b\": \"Required field\"}\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:410:75)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Derive values Use multiple inline rules with different identifiers","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"Use multiple inline rules with different identifiers"},{"ancestorTitles":["jsonLogic: cross-values validations","Derive values"],"duration":1,"failureDetails":[{"matcherResult":{"actual":{"field_b":"Required field"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32mundefined\u001b[39m\nReceived: \u001b[31m{\"field_b\": \"Required field\"}\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32mundefined\u001b[39m\nReceived: \u001b[31m{\"field_b\": \"Required field\"}\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:419:75)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Derive values Use an inline rule in a schema for a title but it just uses the value","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"Use an inline rule in a schema for a title but it just uses the value"},{"ancestorTitles":["jsonLogic: cross-values validations","Derive values"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 2\u001b[39m\n\u001b[31m+ Received + 28\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"maximum\": NaN,\u001b[39m\n\u001b[32m- \"minimum\": NaN,\u001b[39m\n\u001b[31m+ \"inputType\": \"text\",\u001b[39m\n\u001b[31m+ \"isVisible\": true,\u001b[39m\n\u001b[31m+ \"jsonType\": \"number\",\u001b[39m\n\u001b[31m+ \"name\": \"field_b\",\u001b[39m\n\u001b[31m+ \"required\": false,\u001b[39m\n\u001b[31m+ \"type\": \"text\",\u001b[39m\n\u001b[31m+ \"x-jsf-logic-computedAttrs\": Object {\u001b[39m\n\u001b[31m+ \"maximum\": Object {\u001b[39m\n\u001b[31m+ \"rule\": Object {\u001b[39m\n\u001b[31m+ \"+\": Array [\u001b[39m\n\u001b[31m+ Object {\u001b[39m\n\u001b[31m+ \"var\": \"field_a\",\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[31m+ 10,\u001b[39m\n\u001b[31m+ ],\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[31m+ \"minimum\": Object {\u001b[39m\n\u001b[31m+ \"rule\": Object {\u001b[39m\n\u001b[31m+ \"-\": Array [\u001b[39m\n\u001b[31m+ Object {\u001b[39m\n\u001b[31m+ \"var\": \"field_a\",\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[31m+ 10,\u001b[39m\n\u001b[31m+ ],\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 2\u001b[39m\n\u001b[31m+ Received + 28\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"maximum\": NaN,\u001b[39m\n\u001b[32m- \"minimum\": NaN,\u001b[39m\n\u001b[31m+ \"inputType\": \"text\",\u001b[39m\n\u001b[31m+ \"isVisible\": true,\u001b[39m\n\u001b[31m+ \"jsonType\": \"number\",\u001b[39m\n\u001b[31m+ \"name\": \"field_b\",\u001b[39m\n\u001b[31m+ \"required\": false,\u001b[39m\n\u001b[31m+ \"type\": \"text\",\u001b[39m\n\u001b[31m+ \"x-jsf-logic-computedAttrs\": Object {\u001b[39m\n\u001b[31m+ \"maximum\": Object {\u001b[39m\n\u001b[31m+ \"rule\": Object {\u001b[39m\n\u001b[31m+ \"+\": Array [\u001b[39m\n\u001b[31m+ Object {\u001b[39m\n\u001b[31m+ \"var\": \"field_a\",\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[31m+ 10,\u001b[39m\n\u001b[31m+ ],\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[31m+ \"minimum\": Object {\u001b[39m\n\u001b[31m+ \"rule\": Object {\u001b[39m\n\u001b[31m+ \"-\": Array [\u001b[39m\n\u001b[31m+ Object {\u001b[39m\n\u001b[31m+ \"var\": \"field_a\",\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[31m+ 10,\u001b[39m\n\u001b[31m+ ],\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:435:22)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Derive values Use an inline rule for a minimum, maximum value","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"Use an inline rule for a minimum, maximum value"},{"ancestorTitles":["jsonLogic: cross-values validations","Derive values"],"duration":1,"failureDetails":[{"matcherResult":{"expected":"Going to use 20 and 4","message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m\"Going to use 20 and 4\"\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m\"Going to use 20 and 4\"\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:456:28)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Derive values Mix use of multiple inline rules and an external rule","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"Mix use of multiple inline rules and an external rule"},{"ancestorTitles":["jsonLogic: cross-values validations","Conditionals"],"duration":0,"failureDetails":[{"matcherResult":{"actual":true,"expected":false,"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:467:32)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Conditionals when field_a > field_b, show field_c","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"when field_a > field_b, show field_c"},{"ancestorTitles":["jsonLogic: cross-values validations","Conditionals"],"duration":0,"failureDetails":[{"matcherResult":{"actual":true,"expected":false,"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:492:32)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Conditionals A schema with both a `x-jsf-validations` and `properties` check","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"failed","title":"A schema with both a `x-jsf-validations` and `properties` check"},{"ancestorTitles":["jsonLogic: cross-values validations","Conditionals"],"duration":0,"failureDetails":[{"matcherResult":{"actual":true,"expected":false,"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:506:32)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Conditionals Conditionally apply a validation on a property depending on values","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"Conditionally apply a validation on a property depending on values"},{"ancestorTitles":["jsonLogic: cross-values validations","Conditionals"],"duration":1,"failureDetails":[{"matcherResult":{"actual":true,"expected":false,"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:530:32)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Conditionals Should apply a conditional based on a true computedValue","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"Should apply a conditional based on a true computedValue"},{"ancestorTitles":["jsonLogic: cross-values validations","Conditionals"],"duration":0,"failureDetails":[{"matcherResult":{"expected":{"field_c":"Required field"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"field_c\": \"Required field\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"field_c\": \"Required field\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:548:72)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Conditionals Handle multiple computedValue checks by ANDing them together","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"failed","title":"Handle multiple computedValue checks by ANDing them together"},{"ancestorTitles":["jsonLogic: cross-values validations","Conditionals"],"duration":0,"failureDetails":[{"matcherResult":{"expected":{"field_c":"Required field"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"field_c\": \"Required field\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"field_c\": \"Required field\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:566:72)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Conditionals Handle having a true condition with both validations and computedValue checks","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"failed","title":"Handle having a true condition with both validations and computedValue checks"},{"ancestorTitles":["jsonLogic: cross-values validations","Conditionals"],"duration":1,"failureDetails":[{"matcherResult":{"expected":{"field_b":"Must be greater than Field A + 10"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"field_b\": \"Must be greater than Field A + 10\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"field_b\": \"Must be greater than Field A + 10\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:580:72)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Conditionals Apply validations and computed values on normal if statement.","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"failed","title":"Apply validations and computed values on normal if statement."},{"ancestorTitles":["jsonLogic: cross-values validations","Conditionals"],"duration":1,"failureDetails":[{"matcherResult":{"expected":{"field_b":"Must be greater than A"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"field_b\": \"Must be greater than A\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"field_b\": \"Must be greater than A\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js:593:72)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"jsonLogic: cross-values validations Conditionals When we have a required validation on a top level property and another validation is added, both should be accounted for.","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"When we have a required validation on a top level property and another validation is added, both should be accounted for."}],"endTime":1741605290607,"message":"\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Does not conflict with native JSON schema › Given an optional field and empty value, jsonLogic validations are ignored\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32m{\"field_b\": \"Must be greater than field_a\"}\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 50 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 51 |\u001b[39m expect(handleValidation({})\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 52 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m0\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 53 |\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[32m'Must be greater than field_a'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 54 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 55 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[32m'incorrect value'\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:52:72)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Does not conflict with native JSON schema › Native validations have higher precedence than jsonLogic validations\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32m{\"field_a\": \"Must be a multiple of 10\"}\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 67 |\u001b[39m field_a\u001b[33m:\u001b[39m \u001b[32m'Must be greater or equal to 100'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 68 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 69 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m101\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 70 |\u001b[39m field_a\u001b[33m:\u001b[39m \u001b[32m'Must be a multiple of 10'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 71 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 72 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m110\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:69:61)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Relative: <, >, = › bigger: field_a > field_b\u001b[39m\u001b[22m\n\n TypeError: Cannot read properties of undefined (reading 'field_a')\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 84 |\u001b[39m \u001b[36mconst\u001b[39m { handleValidation } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 85 |\u001b[39m \u001b[36mconst\u001b[39m { formErrors } \u001b[33m=\u001b[39m handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m1\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m2\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 86 |\u001b[39m expect(formErrors\u001b[33m.\u001b[39mfield_a)\u001b[33m.\u001b[39mtoEqual(\u001b[32m'Field A must be bigger than field B'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 87 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m2\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m0\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 88 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 89 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.field_a (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:86:25)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Relative: <, >, = › smaller: field_a < field_b\u001b[39m\u001b[22m\n\n TypeError: Cannot read properties of undefined (reading 'field_a')\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 97 |\u001b[39m \u001b[36mconst\u001b[39m { handleValidation } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 98 |\u001b[39m \u001b[36mconst\u001b[39m { formErrors } \u001b[33m=\u001b[39m handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m2\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m2\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 99 |\u001b[39m expect(formErrors\u001b[33m.\u001b[39mfield_a)\u001b[33m.\u001b[39mtoEqual(\u001b[32m'Field A must be smaller than field B'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 100 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m0\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m2\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 101 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 102 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.field_a (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:99:25)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Relative: <, >, = › equal: field_a = field_b\u001b[39m\u001b[22m\n\n TypeError: Cannot read properties of undefined (reading 'field_a')\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 110 |\u001b[39m \u001b[36mconst\u001b[39m { handleValidation } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 111 |\u001b[39m \u001b[36mconst\u001b[39m { formErrors } \u001b[33m=\u001b[39m handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m3\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m2\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 112 |\u001b[39m expect(formErrors\u001b[33m.\u001b[39mfield_a)\u001b[33m.\u001b[39mtoEqual(\u001b[32m'Field A must equal field B'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 113 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m2\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m2\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 114 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 115 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.field_a (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:112:25)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Incorrectly written schemas › \"x-jsf-logic.validations: throw when theres a missing rule\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\n Expected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: Validation \"a_greater_than_ten\" has missing rule.]\u001b[39m\n\n Number of calls: \u001b[31m0\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 189 |\u001b[39m \u001b[36mconst\u001b[39m { error } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 190 |\u001b[39m \u001b[36mconst\u001b[39m expectedError \u001b[33m=\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mError\u001b[39m(expectedErrorString)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 191 |\u001b[39m expect(console\u001b[33m.\u001b[39merror)\u001b[33m.\u001b[39mtoHaveBeenCalledWith(\u001b[32m'JSON Schema invalid!'\u001b[39m\u001b[33m,\u001b[39m expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 192 |\u001b[39m expect(error)\u001b[33m.\u001b[39mtoEqual(expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 193 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 194 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toHaveBeenCalledWith (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:191:29)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Incorrectly written schemas › \"x-jsf-logic.validations: throw when theres a value that does not exist in a rule\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\n Expected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: rule \"a_equals_ten\" has no variable \"field_a\".]\u001b[39m\n\n Number of calls: \u001b[31m0\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 189 |\u001b[39m \u001b[36mconst\u001b[39m { error } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 190 |\u001b[39m \u001b[36mconst\u001b[39m expectedError \u001b[33m=\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mError\u001b[39m(expectedErrorString)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 191 |\u001b[39m expect(console\u001b[33m.\u001b[39merror)\u001b[33m.\u001b[39mtoHaveBeenCalledWith(\u001b[32m'JSON Schema invalid!'\u001b[39m\u001b[33m,\u001b[39m expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 192 |\u001b[39m expect(error)\u001b[33m.\u001b[39mtoEqual(expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 193 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 194 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toHaveBeenCalledWith (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:191:29)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Incorrectly written schemas › \"x-jsf-logic.computedValues: throw when theres a value that does not exist in a rule\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\n Expected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: rule \"a_times_ten\" has no variable \"field_a\".]\u001b[39m\n\n Number of calls: \u001b[31m0\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 189 |\u001b[39m \u001b[36mconst\u001b[39m { error } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 190 |\u001b[39m \u001b[36mconst\u001b[39m expectedError \u001b[33m=\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mError\u001b[39m(expectedErrorString)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 191 |\u001b[39m expect(console\u001b[33m.\u001b[39merror)\u001b[33m.\u001b[39mtoHaveBeenCalledWith(\u001b[32m'JSON Schema invalid!'\u001b[39m\u001b[33m,\u001b[39m expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 192 |\u001b[39m expect(error)\u001b[33m.\u001b[39mtoEqual(expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 193 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 194 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toHaveBeenCalledWith (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:191:29)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Incorrectly written schemas › \"x-jsf-logic.computedValues: throw when theres a missing computed value\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\n Expected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: Computed value \"a_plus_ten\" has missing rule.]\u001b[39m\n\n Number of calls: \u001b[31m0\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 189 |\u001b[39m \u001b[36mconst\u001b[39m { error } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 190 |\u001b[39m \u001b[36mconst\u001b[39m expectedError \u001b[33m=\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mError\u001b[39m(expectedErrorString)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 191 |\u001b[39m expect(console\u001b[33m.\u001b[39merror)\u001b[33m.\u001b[39mtoHaveBeenCalledWith(\u001b[32m'JSON Schema invalid!'\u001b[39m\u001b[33m,\u001b[39m expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 192 |\u001b[39m expect(error)\u001b[33m.\u001b[39mtoEqual(expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 193 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 194 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toHaveBeenCalledWith (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:191:29)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Incorrectly written schemas › \"x-jsf-logic-computedAttrs: error if theres a value that does not exist on an attribute.\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\n Expected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: Computed value \"iDontExist\" doesn't exist in field \"field_a\".]\u001b[39m\n\n Number of calls: \u001b[31m0\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 189 |\u001b[39m \u001b[36mconst\u001b[39m { error } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 190 |\u001b[39m \u001b[36mconst\u001b[39m expectedError \u001b[33m=\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mError\u001b[39m(expectedErrorString)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 191 |\u001b[39m expect(console\u001b[33m.\u001b[39merror)\u001b[33m.\u001b[39mtoHaveBeenCalledWith(\u001b[32m'JSON Schema invalid!'\u001b[39m\u001b[33m,\u001b[39m expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 192 |\u001b[39m expect(error)\u001b[33m.\u001b[39mtoEqual(expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 193 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 194 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toHaveBeenCalledWith (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:191:29)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Incorrectly written schemas › \"x-jsf-logic-computedAttrs: error if theres a value that does not exist on a template string (title).\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\n Expected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: Computed value \"iDontExist\" doesn't exist in field \"field_a\".]\u001b[39m\n\n Number of calls: \u001b[31m0\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 189 |\u001b[39m \u001b[36mconst\u001b[39m { error } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 190 |\u001b[39m \u001b[36mconst\u001b[39m expectedError \u001b[33m=\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mError\u001b[39m(expectedErrorString)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 191 |\u001b[39m expect(console\u001b[33m.\u001b[39merror)\u001b[33m.\u001b[39mtoHaveBeenCalledWith(\u001b[32m'JSON Schema invalid!'\u001b[39m\u001b[33m,\u001b[39m expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 192 |\u001b[39m expect(error)\u001b[33m.\u001b[39mtoEqual(expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 193 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 194 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toHaveBeenCalledWith (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:191:29)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Incorrectly written schemas › \"x-jsf-logic-computedAttrs: error if theres a value that does not exist on a template string (description).\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\n Expected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: Computed value \"iDontExist\" doesn't exist in field \"field_a\".]\u001b[39m\n\n Number of calls: \u001b[31m0\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 189 |\u001b[39m \u001b[36mconst\u001b[39m { error } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 190 |\u001b[39m \u001b[36mconst\u001b[39m expectedError \u001b[33m=\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mError\u001b[39m(expectedErrorString)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 191 |\u001b[39m expect(console\u001b[33m.\u001b[39merror)\u001b[33m.\u001b[39mtoHaveBeenCalledWith(\u001b[32m'JSON Schema invalid!'\u001b[39m\u001b[33m,\u001b[39m expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 192 |\u001b[39m expect(error)\u001b[33m.\u001b[39mtoEqual(expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 193 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 194 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toHaveBeenCalledWith (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:191:29)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Incorrectly written schemas › \"x-jsf-logic-computedAttrs:, error if theres a value referenced that does not exist on an inline rule.\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\n Expected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: fieldName \"IdontExist\" doesn't exist in field \"field_a.x-jsf-logic-computedAttrs.title\".]\u001b[39m\n\n Number of calls: \u001b[31m0\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 189 |\u001b[39m \u001b[36mconst\u001b[39m { error } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 190 |\u001b[39m \u001b[36mconst\u001b[39m expectedError \u001b[33m=\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mError\u001b[39m(expectedErrorString)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 191 |\u001b[39m expect(console\u001b[33m.\u001b[39merror)\u001b[33m.\u001b[39mtoHaveBeenCalledWith(\u001b[32m'JSON Schema invalid!'\u001b[39m\u001b[33m,\u001b[39m expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 192 |\u001b[39m expect(error)\u001b[33m.\u001b[39mtoEqual(expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 193 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 194 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toHaveBeenCalledWith (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:191:29)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Incorrectly written schemas › \"x-jsf-logic.validations: error if a field does not exist in a deeply nested rule\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\n Expected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: rule \"dummy_rule\" has no variable \"field_b\".]\u001b[39m\n\n Number of calls: \u001b[31m0\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 189 |\u001b[39m \u001b[36mconst\u001b[39m { error } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 190 |\u001b[39m \u001b[36mconst\u001b[39m expectedError \u001b[33m=\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mError\u001b[39m(expectedErrorString)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 191 |\u001b[39m expect(console\u001b[33m.\u001b[39merror)\u001b[33m.\u001b[39mtoHaveBeenCalledWith(\u001b[32m'JSON Schema invalid!'\u001b[39m\u001b[33m,\u001b[39m expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 192 |\u001b[39m expect(error)\u001b[33m.\u001b[39mtoEqual(expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 193 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 194 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toHaveBeenCalledWith (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:191:29)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Incorrectly written schemas › \"x-jsf-logic.validations: error if rule does not exist on a fieldset property\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\n Expected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: rule \"dummy_rule\" has no variable \"field_a\".]\u001b[39m\n\n Number of calls: \u001b[31m0\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 189 |\u001b[39m \u001b[36mconst\u001b[39m { error } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 190 |\u001b[39m \u001b[36mconst\u001b[39m expectedError \u001b[33m=\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mError\u001b[39m(expectedErrorString)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 191 |\u001b[39m expect(console\u001b[33m.\u001b[39merror)\u001b[33m.\u001b[39mtoHaveBeenCalledWith(\u001b[32m'JSON Schema invalid!'\u001b[39m\u001b[33m,\u001b[39m expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 192 |\u001b[39m expect(error)\u001b[33m.\u001b[39mtoEqual(expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 193 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 194 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toHaveBeenCalledWith (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:191:29)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Incorrectly written schemas › \"x-jsf-validations: error if a validation name does not exist\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\n Expected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: \"field_a\" required validation \"iDontExist\" doesn't exist.]\u001b[39m\n\n Number of calls: \u001b[31m0\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 189 |\u001b[39m \u001b[36mconst\u001b[39m { error } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 190 |\u001b[39m \u001b[36mconst\u001b[39m expectedError \u001b[33m=\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mError\u001b[39m(expectedErrorString)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 191 |\u001b[39m expect(console\u001b[33m.\u001b[39merror)\u001b[33m.\u001b[39mtoHaveBeenCalledWith(\u001b[32m'JSON Schema invalid!'\u001b[39m\u001b[33m,\u001b[39m expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 192 |\u001b[39m expect(error)\u001b[33m.\u001b[39mtoEqual(expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 193 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 194 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toHaveBeenCalledWith (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:191:29)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Incorrectly written schemas › \"x-jsf-logic.validations: A top level logic keyword will not be able to reference fieldset properties\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\n Expected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: rule \"validation_parent\" has no variable \"child\".]\u001b[39m\n\n Number of calls: \u001b[31m0\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 189 |\u001b[39m \u001b[36mconst\u001b[39m { error } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 190 |\u001b[39m \u001b[36mconst\u001b[39m expectedError \u001b[33m=\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mError\u001b[39m(expectedErrorString)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 191 |\u001b[39m expect(console\u001b[33m.\u001b[39merror)\u001b[33m.\u001b[39mtoHaveBeenCalledWith(\u001b[32m'JSON Schema invalid!'\u001b[39m\u001b[33m,\u001b[39m expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 192 |\u001b[39m expect(error)\u001b[33m.\u001b[39mtoEqual(expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 193 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 194 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toHaveBeenCalledWith (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:191:29)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Incorrectly written schemas › \"x-jsf-logic.validations: error if unknown operation\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\n Expected: \u001b[32m\"JSON Schema invalid!\"\u001b[39m, \u001b[32m[Error: [json-schema-form] json-logic error: in \"badOperator\" rule there is an unknown operator \"++\".]\u001b[39m\n\n Number of calls: \u001b[31m0\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 189 |\u001b[39m \u001b[36mconst\u001b[39m { error } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 190 |\u001b[39m \u001b[36mconst\u001b[39m expectedError \u001b[33m=\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mError\u001b[39m(expectedErrorString)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 191 |\u001b[39m expect(console\u001b[33m.\u001b[39merror)\u001b[33m.\u001b[39mtoHaveBeenCalledWith(\u001b[32m'JSON Schema invalid!'\u001b[39m\u001b[33m,\u001b[39m expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 192 |\u001b[39m expect(error)\u001b[33m.\u001b[39mtoEqual(expectedError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 193 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 194 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toHaveBeenCalledWith (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:191:29)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Arithmetic: +, -, *, / › multiple: field_a > field_b * 2\u001b[39m\u001b[22m\n\n TypeError: Cannot read properties of undefined (reading 'field_a')\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 205 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 206 |\u001b[39m \u001b[36mconst\u001b[39m { formErrors } \u001b[33m=\u001b[39m handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m1\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m4\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 207 |\u001b[39m expect(formErrors\u001b[33m.\u001b[39mfield_a)\u001b[33m.\u001b[39mtoEqual(\u001b[32m'Field A must be at least twice as big as field b'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 208 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m3\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m1\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 209 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 210 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.field_a (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:207:25)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Arithmetic: +, -, *, / › divide: field_a > field_b / 2\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32m{\"field_a\": \"Field A must be greater than field_b / 2\"}\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 219 |\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 220 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 221 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m2\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m4\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 222 |\u001b[39m field_a\u001b[33m:\u001b[39m \u001b[32m'Field A must be greater than field_b / 2'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 223 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 224 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m3\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m5\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:221:71)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Arithmetic: +, -, *, / › sum: field_a > field_b + field_c\u001b[39m\u001b[22m\n\n TypeError: Cannot read properties of undefined (reading 'field_a')\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 236 |\u001b[39m \u001b[36mconst\u001b[39m { handleValidation } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 237 |\u001b[39m \u001b[36mconst\u001b[39m { formErrors } \u001b[33m=\u001b[39m handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m0\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m1\u001b[39m\u001b[33m,\u001b[39m field_c\u001b[33m:\u001b[39m \u001b[35m2\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 238 |\u001b[39m expect(formErrors\u001b[33m.\u001b[39mfield_a)\u001b[33m.\u001b[39mtoEqual(\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 239 |\u001b[39m \u001b[32m'Field A must be greater than field_b and field_b added together'\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 240 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 241 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m4\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m1\u001b[39m\u001b[33m,\u001b[39m field_c\u001b[33m:\u001b[39m \u001b[35m2\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.field_a (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:238:25)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Logical: ||, && › AND: field_a > field_b && field_a > field_c (implicit with multiple rules in a single field)\u001b[39m\u001b[22m\n\n TypeError: Cannot read properties of undefined (reading 'field_a')\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 279 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 280 |\u001b[39m \u001b[36mconst\u001b[39m { handleValidation } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 281 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m1\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m\u001b[33m,\u001b[39m field_c\u001b[33m:\u001b[39m \u001b[35m0\u001b[39m })\u001b[33m.\u001b[39mformErrors\u001b[33m.\u001b[39mfield_a)\u001b[33m.\u001b[39mtoEqual(\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 282 |\u001b[39m \u001b[32m'Field A must be greater than field_b'\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 283 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 284 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m1\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m0\u001b[39m\u001b[33m,\u001b[39m field_c\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m })\u001b[33m.\u001b[39mformErrors\u001b[33m.\u001b[39mfield_a)\u001b[33m.\u001b[39mtoEqual(\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:281:82)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Logical: ||, && › OR: field_a > field_b or field_a > field_c\u001b[39m\u001b[22m\n\n TypeError: Cannot read properties of undefined (reading 'field_a')\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 303 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 304 |\u001b[39m \u001b[36mconst\u001b[39m { handleValidation } \u001b[33m=\u001b[39m createHeadlessForm(schema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 305 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m0\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m\u001b[33m,\u001b[39m field_c\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m })\u001b[33m.\u001b[39mformErrors\u001b[33m.\u001b[39mfield_a)\u001b[33m.\u001b[39mtoEqual(\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 306 |\u001b[39m \u001b[32m'Field A must be greater than field_b or field_c'\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 307 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 308 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m1\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m0\u001b[39m\u001b[33m,\u001b[39m field_c\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:305:83)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Multiple validations › two rules: A > B; A is even\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"field_a\": \"A must be even\",\u001b[39m\n \u001b[2m \"field_b\": \"Required field\",\u001b[22m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 318 |\u001b[39m it(\u001b[32m'two rules: A > B; A is even'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 319 |\u001b[39m \u001b[36mconst\u001b[39m { handleValidation } \u001b[33m=\u001b[39m createHeadlessForm(multiRuleSchema\u001b[33m,\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 320 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m1\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 321 |\u001b[39m field_a\u001b[33m:\u001b[39m \u001b[32m'A must be even'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 322 |\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[32m'Required field'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 323 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:320:59)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Multiple validations › 2 seperate fields with rules failing\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32m{\"field_a\": \"A must be bigger than B\", \"field_b\": \"B must be even\"}\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 335 |\u001b[39m strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 336 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 337 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m1\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m3\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 338 |\u001b[39m field_a\u001b[33m:\u001b[39m \u001b[32m'A must be bigger than B'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 339 |\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[32m'B must be even'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 340 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:337:71)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Derive values › field_b is field_a * 2\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32m\"This field is 2 times bigger than field_a with value of 4.\"\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 350 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 351 |\u001b[39m \u001b[36mconst\u001b[39m fieldB \u001b[33m=\u001b[39m fields\u001b[33m.\u001b[39mfind((i) \u001b[33m=>\u001b[39m i\u001b[33m.\u001b[39mname \u001b[33m===\u001b[39m \u001b[32m'field_b'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 352 |\u001b[39m expect(fieldB\u001b[33m.\u001b[39mdescription)\u001b[33m.\u001b[39mtoEqual(\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 353 |\u001b[39m \u001b[32m'This field is 2 times bigger than field_a with value of 4.'\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 354 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 355 |\u001b[39m expect(fieldB\u001b[33m.\u001b[39m\u001b[36mdefault\u001b[39m)\u001b[33m.\u001b[39mtoEqual(\u001b[35m4\u001b[39m)\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:352:34)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Derive values › A forced value will not be set when const and default are not equal\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 2\u001b[39m\n \u001b[31m+ Received + 10\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"const\": 6,\u001b[39m\n \u001b[32m- \"default\": 4,\u001b[39m\n \u001b[31m+ \"inputType\": \"text\",\u001b[39m\n \u001b[31m+ \"isVisible\": true,\u001b[39m\n \u001b[31m+ \"jsonType\": \"number\",\u001b[39m\n \u001b[31m+ \"name\": \"field_b\",\u001b[39m\n \u001b[31m+ \"required\": false,\u001b[39m\n \u001b[31m+ \"type\": \"text\",\u001b[39m\n \u001b[31m+ \"x-jsf-logic-computedAttrs\": Object {\u001b[39m\n \u001b[31m+ \"const\": \"a_times_three\",\u001b[39m\n \u001b[31m+ \"default\": \"a_times_two\",\u001b[39m\n \u001b[31m+ },\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 365 |\u001b[39m initialValues\u001b[33m:\u001b[39m { field_a\u001b[33m:\u001b[39m \u001b[35m2\u001b[39m }\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 366 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 367 |\u001b[39m expect(fields[\u001b[35m1\u001b[39m])\u001b[33m.\u001b[39mtoMatchObject({ \u001b[36mconst\u001b[39m\u001b[33m:\u001b[39m \u001b[35m6\u001b[39m\u001b[33m,\u001b[39m \u001b[36mdefault\u001b[39m\u001b[33m:\u001b[39m \u001b[35m4\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 368 |\u001b[39m expect(fields[\u001b[35m1\u001b[39m])\u001b[33m.\u001b[39mnot\u001b[33m.\u001b[39mtoMatchObject({ forcedValue\u001b[33m:\u001b[39m expect\u001b[33m.\u001b[39many(\u001b[33mNumber\u001b[39m) })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 369 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 370 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:367:25)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Derive values › Derived errorMessages and statements work\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32m{\"field_b\": \"Must be bigger than 4\"}\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 375 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 376 |\u001b[39m \u001b[36mconst\u001b[39m fieldB \u001b[33m=\u001b[39m fields\u001b[33m.\u001b[39mfind((i) \u001b[33m=>\u001b[39m i\u001b[33m.\u001b[39mname \u001b[33m===\u001b[39m \u001b[32m'field_b'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 377 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m2\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m0\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 378 |\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[32m'Must be bigger than 4'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 379 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 380 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m2\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m100\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:377:71)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Derive values › Use a inline-rule in a schema for a title attribute\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32mundefined\u001b[39m\n Received: \u001b[31m{\"field_b\": \"Required field\"}\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 394 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 395 |\u001b[39m \u001b[36mconst\u001b[39m [\u001b[33m,\u001b[39m fieldB] \u001b[33m=\u001b[39m fields\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 396 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m0\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[36mnull\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 397 |\u001b[39m expect(fieldB\u001b[33m.\u001b[39mlabel)\u001b[33m.\u001b[39mtoEqual(\u001b[32m'I need this to work using the 10.'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 398 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 399 |\u001b[39m expect(fieldB\u001b[33m.\u001b[39mlabel)\u001b[33m.\u001b[39mtoEqual(\u001b[32m'I need this to work using the 20.'\u001b[39m)\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:396:74)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Derive values › Use multiple inline rules with different identifiers\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32mundefined\u001b[39m\n Received: \u001b[31m{\"field_b\": \"Required field\"}\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 408 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 409 |\u001b[39m \u001b[36mconst\u001b[39m [\u001b[33m,\u001b[39m fieldB] \u001b[33m=\u001b[39m fields\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 410 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[36mnull\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 411 |\u001b[39m expect(fieldB\u001b[33m.\u001b[39mdescription)\u001b[33m.\u001b[39mtoEqual(\u001b[32m'Must be between 5 and 20.'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 412 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 413 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:410:75)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Derive values › Use an inline rule in a schema for a title but it just uses the value\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32mundefined\u001b[39m\n Received: \u001b[31m{\"field_b\": \"Required field\"}\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 417 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 418 |\u001b[39m \u001b[36mconst\u001b[39m [\u001b[33m,\u001b[39m fieldB] \u001b[33m=\u001b[39m fields\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 419 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[36mnull\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 420 |\u001b[39m expect(fieldB\u001b[33m.\u001b[39mlabel)\u001b[33m.\u001b[39mtoEqual(\u001b[32m'20'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 421 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 422 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:419:75)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Derive values › Use an inline rule for a minimum, maximum value\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 2\u001b[39m\n \u001b[31m+ Received + 28\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"maximum\": NaN,\u001b[39m\n \u001b[32m- \"minimum\": NaN,\u001b[39m\n \u001b[31m+ \"inputType\": \"text\",\u001b[39m\n \u001b[31m+ \"isVisible\": true,\u001b[39m\n \u001b[31m+ \"jsonType\": \"number\",\u001b[39m\n \u001b[31m+ \"name\": \"field_b\",\u001b[39m\n \u001b[31m+ \"required\": false,\u001b[39m\n \u001b[31m+ \"type\": \"text\",\u001b[39m\n \u001b[31m+ \"x-jsf-logic-computedAttrs\": Object {\u001b[39m\n \u001b[31m+ \"maximum\": Object {\u001b[39m\n \u001b[31m+ \"rule\": Object {\u001b[39m\n \u001b[31m+ \"+\": Array [\u001b[39m\n \u001b[31m+ Object {\u001b[39m\n \u001b[31m+ \"var\": \"field_a\",\u001b[39m\n \u001b[31m+ },\u001b[39m\n \u001b[31m+ 10,\u001b[39m\n \u001b[31m+ ],\u001b[39m\n \u001b[31m+ },\u001b[39m\n \u001b[31m+ },\u001b[39m\n \u001b[31m+ \"minimum\": Object {\u001b[39m\n \u001b[31m+ \"rule\": Object {\u001b[39m\n \u001b[31m+ \"-\": Array [\u001b[39m\n \u001b[31m+ Object {\u001b[39m\n \u001b[31m+ \"var\": \"field_a\",\u001b[39m\n \u001b[31m+ },\u001b[39m\n \u001b[31m+ 10,\u001b[39m\n \u001b[31m+ ],\u001b[39m\n \u001b[31m+ },\u001b[39m\n \u001b[31m+ },\u001b[39m\n \u001b[31m+ },\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 433 |\u001b[39m \u001b[90m// We should probably set this as undefined when theres no values set?\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 434 |\u001b[39m \u001b[90m// tracked in INF-53.\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 435 |\u001b[39m expect(fieldB)\u001b[33m.\u001b[39mtoMatchObject({ minimum\u001b[33m:\u001b[39m \u001b[33mNaN\u001b[39m\u001b[33m,\u001b[39m maximum\u001b[33m:\u001b[39m \u001b[33mNaN\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 436 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[36mnull\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 437 |\u001b[39m expect(fieldB)\u001b[33m.\u001b[39mtoMatchObject({ minimum\u001b[33m:\u001b[39m \u001b[35m0\u001b[39m\u001b[33m,\u001b[39m maximum\u001b[33m:\u001b[39m \u001b[35m20\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 438 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m50\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m20\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:435:22)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Derive values › Mix use of multiple inline rules and an external rule\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32m\"Going to use 20 and 4\"\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 454 |\u001b[39m handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 455 |\u001b[39m \u001b[36mconst\u001b[39m [\u001b[33m,\u001b[39m fieldB] \u001b[33m=\u001b[39m fields\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 456 |\u001b[39m expect(fieldB\u001b[33m.\u001b[39mlabel)\u001b[33m.\u001b[39mtoEqual(\u001b[32m'Going to use 20 and 4'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 457 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 458 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 459 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:456:28)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Conditionals › when field_a > field_b, show field_c\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32mfalse\u001b[39m\n Received: \u001b[31mtrue\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 465 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 466 |\u001b[39m \u001b[36mconst\u001b[39m fieldC \u001b[33m=\u001b[39m fields\u001b[33m.\u001b[39mfind((i) \u001b[33m=>\u001b[39m i\u001b[33m.\u001b[39mname \u001b[33m===\u001b[39m \u001b[32m'field_c'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 467 |\u001b[39m expect(fieldC\u001b[33m.\u001b[39misVisible)\u001b[33m.\u001b[39mtoEqual(\u001b[36mfalse\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 468 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 469 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m1\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m3\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 470 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m1\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:467:32)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Conditionals › A schema with both a `x-jsf-validations` and `properties` check\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32mfalse\u001b[39m\n Received: \u001b[31mtrue\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 490 |\u001b[39m \u001b[36mconst\u001b[39m fieldC \u001b[33m=\u001b[39m fields\u001b[33m.\u001b[39mfind((i) \u001b[33m=>\u001b[39m i\u001b[33m.\u001b[39mname \u001b[33m===\u001b[39m \u001b[32m'field_c'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 491 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m1\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m3\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 492 |\u001b[39m expect(fieldC\u001b[33m.\u001b[39misVisible)\u001b[33m.\u001b[39mtoEqual(\u001b[36mfalse\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 493 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m3\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m 494 |\u001b[39m field_c\u001b[33m:\u001b[39m \u001b[32m'Required field'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 495 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:492:32)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Conditionals › Conditionally apply a validation on a property depending on values\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32mfalse\u001b[39m\n Received: \u001b[31mtrue\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 504 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 505 |\u001b[39m \u001b[36mconst\u001b[39m cField \u001b[33m=\u001b[39m fields\u001b[33m.\u001b[39mfind((i) \u001b[33m=>\u001b[39m i\u001b[33m.\u001b[39mname \u001b[33m===\u001b[39m \u001b[32m'field_c'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 506 |\u001b[39m expect(cField\u001b[33m.\u001b[39misVisible)\u001b[33m.\u001b[39mtoEqual(\u001b[36mfalse\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 507 |\u001b[39m expect(cField\u001b[33m.\u001b[39mdescription)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 508 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m5\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m 509 |\u001b[39m field_c\u001b[33m:\u001b[39m \u001b[32m'Required field'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:506:32)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Conditionals › Should apply a conditional based on a true computedValue\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32mfalse\u001b[39m\n Received: \u001b[31mtrue\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 528 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 529 |\u001b[39m \u001b[36mconst\u001b[39m cField \u001b[33m=\u001b[39m fields\u001b[33m.\u001b[39mfind((i) \u001b[33m=>\u001b[39m i\u001b[33m.\u001b[39mname \u001b[33m===\u001b[39m \u001b[32m'field_c'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 530 |\u001b[39m expect(cField\u001b[33m.\u001b[39misVisible)\u001b[33m.\u001b[39mtoEqual(\u001b[36mfalse\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 531 |\u001b[39m expect(cField\u001b[33m.\u001b[39mdescription)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 532 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m5\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m 533 |\u001b[39m field_c\u001b[33m:\u001b[39m \u001b[32m'Required field'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:530:32)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Conditionals › Handle multiple computedValue checks by ANDing them together\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32m{\"field_c\": \"Required field\"}\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 546 |\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[32m'Required field'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 547 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 548 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m8\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 549 |\u001b[39m field_c\u001b[33m:\u001b[39m \u001b[32m'Required field'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 550 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 551 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m8\u001b[39m\u001b[33m,\u001b[39m field_c\u001b[33m:\u001b[39m \u001b[35m0\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:548:72)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Conditionals › Handle having a true condition with both validations and computedValue checks\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32m{\"field_c\": \"Required field\"}\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 564 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m1\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m1\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 565 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m20\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 566 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m9\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 567 |\u001b[39m field_c\u001b[33m:\u001b[39m \u001b[32m'Required field'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 568 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 569 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m9\u001b[39m\u001b[33m,\u001b[39m field_c\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:566:72)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Conditionals › Apply validations and computed values on normal if statement.\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32m{\"field_b\": \"Must be greater than Field A + 10\"}\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 578 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 579 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m0\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m0\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 580 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m20\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m0\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 581 |\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[32m'Must be greater than Field A + 10'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 582 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 583 |\u001b[39m \u001b[36mconst\u001b[39m [\u001b[33m,\u001b[39m fieldB] \u001b[33m=\u001b[39m fields\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:580:72)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mjsonLogic: cross-values validations › Conditionals › When we have a required validation on a top level property and another validation is added, both should be accounted for.\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32m{\"field_b\": \"Must be greater than A\"}\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 591 |\u001b[39m { strictInputType\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 592 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 593 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m0\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 594 |\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[32m'Must be greater than A'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 595 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 596 |\u001b[39m expect(handleValidation({ field_a\u001b[33m:\u001b[39m \u001b[35m10\u001b[39m\u001b[33m,\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[35m20\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual(undefined)\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/jsonLogic.test.js\u001b[39m\u001b[0m\u001b[2m:593:72)\u001b[22m\u001b[2m\u001b[22m\n","name":"/Users/luka.dornhecker/code/json-schema-form/src/tests/jsonLogic.test.js","startTime":1741605290101,"status":"failed","summary":""},{"assertionResults":[{"ancestorTitles":["createHeadlessForm"],"duration":3,"failureDetails":[{}],"failureMessages":["TypeError: Cannot read properties of undefined (reading 'properties')\n at properties (/Users/luka.dornhecker/code/json-schema-form/next/src/field/object.ts:16:28)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:201:26)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:218:13)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:109:38)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm returns empty result given no schema","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"returns empty result given no schema"},{"ancestorTitles":["createHeadlessForm"],"duration":2,"failureDetails":[{"matcherResult":{"actual":false,"expected":true,"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mtrue\u001b[39m\nReceived: \u001b[31mfalse\u001b[39m","name":"toBe","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mtrue\u001b[39m\nReceived: \u001b[31mfalse\u001b[39m\n at Object.toBe (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:122:28)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm returns an error given invalid schema","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"failed","title":"returns an error given invalid schema"},{"ancestorTitles":["createHeadlessForm","field support fallback"],"duration":2,"failureDetails":[{"matcherResult":{"expected":{"inverse":false},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32mAny\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32mAny\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:153:26)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support fallback sets type from presentation.inputType","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"sets type from presentation.inputType"},{"ancestorTitles":["createHeadlessForm","field support fallback"],"duration":1,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoHaveLength\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected length: \u001b[32m0\u001b[39m\nReceived length: \u001b[31m1\u001b[39m\nReceived array: \u001b[31m[{\"inputType\": \"text\", \"isVisible\": true, \"jsonType\": \"string\", \"name\": \"test\", \"required\": false, \"type\": \"text\"}]\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoHaveLength\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected length: \u001b[32m0\u001b[39m\nReceived length: \u001b[31m1\u001b[39m\nReceived array: \u001b[31m[{\"inputType\": \"text\", \"isVisible\": true, \"jsonType\": \"string\", \"name\": \"test\", \"required\": false, \"type\": \"text\"}]\u001b[39m\n at Object.toHaveLength (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:177:22)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support fallback fails given a json schema without inputType","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"fails given a json schema without inputType"},{"ancestorTitles":["createHeadlessForm","field support fallback"],"duration":0,"failureDetails":[{}],"failureMessages":["TypeError: Array type is not yet supported\n at buildFieldSchema (/Users/luka.dornhecker/code/json-schema-form/next/src/field/schema.ts:114:11)\n at buildFieldObject (/Users/luka.dornhecker/code/json-schema-form/next/src/field/object.ts:18:35)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:201:26)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:218:13)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:205:44)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support fallback given a json schema without inputType, sets type based on json type (when strictInputType:false)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"given a json schema without inputType, sets type based on json type (when strictInputType:false)"},{"ancestorTitles":["createHeadlessForm","field support fallback"],"duration":2,"failureDetails":[{"matcherResult":{"actual":"[\n {\n \"inputType\": \"text\",\n \"jsonType\": \"text\",\n \"label\": \"Default -> text\",\n \"name\": \"default\",\n \"type\": \"text\",\n },\n {\n \"inputType\": \"text\",\n \"jsonType\": \"text\",\n \"label\": \"With oneOf -> radio\",\n \"name\": \"with_oneOf\",\n \"options\": [\n {\n \"label\": \"Yes\",\n \"value\": \"yes\",\n },\n {\n \"label\": \"No\",\n \"value\": \"no\",\n },\n ],\n \"type\": \"text\",\n },\n {\n \"inputType\": \"text\",\n \"jsonType\": \"text\",\n \"label\": \"With format:email -> email\",\n \"name\": \"with_email\",\n \"type\": \"text\",\n },\n {\n \"inputType\": \"text\",\n \"jsonType\": \"text\",\n \"label\": \"With properties -> fieldset\",\n \"name\": \"with_object\",\n \"type\": \"text\",\n },\n {\n \"inputType\": \"text\",\n \"jsonType\": \"text\",\n \"label\": \"With items.anyOf -> select\",\n \"name\": \"with_items_anyOf\",\n \"options\": [\n {\n \"label\": \"Chrome\",\n \"value\": \"chr\",\n },\n {\n \"label\": \"Firefox\",\n \"value\": \"ff\",\n },\n {\n \"label\": \"Internet Explorer\",\n \"value\": \"ie\",\n },\n ],\n \"type\": \"text\",\n },\n {\n \"inputType\": \"text\",\n \"jsonType\": \"text\",\n \"label\": \"With items.properties -> group-array\",\n \"name\": \"with_items_properties\",\n \"type\": \"text\",\n },\n]","expected":"[\n {\n \"inputType\": \"text\",\n \"label\": \"Default -> text\",\n \"name\": \"default\",\n \"type\": \"text\",\n },\n {\n \"inputType\": \"radio\",\n \"label\": \"With oneOf -> radio\",\n \"name\": \"with_oneOf\",\n \"options\": [\n {\n \"label\": \"Yes\",\n \"value\": \"yes\",\n },\n {\n \"label\": \"No\",\n \"value\": \"no\",\n },\n ],\n \"type\": \"radio\",\n },\n {\n \"inputType\": \"email\",\n \"label\": \"With format:email -> email\",\n \"name\": \"with_email\",\n \"type\": \"email\",\n },\n {\n \"inputType\": \"select\",\n \"label\": \"With properties -> fieldset\",\n \"name\": \"with_object\",\n \"type\": \"select\",\n },\n {\n \"inputType\": \"text\",\n \"label\": \"With items.anyOf -> select\",\n \"name\": \"with_items_anyOf\",\n \"options\": [\n {\n \"label\": \"Chrome\",\n \"value\": \"chr\",\n },\n {\n \"label\": \"Firefox\",\n \"value\": \"ff\",\n },\n {\n \"label\": \"Internet Explorer\",\n \"value\": \"ie\",\n },\n ],\n \"type\": \"text\",\n },\n {\n \"fields\": [\n {\n \"inputType\": \"text\",\n \"label\": \"Role\",\n \"name\": \"role\",\n \"type\": \"text\",\n },\n {\n \"inputType\": \"text\",\n \"label\": \"Years\",\n \"name\": \"years\",\n \"type\": \"text\",\n },\n ],\n \"inputType\": \"group-array\",\n \"label\": \"With items.properties -> group-array\",\n \"name\": \"with_items_properties\",\n \"type\": \"group-array\",\n },\n]","message":"\u001b[2mexpect(\u001b[22m\u001b[38;2;0;95;95m\u001b[48;2;215;255;255mreceived\u001b[49m\u001b[39m\u001b[2m).\u001b[22mtoMatchInlineSnapshot\u001b[2m(\u001b[22m\u001b[38;2;128;0;128m\u001b[48;2;255;215;255msnapshot\u001b[49m\u001b[39m\u001b[2m)\u001b[22m\n\nSnapshot name: `createHeadlessForm field support fallback given a json schema without json type, sets type based on structure (when strictInputType:false) 1`\n\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- Snapshot - 21\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ Received + 13\u001b[49m\u001b[39m\n\n\u001b[33m@@ -1,14 +1,16 @@\u001b[39m\n\u001b[2m [\u001b[22m\n\u001b[2m {\u001b[22m\n\u001b[2m \"inputType\": \"text\",\u001b[22m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"jsonType\": \"text\",\u001b[49m\u001b[39m\n\u001b[2m \"label\": \"Default -> text\",\u001b[22m\n\u001b[2m \"name\": \"default\",\u001b[22m\n\u001b[2m \"type\": \"text\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m {\u001b[22m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"inputType\": \"radio\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"inputType\": \"text\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"jsonType\": \"text\",\u001b[49m\u001b[39m\n\u001b[2m \"label\": \"With oneOf -> radio\",\u001b[22m\n\u001b[2m \"name\": \"with_oneOf\",\u001b[22m\n\u001b[2m \"options\": [\u001b[22m\n\u001b[2m {\u001b[22m\n\u001b[2m \"label\": \"Yes\",\u001b[22m\n\u001b[33m@@ -17,26 +19,29 @@\u001b[39m\n\u001b[2m {\u001b[22m\n\u001b[2m \"label\": \"No\",\u001b[22m\n\u001b[2m \"value\": \"no\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"type\": \"radio\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"type\": \"text\",\u001b[49m\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m {\u001b[22m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"inputType\": \"email\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"inputType\": \"text\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"jsonType\": \"text\",\u001b[49m\u001b[39m\n\u001b[2m \"label\": \"With format:email -> email\",\u001b[22m\n\u001b[2m \"name\": \"with_email\",\u001b[22m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"type\": \"email\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"type\": \"text\",\u001b[49m\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m {\u001b[22m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"inputType\": \"select\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"inputType\": \"text\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"jsonType\": \"text\",\u001b[49m\u001b[39m\n\u001b[2m \"label\": \"With properties -> fieldset\",\u001b[22m\n\u001b[2m \"name\": \"with_object\",\u001b[22m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"type\": \"select\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"type\": \"text\",\u001b[49m\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m {\u001b[22m\n\u001b[2m \"inputType\": \"text\",\u001b[22m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"jsonType\": \"text\",\u001b[49m\u001b[39m\n\u001b[2m \"label\": \"With items.anyOf -> select\",\u001b[22m\n\u001b[2m \"name\": \"with_items_anyOf\",\u001b[22m\n\u001b[2m \"options\": [\u001b[22m\n\u001b[2m {\u001b[22m\n\u001b[2m \"label\": \"Chrome\",\u001b[22m\n\u001b[33m@@ -49,28 +54,15 @@\u001b[39m\n\u001b[2m {\u001b[22m\n\u001b[2m \"label\": \"Internet Explorer\",\u001b[22m\n\u001b[2m \"value\": \"ie\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"type\": \"text\",\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- },\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- {\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"fields\": [\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- {\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"inputType\": \"text\",\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"label\": \"Role\",\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"name\": \"role\",\u001b[49m\u001b[39m\n\u001b[2m \"type\": \"text\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m {\u001b[22m\n\u001b[2m \"inputType\": \"text\",\u001b[22m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"label\": \"Years\",\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"name\": \"years\",\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"type\": \"text\",\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- },\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- ],\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"inputType\": \"group-array\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"jsonType\": \"text\",\u001b[49m\u001b[39m\n\u001b[2m \"label\": \"With items.properties -> group-array\",\u001b[22m\n\u001b[2m \"name\": \"with_items_properties\",\u001b[22m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"type\": \"group-array\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"type\": \"text\",\u001b[49m\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m ]\u001b[22m","name":"toMatchInlineSnapshot","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[38;2;0;95;95m\u001b[48;2;215;255;255mreceived\u001b[49m\u001b[39m\u001b[2m).\u001b[22mtoMatchInlineSnapshot\u001b[2m(\u001b[22m\u001b[38;2;128;0;128m\u001b[48;2;255;215;255msnapshot\u001b[49m\u001b[39m\u001b[2m)\u001b[22m\n\nSnapshot name: `createHeadlessForm field support fallback given a json schema without json type, sets type based on structure (when strictInputType:false) 1`\n\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- Snapshot - 21\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ Received + 13\u001b[49m\u001b[39m\n\n\u001b[33m@@ -1,14 +1,16 @@\u001b[39m\n\u001b[2m [\u001b[22m\n\u001b[2m {\u001b[22m\n\u001b[2m \"inputType\": \"text\",\u001b[22m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"jsonType\": \"text\",\u001b[49m\u001b[39m\n\u001b[2m \"label\": \"Default -> text\",\u001b[22m\n\u001b[2m \"name\": \"default\",\u001b[22m\n\u001b[2m \"type\": \"text\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m {\u001b[22m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"inputType\": \"radio\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"inputType\": \"text\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"jsonType\": \"text\",\u001b[49m\u001b[39m\n\u001b[2m \"label\": \"With oneOf -> radio\",\u001b[22m\n\u001b[2m \"name\": \"with_oneOf\",\u001b[22m\n\u001b[2m \"options\": [\u001b[22m\n\u001b[2m {\u001b[22m\n\u001b[2m \"label\": \"Yes\",\u001b[22m\n\u001b[33m@@ -17,26 +19,29 @@\u001b[39m\n\u001b[2m {\u001b[22m\n\u001b[2m \"label\": \"No\",\u001b[22m\n\u001b[2m \"value\": \"no\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"type\": \"radio\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"type\": \"text\",\u001b[49m\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m {\u001b[22m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"inputType\": \"email\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"inputType\": \"text\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"jsonType\": \"text\",\u001b[49m\u001b[39m\n\u001b[2m \"label\": \"With format:email -> email\",\u001b[22m\n\u001b[2m \"name\": \"with_email\",\u001b[22m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"type\": \"email\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"type\": \"text\",\u001b[49m\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m {\u001b[22m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"inputType\": \"select\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"inputType\": \"text\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"jsonType\": \"text\",\u001b[49m\u001b[39m\n\u001b[2m \"label\": \"With properties -> fieldset\",\u001b[22m\n\u001b[2m \"name\": \"with_object\",\u001b[22m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"type\": \"select\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"type\": \"text\",\u001b[49m\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m {\u001b[22m\n\u001b[2m \"inputType\": \"text\",\u001b[22m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"jsonType\": \"text\",\u001b[49m\u001b[39m\n\u001b[2m \"label\": \"With items.anyOf -> select\",\u001b[22m\n\u001b[2m \"name\": \"with_items_anyOf\",\u001b[22m\n\u001b[2m \"options\": [\u001b[22m\n\u001b[2m {\u001b[22m\n\u001b[2m \"label\": \"Chrome\",\u001b[22m\n\u001b[33m@@ -49,28 +54,15 @@\u001b[39m\n\u001b[2m {\u001b[22m\n\u001b[2m \"label\": \"Internet Explorer\",\u001b[22m\n\u001b[2m \"value\": \"ie\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"type\": \"text\",\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- },\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- {\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"fields\": [\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- {\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"inputType\": \"text\",\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"label\": \"Role\",\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"name\": \"role\",\u001b[49m\u001b[39m\n\u001b[2m \"type\": \"text\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m {\u001b[22m\n\u001b[2m \"inputType\": \"text\",\u001b[22m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"label\": \"Years\",\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"name\": \"years\",\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"type\": \"text\",\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- },\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- ],\u001b[49m\u001b[39m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"inputType\": \"group-array\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"jsonType\": \"text\",\u001b[49m\u001b[39m\n\u001b[2m \"label\": \"With items.properties -> group-array\",\u001b[22m\n\u001b[2m \"name\": \"with_items_properties\",\u001b[22m\n\u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"type\": \"group-array\",\u001b[49m\u001b[39m\n\u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"type\": \"text\",\u001b[49m\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m ]\u001b[22m\n at Object.toMatchInlineSnapshot (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:359:35)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support fallback given a json schema without json type, sets type based on structure (when strictInputType:false)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"given a json schema without json type, sets type based on structure (when strictInputType:false)"},{"ancestorTitles":["createHeadlessForm","field support"],"duration":1,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -6,7 +6,6 @@\u001b[39m\n\u001b[2m \"label\": \"Username\",\u001b[22m\n\u001b[2m \"maskSecret\": 2,\u001b[22m\n\u001b[2m \"maxLength\": 10,\u001b[22m\n\u001b[2m \"name\": \"username\",\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -6,7 +6,6 @@\u001b[39m\n\u001b[2m \"label\": \"Username\",\u001b[22m\n\u001b[2m \"maskSecret\": 2,\u001b[22m\n\u001b[2m \"maxLength\": 10,\u001b[22m\n\u001b[2m \"name\": \"username\",\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:477:25)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"text\" field type","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"support \"text\" field type"},{"ancestorTitles":["createHeadlessForm","field support","support \"select\" field type"],"duration":9,"failureDetails":[{"matcherResult":{"expected":{"benefits":"The option \"blah-blah\" is not valid."},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"benefits\": \"The option \\\"blah-blah\\\" is not valid.\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"benefits\": \"The option \\\"blah-blah\\\" is not valid.\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:451:60)\n at Object.assertOptionsAllowed (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:533:9)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"select\" field type support \"select\" field type @deprecated","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"failed","title":"support \"select\" field type @deprecated"},{"ancestorTitles":["createHeadlessForm","field support","support \"select\" field type"],"duration":1,"failureDetails":[{"matcherResult":{"actual":{"browsers":"Must match exactly one of the provided schemas"},"expected":{"browsers":"The option \"blah-blah\" is not valid."},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"browsers\": \"The option \\\"blah-blah\\\" is not valid.\",\u001b[39m\n\u001b[31m+ \"browsers\": \"Must match exactly one of the provided schemas\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"browsers\": \"The option \\\"blah-blah\\\" is not valid.\",\u001b[39m\n\u001b[31m+ \"browsers\": \"Must match exactly one of the provided schemas\",\u001b[39m\n\u001b[2m }\u001b[22m\n at toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:451:60)\n at Object.assertOptionsAllowed (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:567:9)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"select\" field type support \"select\" field type","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"failed","title":"support \"select\" field type"},{"ancestorTitles":["createHeadlessForm","field support","support \"select\" field type"],"duration":0,"failureDetails":[{}],"failureMessages":["TypeError: Array type is not yet supported\n at buildFieldSchema (/Users/luka.dornhecker/code/json-schema-form/next/src/field/schema.ts:114:11)\n at buildFieldObject (/Users/luka.dornhecker/code/json-schema-form/next/src/field/object.ts:18:35)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:201:26)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:218:13)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:575:42)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"select\" field type supports \"select\" field type with multiple options @deprecated","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"supports \"select\" field type with multiple options @deprecated"},{"ancestorTitles":["createHeadlessForm","field support","support \"select\" field type"],"duration":0,"failureDetails":[{}],"failureMessages":["TypeError: Array type is not yet supported\n at buildFieldSchema (/Users/luka.dornhecker/code/json-schema-form/next/src/field/schema.ts:114:11)\n at buildFieldObject (/Users/luka.dornhecker/code/json-schema-form/next/src/field/object.ts:18:35)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:201:26)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:218:13)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:604:42)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"select\" field type supports \"select\" field type with multiple options","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"supports \"select\" field type with multiple options"},{"ancestorTitles":["createHeadlessForm","field support","support \"select\" field type"],"duration":2,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -1,11 +1,10 @@\u001b[39m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"description\": \"This optional multi-select also includes a disabled option.\",\u001b[22m\n\u001b[2m \"label\": \"Browsers (multiple) (optional)\",\u001b[22m\n\u001b[32m- \"multiple\": true,\u001b[39m\n\u001b[2m \"name\": \"browsers_multi_optional\",\u001b[22m\n\u001b[2m \"options\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"label\": \"Chrome\",\u001b[22m\n\u001b[2m \"value\": \"chr\",\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -1,11 +1,10 @@\u001b[39m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"description\": \"This optional multi-select also includes a disabled option.\",\u001b[22m\n\u001b[2m \"label\": \"Browsers (multiple) (optional)\",\u001b[22m\n\u001b[32m- \"multiple\": true,\u001b[39m\n\u001b[2m \"name\": \"browsers_multi_optional\",\u001b[22m\n\u001b[2m \"options\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"label\": \"Chrome\",\u001b[22m\n\u001b[2m \"value\": \"chr\",\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:634:24)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"select\" field type supports \"select\" field type with multiple options and optional","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"supports \"select\" field type with multiple options and optional"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -12,9 +12,8 @@\u001b[39m\n\u001b[2m \"label\": \"No\",\u001b[22m\n\u001b[2m \"value\": \"no\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"radio\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ]\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -12,9 +12,8 @@\u001b[39m\n\u001b[2m \"label\": \"No\",\u001b[22m\n\u001b[2m \"value\": \"no\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"radio\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ]\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:665:24)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"radio\" field type support \"radio\" field type @deprecated","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"support \"radio\" field type @deprecated"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":1,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -12,9 +12,8 @@\u001b[39m\n\u001b[2m \"label\": \"No\",\u001b[22m\n\u001b[2m \"value\": \"no\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"radio\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ]\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -12,9 +12,8 @@\u001b[39m\n\u001b[2m \"label\": \"No\",\u001b[22m\n\u001b[2m \"value\": \"no\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"radio\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ]\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:695:24)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"radio\" field type support \"radio\" field string type","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"support \"radio\" field string type"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -12,9 +12,8 @@\u001b[39m\n\u001b[2m \"label\": \"No\",\u001b[22m\n\u001b[2m \"value\": false,\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"radio\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ]\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -12,9 +12,8 @@\u001b[39m\n\u001b[2m \"label\": \"No\",\u001b[22m\n\u001b[2m \"value\": false,\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"radio\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ]\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:728:24)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"radio\" field type support \"radio\" field boolean type","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"support \"radio\" field boolean type"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"radio\" field type supports \"radio\" field type with its \"card\" and \"card-expandable\" variants","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"supports \"radio\" field type with its \"card\" and \"card-expandable\" variants"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":2,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -12,9 +12,8 @@\u001b[39m\n\u001b[2m \"label\": \"No\",\u001b[22m\n\u001b[2m \"value\": \"false\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"radio\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ]\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -12,9 +12,8 @@\u001b[39m\n\u001b[2m \"label\": \"No\",\u001b[22m\n\u001b[2m \"value\": \"false\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"radio\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ]\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:833:24)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"radio\" field type support \"radio\" field string-y type","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"support \"radio\" field string-y type"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -16,9 +16,8 @@\u001b[39m\n\u001b[2m \"label\": \"Three\",\u001b[22m\n\u001b[2m \"value\": 3,\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"radio\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ]\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -16,9 +16,8 @@\u001b[39m\n\u001b[2m \"label\": \"Three\",\u001b[22m\n\u001b[2m \"value\": 3,\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"radio\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ]\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:870:24)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"radio\" field type support \"radio\" field number type","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"support \"radio\" field number type"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":1,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 4\u001b[39m\n\n\u001b[33m@@ -11,11 +11,14 @@\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"label\": \"No\",\u001b[22m\n\u001b[2m \"value\": \"no\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[31m+ Object {\u001b[39m\n\u001b[31m+ \"label\": \"N/A\",\u001b[39m\n\u001b[31m+ \"value\": null,\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[2m ],\u001b[22m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"radio\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ]\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 4\u001b[39m\n\n\u001b[33m@@ -11,11 +11,14 @@\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"label\": \"No\",\u001b[22m\n\u001b[2m \"value\": \"no\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[31m+ Object {\u001b[39m\n\u001b[31m+ \"label\": \"N/A\",\u001b[39m\n\u001b[31m+ \"value\": null,\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[2m ],\u001b[22m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"radio\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ]\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:913:24)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"radio\" field type support \"radio\" optional field","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"support \"radio\" optional field"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"has_car":"Must match exactly one of the provided schemas"},"expected":{"has_car":"The option \"blah-blah\" is not valid."},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"has_car\": \"The option \\\"blah-blah\\\" is not valid.\",\u001b[39m\n\u001b[31m+ \"has_car\": \"Must match exactly one of the provided schemas\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"has_car\": \"The option \\\"blah-blah\\\" is not valid.\",\u001b[39m\n\u001b[31m+ \"has_car\": \"Must match exactly one of the provided schemas\",\u001b[39m\n\u001b[2m }\u001b[22m\n at toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:958:56)\n at Object.assertCommonBehavior (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:976:9)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"radio\" field type support \"radio\" optional field - optional (conventional way) - @BUG RMT-518","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"failed","title":"support \"radio\" optional field - optional (conventional way) - @BUG RMT-518"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":1,"failureDetails":[{"matcherResult":{"actual":{"has_car":"Must match exactly one of the provided schemas"},"expected":{"has_car":"The option \"blah-blah\" is not valid."},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"has_car\": \"The option \\\"blah-blah\\\" is not valid.\",\u001b[39m\n\u001b[31m+ \"has_car\": \"Must match exactly one of the provided schemas\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"has_car\": \"The option \\\"blah-blah\\\" is not valid.\",\u001b[39m\n\u001b[31m+ \"has_car\": \"Must match exactly one of the provided schemas\",\u001b[39m\n\u001b[2m }\u001b[22m\n at toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:958:56)\n at Object.assertCommonBehavior (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:993:9)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"radio\" field type support \"radio\" optional field - optional with null option (as Remote does) - @BUG RMT-518","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"failed","title":"support \"radio\" optional field - optional with null option (as Remote does) - @BUG RMT-518"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"radio\" field type support \"radio\" field type with extra info inside each option","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"support \"radio\" field type with extra info inside each option"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":0,"failureDetails":[{}],"failureMessages":["TypeError: Cannot read properties of undefined (reading 'isValidSync')\n at Object.isValidSync (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1066:31)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"radio\" field type supports oneOf pattern validation","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"failed","title":"supports oneOf pattern validation"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":1,"failureDetails":[{"matcherResult":{"expected":[],"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m[]\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m[]\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1079:30)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"radio\" field type support \"radio\" field type without oneOf options","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"failed","title":"support \"radio\" field type without oneOf options"},{"ancestorTitles":["createHeadlessForm","field support"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -7,10 +7,9 @@\u001b[39m\n\u001b[2m \"label\": \"Tabs\",\u001b[22m\n\u001b[2m \"maximum\": 10,\u001b[22m\n\u001b[2m \"minimum\": 1,\u001b[22m\n\u001b[2m \"name\": \"tabs\",\u001b[22m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"number\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -7,10 +7,9 @@\u001b[39m\n\u001b[2m \"label\": \"Tabs\",\u001b[22m\n\u001b[2m \"maximum\": 10,\u001b[22m\n\u001b[2m \"minimum\": 1,\u001b[22m\n\u001b[2m \"name\": \"tabs\",\u001b[22m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"number\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1085:22)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"integer\" field type","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"support \"integer\" field type"},{"ancestorTitles":["createHeadlessForm","field support"],"duration":1,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -5,10 +5,9 @@\u001b[39m\n\u001b[2m \"label\": \"Tabs\",\u001b[22m\n\u001b[2m \"maximum\": 10,\u001b[22m\n\u001b[2m \"minimum\": 1,\u001b[22m\n\u001b[2m \"name\": \"tabs\",\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"number\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -5,10 +5,9 @@\u001b[39m\n\u001b[2m \"label\": \"Tabs\",\u001b[22m\n\u001b[2m \"maximum\": 10,\u001b[22m\n\u001b[2m \"minimum\": 1,\u001b[22m\n\u001b[2m \"name\": \"tabs\",\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"number\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1120:22)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"number\" field type","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"support \"number\" field type"},{"ancestorTitles":["createHeadlessForm","field support"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -6,10 +6,9 @@\u001b[39m\n\u001b[2m \"maximum\": 100,\u001b[22m\n\u001b[2m \"minimum\": 1,\u001b[22m\n\u001b[2m \"name\": \"shares\",\u001b[22m\n\u001b[2m \"percentage\": true,\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"number\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -6,10 +6,9 @@\u001b[39m\n\u001b[2m \"maximum\": 100,\u001b[22m\n\u001b[2m \"minimum\": 1,\u001b[22m\n\u001b[2m \"name\": \"shares\",\u001b[22m\n\u001b[2m \"percentage\": true,\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"number\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1148:22)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"number\" field type with the percentage attribute","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"support \"number\" field type with the percentage attribute"},{"ancestorTitles":["createHeadlessForm","field support"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -6,10 +6,9 @@\u001b[39m\n\u001b[2m \"maximum\": 70,\u001b[22m\n\u001b[2m \"minimum\": 50,\u001b[22m\n\u001b[2m \"name\": \"shares\",\u001b[22m\n\u001b[2m \"percentage\": true,\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"number\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -6,10 +6,9 @@\u001b[39m\n\u001b[2m \"maximum\": 70,\u001b[22m\n\u001b[2m \"minimum\": 50,\u001b[22m\n\u001b[2m \"name\": \"shares\",\u001b[22m\n\u001b[2m \"percentage\": true,\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"number\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1189:22)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"number\" field type with the percentage attribute and custom range values","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"support \"number\" field type with the percentage attribute and custom range values"},{"ancestorTitles":["createHeadlessForm","field support"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -2,8 +2,7 @@\u001b[39m\n\u001b[2m \"label\": \"Birthdate\",\u001b[22m\n\u001b[2m \"maxDate\": \"2022-03-17\",\u001b[22m\n\u001b[2m \"minDate\": \"1922-03-01\",\u001b[22m\n\u001b[2m \"name\": \"birthdate\",\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"date\",\u001b[22m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -2,8 +2,7 @@\u001b[39m\n\u001b[2m \"label\": \"Birthdate\",\u001b[22m\n\u001b[2m \"maxDate\": \"2022-03-17\",\u001b[22m\n\u001b[2m \"minDate\": \"1922-03-01\",\u001b[22m\n\u001b[2m \"name\": \"birthdate\",\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"date\",\u001b[22m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1227:25)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"date\" field type","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"support \"date\" field type"},{"ancestorTitles":["createHeadlessForm","field support","support \"date\" field type"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -2,8 +2,7 @@\u001b[39m\n\u001b[2m \"label\": \"Birthdate\",\u001b[22m\n\u001b[2m \"maxDate\": \"2022-03-17\",\u001b[22m\n\u001b[2m \"minDate\": \"1922-03-01\",\u001b[22m\n\u001b[2m \"name\": \"birthdate\",\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"date\",\u001b[22m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -2,8 +2,7 @@\u001b[39m\n\u001b[2m \"label\": \"Birthdate\",\u001b[22m\n\u001b[2m \"maxDate\": \"2022-03-17\",\u001b[22m\n\u001b[2m \"minDate\": \"1922-03-01\",\u001b[22m\n\u001b[2m \"name\": \"birthdate\",\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"date\",\u001b[22m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1255:27)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"date\" field type support \"date\" field type with a minDate","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"support \"date\" field type with a minDate"},{"ancestorTitles":["createHeadlessForm","field support","support \"date\" field type"],"duration":1,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -2,8 +2,7 @@\u001b[39m\n\u001b[2m \"label\": \"Birthdate\",\u001b[22m\n\u001b[2m \"maxDate\": \"2022-03-17\",\u001b[22m\n\u001b[2m \"minDate\": \"1922-03-01\",\u001b[22m\n\u001b[2m \"name\": \"birthdate\",\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"date\",\u001b[22m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -2,8 +2,7 @@\u001b[39m\n\u001b[2m \"label\": \"Birthdate\",\u001b[22m\n\u001b[2m \"maxDate\": \"2022-03-17\",\u001b[22m\n\u001b[2m \"minDate\": \"1922-03-01\",\u001b[22m\n\u001b[2m \"name\": \"birthdate\",\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"date\",\u001b[22m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1287:27)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"date\" field type support \"date\" field type with a maxDate","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"support \"date\" field type with a maxDate"},{"ancestorTitles":["createHeadlessForm","field support","support \"date\" field type"],"duration":0,"failureDetails":[{"matcherResult":{"expected":{"birthdate":"The date must be 1922-03-01 or after."},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"birthdate\": \"The date must be 1922-03-01 or after.\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32m{\"birthdate\": \"The date must be 1922-03-01 or after.\"}\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1327:59)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"date\" field type support format date with minDate and maxDate","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"support format date with minDate and maxDate"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"file\" field type supports \"file\" field type","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"supports \"file\" field type"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field has accepted extensions","and file is of incorrect format"],"duration":1,"failureDetails":[{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"fileInput\": [{Symbol(kHandle): {}, Symbol(kLength): 3, Symbol(kType): \"text/plain\"}]}\u001b[39m"}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"fileInput\": [{Symbol(kHandle): {}, Symbol(kLength): 3, Symbol(kType): \"text/plain\"}]}\u001b[39m\n at expect (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js:113:15)\n at Object.expect (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1374:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"file\" field type when a field has accepted extensions and file is of incorrect format should throw an error","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"should throw an error"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field has accepted extensions","and file is of correct format"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"file\" field type when a field has accepted extensions and file is of correct format should validate field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate field"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field has accepted extensions","and file is of correct but uppercase format "],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"file\" field type when a field has accepted extensions and file is of correct but uppercase format should validate field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate field"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field has accepted extensions","and file is not instance of a File"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"file\" field type when a field has accepted extensions and file is not instance of a File accepts if file object has name property","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"accepts if file object has name property"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field has accepted extensions","and file is not instance of a File"],"duration":0,"failureDetails":[{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"fileInput\": [{\"name\": \"foo.txt\"}]}\u001b[39m"}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"fileInput\": [{\"name\": \"foo.txt\"}]}\u001b[39m\n at expect (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js:113:15)\n at Object.expect (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1431:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"file\" field type when a field has accepted extensions and file is not instance of a File should validate format","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"should validate format"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field has accepted extensions","and file is not instance of a File"],"duration":0,"failureDetails":[{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"fileInput\": [{\"name\": \"foo.txt\", \"size\": 1073741824}]}\u001b[39m"}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"fileInput\": [{\"name\": \"foo.txt\", \"size\": 1073741824}]}\u001b[39m\n at expect (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js:113:15)\n at Object.expect (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1442:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"file\" field type when a field has accepted extensions and file is not instance of a File should validate max size","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"should validate max size"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field has accepted extensions","and file is not instance of a File"],"duration":0,"failureDetails":[{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"fileInput\": [{\"path\": \"foo.txt\"}]}\u001b[39m"}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"fileInput\": [{\"path\": \"foo.txt\"}]}\u001b[39m\n at expect (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js:113:15)\n at Object.expect (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1451:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"file\" field type when a field has accepted extensions and file is not instance of a File throw an error if invalid file object","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"throw an error if invalid file object"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field has max file size","and file is greater than that"],"duration":1,"failureDetails":[{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"fileInput\": [{Symbol(kHandle): {}, Symbol(kLength): 0, Symbol(kType): \"\"}]}\u001b[39m"}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"fileInput\": [{Symbol(kHandle): {}, Symbol(kLength): 0, Symbol(kType): \"\"}]}\u001b[39m\n at expect (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js:113:15)\n at Object.expect (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1474:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"file\" field type when a field has max file size and file is greater than that should throw an error","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"should throw an error"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field has max file size","and file is smaller than that"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"file\" field type when a field has max file size and file is smaller than that should validate field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate field"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field file is optional"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"file\" field type when a field file is optional it accepts an empty array","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"it accepts an empty array"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field file is optional"],"duration":1,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBeUndefined\u001b[2m()\u001b[22m\n\nReceived: \u001b[31m{\"fileInput\": \"Required field\"}\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBeUndefined\u001b[2m()\u001b[22m\n\nReceived: \u001b[31m{\"fileInput\": \"Required field\"}\u001b[39m\n at Object.toBeUndefined (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1520:53)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"file\" field type when a field file is optional it validates missing file correctly","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"failed","title":"it validates missing file correctly"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field file is required"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"file\" field type when a field file is required it validates missing file correctly","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"it validates missing file correctly"},{"ancestorTitles":["createHeadlessForm","field support","supports \"group-array\" field type"],"duration":0,"failureDetails":[{}],"failureMessages":["TypeError: Array type is not yet supported\n at buildFieldSchema (/Users/luka.dornhecker/code/json-schema-form/next/src/field/schema.ts:114:11)\n at buildFieldObject (/Users/luka.dornhecker/code/json-schema-form/next/src/field/object.ts:18:35)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:201:26)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:218:13)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1546:42)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"group-array\" field type basic test","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"basic test"},{"ancestorTitles":["createHeadlessForm","field support","supports \"group-array\" field type"],"duration":0,"failureDetails":[{}],"failureMessages":["TypeError: Array type is not yet supported\n at buildFieldSchema (/Users/luka.dornhecker/code/json-schema-form/next/src/field/schema.ts:114:11)\n at buildFieldObject (/Users/luka.dornhecker/code/json-schema-form/next/src/field/object.ts:18:35)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:201:26)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:218:13)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1644:56)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"group-array\" field type nested fields (native, core and custom) has correct validations","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"nested fields (native, core and custom) has correct validations"},{"ancestorTitles":["createHeadlessForm","field support","supports \"group-array\" field type"],"duration":0,"failureDetails":[{}],"failureMessages":["TypeError: Array type is not yet supported\n at buildFieldSchema (/Users/luka.dornhecker/code/json-schema-form/next/src/field/schema.ts:114:11)\n at buildFieldObject (/Users/luka.dornhecker/code/json-schema-form/next/src/field/object.ts:18:35)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:201:26)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:218:13)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1741:42)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"group-array\" field type can pass custom field attributes","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"can pass custom field attributes"},{"ancestorTitles":["createHeadlessForm","field support","supports \"group-array\" field type"],"duration":0,"failureDetails":[{}],"failureMessages":["TypeError: Array type is not yet supported\n at buildFieldSchema (/Users/luka.dornhecker/code/json-schema-form/next/src/field/schema.ts:114:11)\n at buildFieldObject (/Users/luka.dornhecker/code/json-schema-form/next/src/field/object.ts:18:35)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:201:26)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:218:13)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1783:64)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"group-array\" field type can be a conditional field","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"can be a conditional field"},{"ancestorTitles":["createHeadlessForm","field support"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 3\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"jsonType\": \"null\",\u001b[22m\n\u001b[2m \"label\": \"(Optional) Name\",\u001b[22m\n\u001b[2m \"name\": \"name\",\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[32m- \"type\": undefined,\u001b[39m\n\u001b[31m+ \"type\": \"text\",\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"inputType\": \"text\",\u001b[22m\n\u001b[2m \"jsonType\": \"string\",\u001b[22m\n\u001b[2m \"label\": \"Username\",\u001b[22m\n\u001b[2m \"maxLength\": 4,\u001b[22m\n\u001b[2m \"name\": \"username\",\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"text\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ]\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 3\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"jsonType\": \"null\",\u001b[22m\n\u001b[2m \"label\": \"(Optional) Name\",\u001b[22m\n\u001b[2m \"name\": \"name\",\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[32m- \"type\": undefined,\u001b[39m\n\u001b[31m+ \"type\": \"text\",\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"inputType\": \"text\",\u001b[22m\n\u001b[2m \"jsonType\": \"string\",\u001b[22m\n\u001b[2m \"label\": \"Username\",\u001b[22m\n\u001b[2m \"maxLength\": 4,\u001b[22m\n\u001b[2m \"name\": \"username\",\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"text\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ]\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1832:22)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"null\" field type","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"supports \"null\" field type"},{"ancestorTitles":["createHeadlessForm","field support","supports \"fieldset\" field type"],"duration":1,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 2\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[33m@@ -1,9 +1,8 @@\u001b[39m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"description\": \"Fieldset description\",\u001b[39m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"description\": \"Your username (max 10 characters)\",\u001b[22m\n\u001b[2m \"label\": \"Username\",\u001b[22m\n\u001b[2m \"name\": \"username\",\u001b[22m\n\u001b[33m@@ -19,11 +18,11 @@\u001b[39m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[2m \"type\": \"number\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m \"label\": \"Fieldset title\",\u001b[22m\n\u001b[32m- \"name\": \"fieldset\",\u001b[39m\n\u001b[31m+ \"name\": \"Fieldset title\",\u001b[39m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[2m \"type\": \"fieldset\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 2\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[33m@@ -1,9 +1,8 @@\u001b[39m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"description\": \"Fieldset description\",\u001b[39m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"description\": \"Your username (max 10 characters)\",\u001b[22m\n\u001b[2m \"label\": \"Username\",\u001b[22m\n\u001b[2m \"name\": \"username\",\u001b[22m\n\u001b[33m@@ -19,11 +18,11 @@\u001b[39m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[2m \"type\": \"number\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m \"label\": \"Fieldset title\",\u001b[22m\n\u001b[32m- \"name\": \"fieldset\",\u001b[39m\n\u001b[31m+ \"name\": \"Fieldset title\",\u001b[39m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[2m \"type\": \"fieldset\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1877:24)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"fieldset\" field type supports basic case","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"supports basic case"},{"ancestorTitles":["createHeadlessForm","field support","supports \"fieldset\" field type"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 4\u001b[39m\n\u001b[31m+ Received + 2\u001b[39m\n\n\u001b[33m@@ -1,12 +1,10 @@\u001b[39m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"description\": \"Nested fieldset description\",\u001b[39m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"description\": \"Fieldset description\",\u001b[39m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"description\": \"Your username (max 10 characters)\",\u001b[22m\n\u001b[2m \"label\": \"Username\",\u001b[22m\n\u001b[2m \"name\": \"username\",\u001b[22m\n\u001b[33m@@ -22,17 +20,17 @@\u001b[39m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[2m \"type\": \"number\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m \"label\": \"Fieldset title\",\u001b[22m\n\u001b[32m- \"name\": \"innerFieldset\",\u001b[39m\n\u001b[31m+ \"name\": \"Fieldset title\",\u001b[39m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[2m \"type\": \"fieldset\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m \"label\": \"Nested fieldset title\",\u001b[22m\n\u001b[32m- \"name\": \"nestedFieldset\",\u001b[39m\n\u001b[31m+ \"name\": \"Nested fieldset title\",\u001b[39m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[2m \"type\": \"fieldset\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 4\u001b[39m\n\u001b[31m+ Received + 2\u001b[39m\n\n\u001b[33m@@ -1,12 +1,10 @@\u001b[39m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"description\": \"Nested fieldset description\",\u001b[39m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"description\": \"Fieldset description\",\u001b[39m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"description\": \"Your username (max 10 characters)\",\u001b[22m\n\u001b[2m \"label\": \"Username\",\u001b[22m\n\u001b[2m \"name\": \"username\",\u001b[22m\n\u001b[33m@@ -22,17 +20,17 @@\u001b[39m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[2m \"type\": \"number\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m \"label\": \"Fieldset title\",\u001b[22m\n\u001b[32m- \"name\": \"innerFieldset\",\u001b[39m\n\u001b[31m+ \"name\": \"Fieldset title\",\u001b[39m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[2m \"type\": \"fieldset\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m \"label\": \"Nested fieldset title\",\u001b[22m\n\u001b[32m- \"name\": \"nestedFieldset\",\u001b[39m\n\u001b[31m+ \"name\": \"Nested fieldset title\",\u001b[39m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[2m \"type\": \"fieldset\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1917:24)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"fieldset\" field type supports nested fieldset (fieldset inside fieldset)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"supports nested fieldset (fieldset inside fieldset)"},{"ancestorTitles":["createHeadlessForm","field support","supports \"fieldset\" field type"],"duration":1,"failureDetails":[{"matcherResult":{"actual":{"child":"Required field"},"expected":{"child":{"has_child":"Required field"}},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 3\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"child\": Object {\u001b[39m\n\u001b[32m- \"has_child\": \"Required field\",\u001b[39m\n\u001b[32m- },\u001b[39m\n\u001b[31m+ \"child\": \"Required field\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 3\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"child\": Object {\u001b[39m\n\u001b[32m- \"has_child\": \"Required field\",\u001b[39m\n\u001b[32m- },\u001b[39m\n\u001b[31m+ \"child\": \"Required field\",\u001b[39m\n\u001b[2m }\u001b[22m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:1962:34)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"fieldset\" field type supported \"fieldset\" with scoped conditionals","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"supported \"fieldset\" with scoped conditionals"},{"ancestorTitles":["createHeadlessForm","field support","supports \"fieldset\" field type"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBeUndefined\u001b[2m()\u001b[22m\n\nReceived: \u001b[31m{\"child\": {\"else\": {\"age\": \"Always fails\"}}}\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBeUndefined\u001b[2m()\u001b[22m\n\nReceived: \u001b[31m{\"child\": {\"else\": {\"age\": \"Always fails\"}}}\u001b[39m\n at Object.toBeUndefined (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2028:48)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)"],"fullName":"createHeadlessForm field support supports \"fieldset\" field type should set any nested \"fieldset\" form values to null when they are invisible","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"failed","title":"should set any nested \"fieldset\" form values to null when they are invisible"},{"ancestorTitles":["createHeadlessForm","field support","supports \"fieldset\" field type","supports conditionals to fieldsets"],"duration":0,"failureDetails":[{},{}],"failureMessages":["TypeError: Cannot read properties of undefined (reading 'fields')\n at fields (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:99:27)\n at Object.getField (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2053:26)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusHook (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:281:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:95:7)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)","Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mnot\u001b[2m.\u001b[22mtoHaveBeenCalled\u001b[2m()\u001b[22m\n\n\u001b[1mMatcher error\u001b[22m: \u001b[31mreceived\u001b[39m value must be a mock or spy function\n\nReceived has type: function\nReceived has value: \u001b[31m[Function error]\u001b[39m\n at Object.toHaveBeenCalled (/Users/luka.dornhecker/code/json-schema-form/src/tests/testUtils.js:7:29)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusHook (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:281:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:254:5)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"fieldset\" field type supports conditionals to fieldsets by default, the Perks.food has 4 options","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"failed","title":"by default, the Perks.food has 4 options"},{"ancestorTitles":["createHeadlessForm","field support","supports \"fieldset\" field type","supports conditionals to fieldsets"],"duration":0,"failureDetails":[{},{}],"failureMessages":["TypeError: Cannot read properties of undefined (reading 'fields')\n at fields (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:99:27)\n at Object.getField (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2053:26)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusHook (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:281:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:95:7)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)","Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mnot\u001b[2m.\u001b[22mtoHaveBeenCalled\u001b[2m()\u001b[22m\n\n\u001b[1mMatcher error\u001b[22m: \u001b[31mreceived\u001b[39m value must be a mock or spy function\n\nReceived has type: function\nReceived has value: \u001b[31m[Function error]\u001b[39m\n at Object.toHaveBeenCalled (/Users/luka.dornhecker/code/json-schema-form/src/tests/testUtils.js:7:29)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusHook (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:281:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:254:5)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"fieldset\" field type supports conditionals to fieldsets Given a lot work hours, the perks.food options change","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"failed","title":"Given a lot work hours, the perks.food options change"},{"ancestorTitles":["createHeadlessForm","field support","supports \"fieldset\" field type","supports conditionals to fieldsets"],"duration":0,"failureDetails":[{},{}],"failureMessages":["TypeError: Cannot read properties of undefined (reading 'fields')\n at fields (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:99:27)\n at Object.getField (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2053:26)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusHook (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:281:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:95:7)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)","Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mnot\u001b[2m.\u001b[22mtoHaveBeenCalled\u001b[2m()\u001b[22m\n\n\u001b[1mMatcher error\u001b[22m: \u001b[31mreceived\u001b[39m value must be a mock or spy function\n\nReceived has type: function\nReceived has value: \u001b[31m[Function error]\u001b[39m\n at Object.toHaveBeenCalled (/Users/luka.dornhecker/code/json-schema-form/src/tests/testUtils.js:7:29)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusHook (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:281:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:254:5)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"fieldset\" field type supports conditionals to fieldsets When changing back to low work hours, the perks.food goes back to the original state","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"failed","title":"When changing back to low work hours, the perks.food goes back to the original state"},{"ancestorTitles":["createHeadlessForm","field support"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -4,10 +4,9 @@\u001b[39m\n\u001b[2m \"description\": \"Enter your email address\",\u001b[22m\n\u001b[2m \"label\": \"Email address\",\u001b[22m\n\u001b[2m \"maxLength\": 255,\u001b[22m\n\u001b[2m \"name\": \"email_address\",\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"email\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -4,10 +4,9 @@\u001b[39m\n\u001b[2m \"description\": \"Enter your email address\",\u001b[22m\n\u001b[2m \"label\": \"Email address\",\u001b[22m\n\u001b[2m \"maxLength\": 255,\u001b[22m\n\u001b[2m \"name\": \"email_address\",\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m \"type\": \"email\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2170:22)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support support \"email\" field type","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"support \"email\" field type"},{"ancestorTitles":["createHeadlessForm","field support","supports \"checkbox\" field type","checkbox as string"],"duration":1,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"checkboxValue\": \"Permanent\",\u001b[39m\n\u001b[2m \"description\": \"I acknowledge that all employees in France will be hired on indefinite contracts.\",\u001b[22m\n\u001b[2m \"label\": \"Contract duration\",\u001b[22m\n\u001b[2m \"name\": \"contract_duration\",\u001b[22m\n\u001b[2m \"type\": \"checkbox\",\u001b[22m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"checkboxValue\": \"Permanent\",\u001b[39m\n\u001b[2m \"description\": \"I acknowledge that all employees in France will be hired on indefinite contracts.\",\u001b[22m\n\u001b[2m \"label\": \"Contract duration\",\u001b[22m\n\u001b[2m \"name\": \"contract_duration\",\u001b[22m\n\u001b[2m \"type\": \"checkbox\",\u001b[22m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2198:33)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"checkbox\" field type checkbox as string required: only accept the value in \"checkboxValue\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"required: only accept the value in \"checkboxValue\""},{"ancestorTitles":["createHeadlessForm","field support","supports \"checkbox\" field type","checkbox as string"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"checkboxValue\": \"Permanent\",\u001b[39m\n\u001b[2m \"default\": \"Permanent\",\u001b[22m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"checkboxValue\": \"Permanent\",\u001b[39m\n\u001b[2m \"default\": \"Permanent\",\u001b[22m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2221:33)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"checkbox\" field type checkbox as string required checked: returns a default value","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"required checked: returns a default value"},{"ancestorTitles":["createHeadlessForm","field support","supports \"checkbox\" field type","checkbox as boolean"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 8\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"checkboxValue\": true,\u001b[39m\n\u001b[31m+ \"description\": \"This one is optional.\",\u001b[39m\n\u001b[31m+ \"inputType\": \"checkbox\",\u001b[39m\n\u001b[31m+ \"isVisible\": true,\u001b[39m\n\u001b[31m+ \"jsonType\": \"boolean\",\u001b[39m\n\u001b[31m+ \"label\": \"It is christmas\",\u001b[39m\n\u001b[31m+ \"name\": \"boolean_empty\",\u001b[39m\n\u001b[31m+ \"required\": false,\u001b[39m\n\u001b[31m+ \"type\": \"checkbox\",\u001b[39m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 8\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"checkboxValue\": true,\u001b[39m\n\u001b[31m+ \"description\": \"This one is optional.\",\u001b[39m\n\u001b[31m+ \"inputType\": \"checkbox\",\u001b[39m\n\u001b[31m+ \"isVisible\": true,\u001b[39m\n\u001b[31m+ \"jsonType\": \"boolean\",\u001b[39m\n\u001b[31m+ \"label\": \"It is christmas\",\u001b[39m\n\u001b[31m+ \"name\": \"boolean_empty\",\u001b[39m\n\u001b[31m+ \"required\": false,\u001b[39m\n\u001b[31m+ \"type\": \"checkbox\",\u001b[39m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2233:33)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"checkbox\" field type checkbox as boolean optional: Accepts true or false","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"optional: Accepts true or false"},{"ancestorTitles":["createHeadlessForm","field support","supports \"checkbox\" field type","checkbox as boolean"],"duration":1,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 9\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"checkboxValue\": true,\u001b[39m\n\u001b[31m+ \"const\": true,\u001b[39m\n\u001b[31m+ \"description\": \"This one is required. Is must have const: true to work properly.\",\u001b[39m\n\u001b[31m+ \"inputType\": \"checkbox\",\u001b[39m\n\u001b[31m+ \"isVisible\": true,\u001b[39m\n\u001b[31m+ \"jsonType\": \"boolean\",\u001b[39m\n\u001b[31m+ \"label\": \"Is it rainy (required)\",\u001b[39m\n\u001b[31m+ \"name\": \"boolean_required\",\u001b[39m\n\u001b[31m+ \"required\": true,\u001b[39m\n\u001b[31m+ \"type\": \"checkbox\",\u001b[39m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 9\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"checkboxValue\": true,\u001b[39m\n\u001b[31m+ \"const\": true,\u001b[39m\n\u001b[31m+ \"description\": \"This one is required. Is must have const: true to work properly.\",\u001b[39m\n\u001b[31m+ \"inputType\": \"checkbox\",\u001b[39m\n\u001b[31m+ \"isVisible\": true,\u001b[39m\n\u001b[31m+ \"jsonType\": \"boolean\",\u001b[39m\n\u001b[31m+ \"label\": \"Is it rainy (required)\",\u001b[39m\n\u001b[31m+ \"name\": \"boolean_required\",\u001b[39m\n\u001b[31m+ \"required\": true,\u001b[39m\n\u001b[31m+ \"type\": \"checkbox\",\u001b[39m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2251:33)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"checkbox\" field type checkbox as boolean required: Only accepts true","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"required: Only accepts true"},{"ancestorTitles":["createHeadlessForm","field support","supports \"checkbox\" field type","checkbox as boolean"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"checkboxValue\": true,\u001b[39m\n\u001b[2m \"default\": true,\u001b[22m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"checkboxValue\": true,\u001b[39m\n\u001b[2m \"default\": true,\u001b[22m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2266:33)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"checkbox\" field type checkbox as boolean checked: returns default: true","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"checked: returns default: true"},{"ancestorTitles":["createHeadlessForm","field support","supports \"checkbox\" field type","checkbox as boolean"],"duration":0,"failureDetails":[{"matcherResult":{"actual":true,"expected":false,"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m","name":"toBe","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m\n at Object.toBe (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2279:43)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports \"checkbox\" field type checkbox as boolean conditional: it works as undefined value","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"failed","title":"conditional: it works as undefined value"},{"ancestorTitles":["createHeadlessForm","field support","supports custom inputType (eg \"hour\")"],"duration":1,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 13\u001b[39m\n\u001b[31m+ Received + 7\u001b[39m\n\n\u001b[2m Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"inputType\": \"hour\",\u001b[39m\n\u001b[31m+ \"inputType\": \"text\",\u001b[39m\n\u001b[2m \"jsonType\": \"string\",\u001b[22m\n\u001b[2m \"label\": \"Starting time\",\u001b[22m\n\u001b[2m \"name\": \"start_time\",\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[32m- \"type\": \"hour\",\u001b[39m\n\u001b[31m+ \"type\": \"text\",\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"inputType\": \"hour\",\u001b[39m\n\u001b[31m+ \"inputType\": \"text\",\u001b[39m\n\u001b[2m \"jsonType\": \"string\",\u001b[22m\n\u001b[2m \"label\": \"Pause time (optional)\",\u001b[22m\n\u001b[2m \"name\": \"pause\",\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[32m- \"type\": \"hour\",\u001b[39m\n\u001b[31m+ \"type\": \"text\",\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"inputType\": \"hour\",\u001b[39m\n\u001b[32m- \"jsonType\": Array [\u001b[39m\n\u001b[32m- \"null\",\u001b[39m\n\u001b[32m- \"string\",\u001b[39m\n\u001b[32m- ],\u001b[39m\n\u001b[31m+ \"inputType\": \"text\",\u001b[39m\n\u001b[31m+ \"jsonType\": \"select\",\u001b[39m\n\u001b[2m \"label\": \"Finishing time (optional)\",\u001b[22m\n\u001b[2m \"name\": \"end_time\",\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[32m- \"type\": \"hour\",\u001b[39m\n\u001b[31m+ \"type\": \"text\",\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m ]\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 13\u001b[39m\n\u001b[31m+ Received + 7\u001b[39m\n\n\u001b[2m Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"inputType\": \"hour\",\u001b[39m\n\u001b[31m+ \"inputType\": \"text\",\u001b[39m\n\u001b[2m \"jsonType\": \"string\",\u001b[22m\n\u001b[2m \"label\": \"Starting time\",\u001b[22m\n\u001b[2m \"name\": \"start_time\",\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[32m- \"type\": \"hour\",\u001b[39m\n\u001b[31m+ \"type\": \"text\",\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"inputType\": \"hour\",\u001b[39m\n\u001b[31m+ \"inputType\": \"text\",\u001b[39m\n\u001b[2m \"jsonType\": \"string\",\u001b[22m\n\u001b[2m \"label\": \"Pause time (optional)\",\u001b[22m\n\u001b[2m \"name\": \"pause\",\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[32m- \"type\": \"hour\",\u001b[39m\n\u001b[31m+ \"type\": \"text\",\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"inputType\": \"hour\",\u001b[39m\n\u001b[32m- \"jsonType\": Array [\u001b[39m\n\u001b[32m- \"null\",\u001b[39m\n\u001b[32m- \"string\",\u001b[39m\n\u001b[32m- ],\u001b[39m\n\u001b[31m+ \"inputType\": \"text\",\u001b[39m\n\u001b[31m+ \"jsonType\": \"select\",\u001b[39m\n\u001b[2m \"label\": \"Finishing time (optional)\",\u001b[22m\n\u001b[2m \"name\": \"end_time\",\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[32m- \"type\": \"hour\",\u001b[39m\n\u001b[31m+ \"type\": \"text\",\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m ]\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2336:24)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm field support supports custom inputType (eg \"hour\") as required, optional, and mixed types","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"as required, optional, and mixed types"},{"ancestorTitles":["createHeadlessForm","validation options"],"duration":0,"failureDetails":[{"matcherResult":{"expected":{"inverse":false},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32mAny\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\nExpected: \u001b[32mAny\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2371:24)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm validation options given invalid values it returns both yupError and formErrors","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"given invalid values it returns both yupError and formErrors"},{"ancestorTitles":["createHeadlessForm"],"duration":0,"failureDetails":[{}],"failureMessages":["TypeError: Cannot read properties of undefined (reading 'isValidSync')\n at Object.isValidSync (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2415:27)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm supports oneOf number const","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"supports oneOf number const"},{"ancestorTitles":["createHeadlessForm","property misc attributes"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -2,9 +2,8 @@\u001b[39m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"label\": \"Secret code\",\u001b[22m\n\u001b[2m \"name\": \"secret\",\u001b[22m\n\u001b[2m \"readOnly\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[33m@@ -2,9 +2,8 @@\u001b[39m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"label\": \"Secret code\",\u001b[22m\n\u001b[2m \"name\": \"secret\",\u001b[22m\n\u001b[2m \"readOnly\": true,\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2436:22)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm property misc attributes pass readOnly to field","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"pass readOnly to field"},{"ancestorTitles":["createHeadlessForm","property misc attributes"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 5\u001b[39m\n\u001b[31m+ Received + 2\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"deprecated\": Object {\u001b[39m\n\u001b[32m- \"description\": \"Deprecated in favor of \\\"birthdate\\\".\",\u001b[39m\n\u001b[32m- },\u001b[39m\n\u001b[31m+ \"deprecated\": true,\u001b[39m\n\u001b[2m \"label\": \"Age\",\u001b[22m\n\u001b[2m \"name\": \"secret\",\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[32m- \"type\": \"number\",\u001b[39m\n\u001b[31m+ \"type\": \"text\",\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 5\u001b[39m\n\u001b[31m+ Received + 2\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"deprecated\": Object {\u001b[39m\n\u001b[32m- \"description\": \"Deprecated in favor of \\\"birthdate\\\".\",\u001b[39m\n\u001b[32m- },\u001b[39m\n\u001b[31m+ \"deprecated\": true,\u001b[39m\n\u001b[2m \"label\": \"Age\",\u001b[22m\n\u001b[2m \"name\": \"secret\",\u001b[22m\n\u001b[32m- \"schema\": Any,\u001b[39m\n\u001b[32m- \"type\": \"number\",\u001b[39m\n\u001b[31m+ \"type\": \"text\",\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2465:22)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm property misc attributes pass \"deprecated\" attributes to field","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"pass \"deprecated\" attributes to field"},{"ancestorTitles":["createHeadlessForm","property misc attributes"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm property misc attributes pass both root level \"description\" and \"x-jsf-presentation.description\"","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"pass both root level \"description\" and \"x-jsf-presentation.description\""},{"ancestorTitles":["createHeadlessForm","property misc attributes"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatch\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected pattern: \u001b[32m/a different description /i\u001b[39m\nReceived string: \u001b[31m\"Your username (max 10 characters)\"\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatch\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected pattern: \u001b[32m/a different description /i\u001b[39m\nReceived string: \u001b[31m\"Your username (max 10 characters)\"\u001b[39m\n at Object.toMatch (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2536:72)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm property misc attributes pass both root level \"description\" and \"presentation.description\" (deprecated)","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"failed","title":"pass both root level \"description\" and \"presentation.description\" (deprecated)"},{"ancestorTitles":["createHeadlessForm","property misc attributes"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm property misc attributes support field with \"x-jsf-presentation.statement\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"support field with \"x-jsf-presentation.statement\""},{"ancestorTitles":["createHeadlessForm","property misc attributes"],"duration":1,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"MyComponent\": Any,\u001b[22m\n\u001b[32m- \"required\": true,\u001b[39m\n\u001b[31m+ \"required\": false,\u001b[39m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"MyComponent\": Any,\u001b[22m\n\u001b[32m- \"required\": true,\u001b[39m\n\u001b[31m+ \"required\": false,\u001b[39m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2633:43)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm property misc attributes pass custom attributes as function","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"failed","title":"pass custom attributes as function"},{"ancestorTitles":["createHeadlessForm","property misc attributes"],"duration":0,"failureDetails":[{}],"failureMessages":["TypeError: Array type is not yet supported\n at buildFieldSchema (/Users/luka.dornhecker/code/json-schema-form/next/src/field/schema.ts:114:11)\n at buildFieldObject (/Users/luka.dornhecker/code/json-schema-form/next/src/field/object.ts:18:35)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:201:26)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:218:13)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2640:44)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm property misc attributes pass scopedJsonSchema to each field","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"pass scopedJsonSchema to each field"},{"ancestorTitles":["createHeadlessForm","property misc attributes","Order of fields"],"duration":1,"failureDetails":[{"matcherResult":{"actual":["age","street","username"],"expected":["username","age","street"],"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Array [\u001b[22m\n\u001b[32m- \"username\",\u001b[39m\n\u001b[2m \"age\",\u001b[22m\n\u001b[2m \"street\",\u001b[22m\n\u001b[31m+ \"username\",\u001b[39m\n\u001b[2m ]\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Array [\u001b[22m\n\u001b[32m- \"username\",\u001b[39m\n\u001b[2m \"age\",\u001b[22m\n\u001b[2m \"street\",\u001b[22m\n\u001b[31m+ \"username\",\u001b[39m\n\u001b[2m ]\u001b[22m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2675:30)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm property misc attributes Order of fields sorts fields based on presentation.position keyword (deprecated)","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"failed","title":"sorts fields based on presentation.position keyword (deprecated)"},{"ancestorTitles":["createHeadlessForm","property misc attributes","Order of fields"],"duration":3,"failureDetails":[{}],"failureMessages":["TypeError: Cannot read properties of undefined (reading 'map')\n at Object.map (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2700:49)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm property misc attributes Order of fields sorts fields based on x-jsf-order keyword","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"failed","title":"sorts fields based on x-jsf-order keyword"},{"ancestorTitles":["createHeadlessForm","property misc attributes","Order of fields"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm property misc attributes Order of fields sorts fields based on original properties (without x-jsf-order)","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"sorts fields based on original properties (without x-jsf-order)"},{"ancestorTitles":["createHeadlessForm","more validations","when a field is required","and value is empty"],"duration":1,"failureDetails":[{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"test\": \"\"}\u001b[39m"}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"test\": \"\"}\u001b[39m\n at expect (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js:113:15)\n at Object.expect (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2736:11)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm more validations when a field is required and value is empty should throw an error","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"should throw an error"},{"ancestorTitles":["createHeadlessForm","more validations","when a field is required","and value is defined"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field is required and value is defined should validate field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate field"},{"ancestorTitles":["createHeadlessForm","more validations","when a field is number","and value is a string"],"duration":3,"failureDetails":[{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoThrow\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"test\": \"Hello\"}\u001b[39m"}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoThrow\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"test\": \"Hello\"}\u001b[39m\n at expect (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js:113:15)\n at Object.expect (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2768:11)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm more validations when a field is number and value is a string should throw an error","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"should throw an error"},{"ancestorTitles":["createHeadlessForm","more validations","when a field is number","and value is a number"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field is number and value is a number should validate field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate field"},{"ancestorTitles":["createHeadlessForm","more validations","when a field is number","and maximum is set to zero"],"duration":1,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBeUndefined\u001b[2m()\u001b[22m\n\nReceived: \u001b[31m{\"tabs\": \"The value must be a number\"}\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBeUndefined\u001b[2m()\u001b[22m\n\nReceived: \u001b[31m{\"tabs\": \"The value must be a number\"}\u001b[39m\n at Object.toBeUndefined (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2793:47)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm more validations when a field is number and maximum is set to zero shows the correct validation","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"shows the correct validation"},{"ancestorTitles":["createHeadlessForm","more validations","when a field has a maxLength of 10","and value is greater than that"],"duration":0,"failureDetails":[{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"test\": \"Hello Mr John Doe\"}\u001b[39m"}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"test\": \"Hello Mr John Doe\"}\u001b[39m\n at expect (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js:113:15)\n at Object.expect (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2816:11)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm more validations when a field has a maxLength of 10 and value is greater than that should throw an error","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"should throw an error"},{"ancestorTitles":["createHeadlessForm","more validations","when a field has a maxLength of 10","and value is less than that"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field has a maxLength of 10 and value is less than that should validate field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate field"},{"ancestorTitles":["createHeadlessForm","more validations","when a field has a minLength of 2","and value is smaller than that"],"duration":0,"failureDetails":[{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"test\": \"H\"}\u001b[39m"}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"test\": \"H\"}\u001b[39m\n at expect (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js:113:15)\n at Object.expect (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2851:11)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm more validations when a field has a minLength of 2 and value is smaller than that should throw an error","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"should throw an error"},{"ancestorTitles":["createHeadlessForm","more validations","when a field has a minLength of 2","and value is greater than that"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field has a minLength of 2 and value is greater than that should validate field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate field"},{"ancestorTitles":["createHeadlessForm","more validations","when a field has a minimum of 0","and value is less than that"],"duration":1,"failureDetails":[{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"test\": -1}\u001b[39m"}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"test\": -1}\u001b[39m\n at expect (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js:113:15)\n at Object.expect (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2887:11)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm more validations when a field has a minimum of 0 and value is less than that should throw an error","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"should throw an error"},{"ancestorTitles":["createHeadlessForm","more validations","when a field has a minimum of 0","and value is greater than that"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field has a minimum of 0 and value is greater than that should validate field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate field"},{"ancestorTitles":["createHeadlessForm","more validations","when a field has a maximum of 10","and value is greater than that"],"duration":0,"failureDetails":[{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"test\": 11}\u001b[39m"}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"test\": 11}\u001b[39m\n at expect (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js:113:15)\n at Object.expect (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2924:11)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm more validations when a field has a maximum of 10 and value is greater than that should throw an error","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"should throw an error"},{"ancestorTitles":["createHeadlessForm","more validations","when a field has a maximum of 10","and value is greater than that"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field has a maximum of 10 and value is greater than that should validate field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate field"},{"ancestorTitles":["createHeadlessForm","more validations","when a field has a pattern","and value does not match the pattern"],"duration":0,"failureDetails":[{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"test\": \"Hello\"}\u001b[39m"}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\nReceived promise resolved instead of rejected\nResolved to value: \u001b[31m{\"test\": \"Hello\"}\u001b[39m\n at expect (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js:113:15)\n at Object.expect (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:2960:11)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm more validations when a field has a pattern and value does not match the pattern should throw an error","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"should throw an error"},{"ancestorTitles":["createHeadlessForm","more validations","when a field has a pattern","and value matches the pattern"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field has a pattern and value matches the pattern should validate field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate field"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are optional"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are optional validation should return true when the object has empty values","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return true when the object has empty values"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are optional"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are optional validation should return true when object is valid","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return true when object is valid"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are mandatory"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are mandatory validation should return false when value is an empty object","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return false when value is an empty object"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are mandatory"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are mandatory validation should return false when value is an object with null values","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return false when value is an object with null values"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are mandatory"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"numberInput":"The value must be a number"},"expected":{"numberInput":"The value must be a number","textInput":"Required field"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"numberInput\": \"The value must be a number\",\u001b[22m\n\u001b[32m- \"textInput\": \"Required field\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 0\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"numberInput\": \"The value must be a number\",\u001b[22m\n\u001b[32m- \"textInput\": \"Required field\",\u001b[39m\n\u001b[2m }\u001b[22m\n at toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3073:29)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm even more validations and all fields are mandatory validation should return false when value is an object with empty values","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"validation should return false when value is an object with empty values"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are mandatory"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are mandatory validation should return false when one value is empty","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return false when one value is empty"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are mandatory"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are mandatory validation should return false a numeric field is not a number","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return false a numeric field is not a number"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are mandatory"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are mandatory validation should return true when object is valid","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return true when object is valid"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are mandatory","and one field has pattern validation"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are mandatory and one field has pattern validation validation should return false when a value does not match a pattern","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return false when a value does not match a pattern"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are mandatory","and one field has pattern validation"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are mandatory and one field has pattern validation validation should return true when value matches the pattern","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return true when value matches the pattern"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are mandatory","and one field has max length validation"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are mandatory and one field has max length validation validation should return false when a value is greater than the limit","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return false when a value is greater than the limit"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are mandatory","and one field has max length validation"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are mandatory and one field has max length validation validation should return true when value is within the limit","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return true when value is within the limit"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional"],"duration":0,"failureDetails":[{}],"failureMessages":["TypeError: Array type is not yet supported\n at buildFieldSchema (/Users/luka.dornhecker/code/json-schema-form/next/src/field/schema.ts:114:11)\n at buildFieldObject (/Users/luka.dornhecker/code/json-schema-form/next/src/field/object.ts:18:35)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:201:26)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:218:13)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3144:64)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional applies correct validation for single-value based conditionals","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"applies correct validation for single-value based conditionals"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"a_number":"Must be greater or equal to 1","else":{"a_conditional_text":"Required field"}},"expected":{"a_conditional_text":"Required field","a_number":"Must be greater or equal to 1"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 3\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"a_conditional_text\": \"Required field\",\u001b[39m\n\u001b[2m \"a_number\": \"Must be greater or equal to 1\",\u001b[22m\n\u001b[31m+ \"else\": Object {\u001b[39m\n\u001b[31m+ \"a_conditional_text\": \"Required field\",\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 3\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"a_conditional_text\": \"Required field\",\u001b[39m\n\u001b[2m \"a_number\": \"Must be greater or equal to 1\",\u001b[22m\n\u001b[31m+ \"else\": Object {\u001b[39m\n\u001b[31m+ \"a_conditional_text\": \"Required field\",\u001b[39m\n\u001b[31m+ },\u001b[39m\n\u001b[2m }\u001b[22m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3210:11)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional applies correct validation for minimum/maximum conditionals","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"applies correct validation for minimum/maximum conditionals"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"else":{"a_conditional_text":"Required field"}},"expected":{"a_conditional_text":"Required field"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 0\u001b[39m\n\u001b[31m+ Received + 2\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[31m+ \"else\": Object {\u001b[39m\n\u001b[2m \"a_conditional_text\": \"Required field\",\u001b[22m\n\u001b[31m+ },\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 0\u001b[39m\n\u001b[31m+ Received + 2\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[31m+ \"else\": Object {\u001b[39m\n\u001b[2m \"a_conditional_text\": \"Required field\",\u001b[22m\n\u001b[31m+ },\u001b[39m\n\u001b[2m }\u001b[22m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3245:34)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional applies correct validation for minLength/maxLength conditionals","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"applies correct validation for minLength/maxLength conditionals"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional"],"duration":0,"failureDetails":[{}],"failureMessages":["TypeError: Array type is not yet supported\n at buildFieldSchema (/Users/luka.dornhecker/code/json-schema-form/next/src/field/schema.ts:114:11)\n at buildFieldObject (/Users/luka.dornhecker/code/json-schema-form/next/src/field/object.ts:18:35)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:201:26)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:218:13)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3277:56)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional applies correct validation for array-contain based conditionals","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"applies correct validation for array-contain based conditionals"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional"],"duration":0,"failureDetails":[{}],"failureMessages":["TypeError: Array type is not yet supported\n at buildFieldSchema (/Users/luka.dornhecker/code/json-schema-form/next/src/field/schema.ts:114:11)\n at buildFieldObject (/Users/luka.dornhecker/code/json-schema-form/next/src/field/object.ts:18:35)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:201:26)\n at buildFields (/Users/luka.dornhecker/code/json-schema-form/next/src/form.ts:218:13)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3314:56)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional applies correct validation for fieldset fields","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"applies correct validation for fieldset fields"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"":"Must match at least one of the provided schemas"},"expected":{"field_c":"Required field"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"field_c\": \"Required field\",\u001b[39m\n\u001b[31m+ \"\": \"Must match at least one of the provided schemas\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"field_c\": \"Required field\",\u001b[39m\n\u001b[31m+ \"\": \"Must match at least one of the provided schemas\",\u001b[39m\n\u001b[2m }\u001b[22m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3364:11)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional applies any of the validation alternatives in a anyOf branch","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"failed","title":"applies any of the validation alternatives in a anyOf branch"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional","nested conditionals"],"duration":0,"failureDetails":[{"matcherResult":{"actual":true,"expected":false,"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m","name":"toBe","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m\n at Object.toBe (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3394:57)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional nested conditionals given empty values, runs \"else\" (gets hidden)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"given empty values, runs \"else\" (gets hidden)"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional","nested conditionals"],"duration":2,"failureDetails":[{"matcherResult":{"expected":false,"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toBe","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toBe (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3402:56)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional nested conditionals given a match, runs \"then\" (turns visible and editable)","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"failed","title":"given a match, runs \"then\" (turns visible and editable)"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional","nested conditionals"],"duration":1,"failureDetails":[{"matcherResult":{"expected":true,"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mtrue\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toBe","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mtrue\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toBe (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3410:56)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional nested conditionals given a nested match, runs \"else-then\" (turns visible but readOnly)","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"failed","title":"given a nested match, runs \"else-then\" (turns visible but readOnly)"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional","conditional fields (incorrectly done)"],"duration":1,"failureDetails":[{"matcherResult":{"actual":true,"expected":false,"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m","name":"toBe","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m\n at Object.toBe (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3422:62)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional conditional fields (incorrectly done) given empty values, the incorrect conditional runs \"then\" instead of \"else\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"given empty values, the incorrect conditional runs \"then\" instead of \"else\""},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional","conditional fields (incorrectly done)"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional conditional fields (incorrectly done) given a match (\"yes\"), both runs \"then\" (turn visible)","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"given a match (\"yes\"), both runs \"then\" (turn visible)"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional","conditional fields (incorrectly done)"],"duration":0,"failureDetails":[{"matcherResult":{"actual":true,"expected":false,"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m","name":"toBe","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m\n at Object.toBe (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3440:63)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional conditional fields (incorrectly done) not given a match (\"no\"), both run else (stay hidden)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"not given a match (\"no\"), both run else (stay hidden)"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional"],"duration":1,"failureDetails":[{"matcherResult":{"actual":true,"expected":false,"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m","name":"toBe","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32mfalse\u001b[39m\nReceived: \u001b[31mtrue\u001b[39m\n at Object.toBe (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3452:42)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional checkbox should have no initial value when its dynamically shown and invisible","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"checkbox should have no initial value when its dynamically shown and invisible"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional checkbox should have no initial value when its dynamically shown and visible","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"checkbox should have no initial value when its dynamically shown and visible"},{"ancestorTitles":["createHeadlessForm","Throwing custom error messages using errorMessage (deprecated)"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"numberInput":"The value must be a number"},"expected":{"numberInput":"It has to be a number."},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"numberInput\": \"It has to be a number.\",\u001b[39m\n\u001b[31m+ \"numberInput\": \"The value must be a number\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"numberInput\": \"It has to be a number.\",\u001b[39m\n\u001b[31m+ \"numberInput\": \"The value must be a number\",\u001b[39m\n\u001b[2m }\u001b[22m\n at toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3646:37)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm Throwing custom error messages using errorMessage (deprecated) error message for property \"type\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"error message for property \"type\""},{"ancestorTitles":["createHeadlessForm","Throwing custom error messages using errorMessage (deprecated)"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"numberInput":"Must be greater or equal to 1"},"expected":{"numberInput":"I am a custom error message"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"numberInput\": \"I am a custom error message\",\u001b[39m\n\u001b[31m+ \"numberInput\": \"Must be greater or equal to 1\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"numberInput\": \"I am a custom error message\",\u001b[39m\n\u001b[31m+ \"numberInput\": \"Must be greater or equal to 1\",\u001b[39m\n\u001b[2m }\u001b[22m\n at toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3646:37)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm Throwing custom error messages using errorMessage (deprecated) error message for property \"minimum\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"error message for property \"minimum\""},{"ancestorTitles":["createHeadlessForm","Throwing custom error messages using errorMessage (deprecated)"],"duration":1,"failureDetails":[{"matcherResult":{"actual":{"numberInput":"Required field"},"expected":{"numberInput":"I am a custom error message"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"numberInput\": \"I am a custom error message\",\u001b[39m\n\u001b[31m+ \"numberInput\": \"Required field\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"numberInput\": \"I am a custom error message\",\u001b[39m\n\u001b[31m+ \"numberInput\": \"Required field\",\u001b[39m\n\u001b[2m }\u001b[22m\n at toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3646:37)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm Throwing custom error messages using errorMessage (deprecated) error message for property \"required\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"error message for property \"required\""},{"ancestorTitles":["createHeadlessForm","Throwing custom error messages using errorMessage (deprecated)"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Throwing custom error messages using errorMessage (deprecated) error message for property \"required (ignored because it is optional)\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"required (ignored because it is optional)\""},{"ancestorTitles":["createHeadlessForm","Throwing custom error messages using errorMessage (deprecated)"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"numberInput":"Must be smaller or equal to 10"},"expected":{"numberInput":"I am a custom error message"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"numberInput\": \"I am a custom error message\",\u001b[39m\n\u001b[31m+ \"numberInput\": \"Must be smaller or equal to 10\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"numberInput\": \"I am a custom error message\",\u001b[39m\n\u001b[31m+ \"numberInput\": \"Must be smaller or equal to 10\",\u001b[39m\n\u001b[2m }\u001b[22m\n at toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3646:37)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm Throwing custom error messages using errorMessage (deprecated) error message for property \"maximum\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"error message for property \"maximum\""},{"ancestorTitles":["createHeadlessForm","Throwing custom error messages using errorMessage (deprecated)"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"stringInput":"Please insert at least 3 characters"},"expected":{"stringInput":"I am a custom error message"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"stringInput\": \"I am a custom error message\",\u001b[39m\n\u001b[31m+ \"stringInput\": \"Please insert at least 3 characters\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"stringInput\": \"I am a custom error message\",\u001b[39m\n\u001b[31m+ \"stringInput\": \"Please insert at least 3 characters\",\u001b[39m\n\u001b[2m }\u001b[22m\n at toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3646:37)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm Throwing custom error messages using errorMessage (deprecated) error message for property \"minLength\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"error message for property \"minLength\""},{"ancestorTitles":["createHeadlessForm","Throwing custom error messages using errorMessage (deprecated)"],"duration":1,"failureDetails":[{"matcherResult":{"actual":{"stringInput":"Please insert up to 3 characters"},"expected":{"stringInput":"I am a custom error message"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"stringInput\": \"I am a custom error message\",\u001b[39m\n\u001b[31m+ \"stringInput\": \"Please insert up to 3 characters\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"stringInput\": \"I am a custom error message\",\u001b[39m\n\u001b[31m+ \"stringInput\": \"Please insert up to 3 characters\",\u001b[39m\n\u001b[2m }\u001b[22m\n at toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3646:37)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm Throwing custom error messages using errorMessage (deprecated) error message for property \"maxLength\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"error message for property \"maxLength\""},{"ancestorTitles":["createHeadlessForm","Throwing custom error messages using errorMessage (deprecated)"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"stringInput":"Must have a valid format. E.g. +265986400132632389"},"expected":{"stringInput":"I am a custom error message"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"stringInput\": \"I am a custom error message\",\u001b[39m\n\u001b[31m+ \"stringInput\": \"Must have a valid format. E.g. +265986400132632389\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"stringInput\": \"I am a custom error message\",\u001b[39m\n\u001b[31m+ \"stringInput\": \"Must have a valid format. E.g. +265986400132632389\",\u001b[39m\n\u001b[2m }\u001b[22m\n at toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3646:37)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm Throwing custom error messages using errorMessage (deprecated) error message for property \"pattern\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"error message for property \"pattern\""},{"ancestorTitles":["createHeadlessForm","Throwing custom error messages using errorMessage (deprecated)"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"fileInput":"The value must be a string"},"expected":{"fileInput":"I am a custom error message"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"fileInput\": \"I am a custom error message\",\u001b[39m\n\u001b[31m+ \"fileInput\": \"The value must be a string\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"fileInput\": \"I am a custom error message\",\u001b[39m\n\u001b[31m+ \"fileInput\": \"The value must be a string\",\u001b[39m\n\u001b[2m }\u001b[22m\n at toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3646:37)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm Throwing custom error messages using errorMessage (deprecated) error message for property \"maxFileSize\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"error message for property \"maxFileSize\""},{"ancestorTitles":["createHeadlessForm","Throwing custom error messages using errorMessage (deprecated)"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"fileInput":"The value must be a string"},"expected":{"fileInput":"I am a custom error message"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"fileInput\": \"I am a custom error message\",\u001b[39m\n\u001b[31m+ \"fileInput\": \"The value must be a string\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"fileInput\": \"I am a custom error message\",\u001b[39m\n\u001b[31m+ \"fileInput\": \"The value must be a string\",\u001b[39m\n\u001b[2m }\u001b[22m\n at toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3646:37)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm Throwing custom error messages using errorMessage (deprecated) error message for property \"accept\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"error message for property \"accept\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Custom error messages error message for property \"type\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"type\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Custom error messages error message for property \"minimum\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"minimum\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Custom error messages error message for property \"required\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"required\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Custom error messages error message for property \"required (ignored because it is optional)\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"required (ignored because it is optional)\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Custom error messages error message for property \"maximum\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"maximum\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Custom error messages error message for property \"minLength\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"minLength\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Custom error messages error message for property \"maxLength\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"maxLength\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Custom error messages error message for property \"pattern\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"pattern\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"fileInput":"The value must be a string"},"expected":{"fileInput":"I am a custom error message"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"fileInput\": \"I am a custom error message\",\u001b[39m\n\u001b[31m+ \"fileInput\": \"The value must be a string\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"fileInput\": \"I am a custom error message\",\u001b[39m\n\u001b[31m+ \"fileInput\": \"The value must be a string\",\u001b[39m\n\u001b[2m }\u001b[22m\n at toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3829:37)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm Custom error messages error message for property \"maxFileSize\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"error message for property \"maxFileSize\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"fileInput":"The value must be a string"},"expected":{"fileInput":"I am a custom error message"},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"fileInput\": \"I am a custom error message\",\u001b[39m\n\u001b[31m+ \"fileInput\": \"The value must be a string\",\u001b[39m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"fileInput\": \"I am a custom error message\",\u001b[39m\n\u001b[31m+ \"fileInput\": \"The value must be a string\",\u001b[39m\n\u001b[2m }\u001b[22m\n at toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3829:37)\n at Object. (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:81:13)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm Custom error messages error message for property \"accept\"","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"error message for property \"accept\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":0,"failureDetails":[{"matcherResult":{"actual":{"weekday":"Required field","day":"Required field","month":"Required field","year":"The year is mandatory."},"expected":{"weekday":"Required field","day":"This cannot be empty.","month":"This cannot be empty.","year":"The year is mandatory."},"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 2\u001b[39m\n\u001b[31m+ Received + 2\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"day\": \"This cannot be empty.\",\u001b[39m\n\u001b[32m- \"month\": \"This cannot be empty.\",\u001b[39m\n\u001b[31m+ \"day\": \"Required field\",\u001b[39m\n\u001b[31m+ \"month\": \"Required field\",\u001b[39m\n\u001b[2m \"weekday\": \"Required field\",\u001b[22m\n\u001b[2m \"year\": \"The year is mandatory.\",\u001b[22m\n\u001b[2m }\u001b[22m","name":"toEqual","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n\u001b[32m- Expected - 2\u001b[39m\n\u001b[31m+ Received + 2\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"day\": \"This cannot be empty.\",\u001b[39m\n\u001b[32m- \"month\": \"This cannot be empty.\",\u001b[39m\n\u001b[31m+ \"day\": \"Required field\",\u001b[39m\n\u001b[31m+ \"month\": \"Required field\",\u001b[39m\n\u001b[2m \"weekday\": \"Required field\",\u001b[22m\n\u001b[2m \"year\": \"The year is mandatory.\",\u001b[22m\n\u001b[2m }\u001b[22m\n at Object.toEqual (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3849:60)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm Custom error messages accepts with options.inputType[].errorMessage","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"failed","title":"accepts with options.inputType[].errorMessage"},{"ancestorTitles":["createHeadlessForm","given default values","and a field with conditional presentation properties"],"duration":1,"failureDetails":[{}],"failureMessages":["TypeError: Cannot read properties of undefined (reading 'description')\n at Object.description (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3868:36)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm given default values and a field with conditional presentation properties returns the nested properties when the conditional matches","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"returns the nested properties when the conditional matches"},{"ancestorTitles":["createHeadlessForm","given default values","and \"fieldset\" has scoped conditionals"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[33m@@ -5,11 +5,11 @@\u001b[39m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"isVisible\": true,\u001b[22m\n\u001b[2m \"name\": \"age\",\u001b[22m\n\u001b[32m- \"required\": true,\u001b[39m\n\u001b[31m+ \"required\": false,\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"isVisible\": true,\u001b[22m\n\u001b[2m \"name\": \"passport_id\",\u001b[22m\n\u001b[2m \"required\": false,\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 1\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[33m@@ -5,11 +5,11 @@\u001b[39m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"isVisible\": true,\u001b[22m\n\u001b[2m \"name\": \"age\",\u001b[22m\n\u001b[32m- \"required\": true,\u001b[39m\n\u001b[31m+ \"required\": false,\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"isVisible\": true,\u001b[22m\n\u001b[2m \"name\": \"passport_id\",\u001b[22m\n\u001b[2m \"required\": false,\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3879:26)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm given default values and \"fieldset\" has scoped conditionals should show conditionals fields when values fullfil conditions","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"should show conditionals fields when values fullfil conditions"},{"ancestorTitles":["createHeadlessForm","given default values","and \"fieldset\" has scoped conditionals"],"duration":1,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 2\u001b[39m\n\u001b[31m+ Received + 2\u001b[39m\n\n\u001b[33m@@ -3,16 +3,16 @@\u001b[39m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"name\": \"has_child\",\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"isVisible\": false,\u001b[39m\n\u001b[31m+ \"isVisible\": true,\u001b[39m\n\u001b[2m \"name\": \"age\",\u001b[22m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"isVisible\": false,\u001b[39m\n\u001b[31m+ \"isVisible\": true,\u001b[39m\n\u001b[2m \"name\": \"passport_id\",\u001b[22m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 2\u001b[39m\n\u001b[31m+ Received + 2\u001b[39m\n\n\u001b[33m@@ -3,16 +3,16 @@\u001b[39m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"name\": \"has_child\",\u001b[22m\n\u001b[2m \"required\": true,\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"isVisible\": false,\u001b[39m\n\u001b[31m+ \"isVisible\": true,\u001b[39m\n\u001b[2m \"name\": \"age\",\u001b[22m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"isVisible\": false,\u001b[39m\n\u001b[31m+ \"isVisible\": true,\u001b[39m\n\u001b[2m \"name\": \"passport_id\",\u001b[22m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3906:26)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm given default values and \"fieldset\" has scoped conditionals should hide conditionals fields when values do not fullfil conditions","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"should hide conditionals fields when values do not fullfil conditions"},{"ancestorTitles":["createHeadlessForm","given default values","and \"fieldset\" has scoped conditionals"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"Field \\\"a_fieldset\\\"'s value is \\\"foo\\\", but should be type object.\"\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\nExpected: \u001b[32m\"Field \\\"a_fieldset\\\"'s value is \\\"foo\\\", but should be type object.\"\u001b[39m\n\nNumber of calls: \u001b[31m0\u001b[39m\n at Object.toHaveBeenCalledWith (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3939:30)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm given default values and \"fieldset\" has scoped conditionals should ignore initial values that do not match the field type (eg string vs object)","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"failed","title":"should ignore initial values that do not match the field type (eg string vs object)"},{"ancestorTitles":["createHeadlessForm","parser options"],"duration":1,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 3\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"falsy\": false,\u001b[39m\n\u001b[32m- \"inputType\": \"super\",\u001b[39m\n\u001b[31m+ \"inputType\": \"text\",\u001b[39m\n\u001b[2m \"jsonType\": \"string\",\u001b[22m\n\u001b[2m \"label\": \"Your feedback\",\u001b[22m\n\u001b[2m \"name\": \"feedback\",\u001b[22m\n\u001b[32m- \"something\": \"foo\",\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 3\u001b[39m\n\u001b[31m+ Received + 1\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"falsy\": false,\u001b[39m\n\u001b[32m- \"inputType\": \"super\",\u001b[39m\n\u001b[31m+ \"inputType\": \"text\",\u001b[39m\n\u001b[2m \"jsonType\": \"string\",\u001b[22m\n\u001b[2m \"label\": \"Your feedback\",\u001b[22m\n\u001b[2m \"name\": \"feedback\",\u001b[22m\n\u001b[32m- \"something\": \"foo\",\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:3977:22)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm parser options should support any custom field attribute","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"should support any custom field attribute"},{"ancestorTitles":["createHeadlessForm","parser options"],"duration":0,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 4\u001b[39m\n\u001b[31m+ Received + 3\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"checkboxValue\": \"Agreed\",\u001b[39m\n\u001b[32m- \"description\": \"Extra text before. Accept terms.\",\u001b[39m\n\u001b[32m- \"inputType\": \"checkbox\",\u001b[39m\n\u001b[31m+ \"description\": \"Accept terms.\",\u001b[39m\n\u001b[31m+ \"inputType\": \"text\",\u001b[39m\n\u001b[2m \"jsonType\": \"string\",\u001b[22m\n\u001b[2m \"label\": \"Terms\",\u001b[22m\n\u001b[2m \"name\": \"terms\",\u001b[22m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[32m- \"type\": \"checkbox\",\u001b[39m\n\u001b[31m+ \"type\": \"text\",\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 4\u001b[39m\n\u001b[31m+ Received + 3\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"checkboxValue\": \"Agreed\",\u001b[39m\n\u001b[32m- \"description\": \"Extra text before. Accept terms.\",\u001b[39m\n\u001b[32m- \"inputType\": \"checkbox\",\u001b[39m\n\u001b[31m+ \"description\": \"Accept terms.\",\u001b[39m\n\u001b[31m+ \"inputType\": \"text\",\u001b[39m\n\u001b[2m \"jsonType\": \"string\",\u001b[22m\n\u001b[2m \"label\": \"Terms\",\u001b[22m\n\u001b[2m \"name\": \"terms\",\u001b[22m\n\u001b[2m \"required\": false,\u001b[22m\n\u001b[32m- \"type\": \"checkbox\",\u001b[39m\n\u001b[31m+ \"type\": \"text\",\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:4011:22)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm parser options should support custom description (checkbox)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"should support custom description (checkbox)"},{"ancestorTitles":["createHeadlessForm","parser options"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm parser options should ignore fields that are not present in the schema","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"passed","title":"should ignore fields that are not present in the schema"},{"ancestorTitles":["createHeadlessForm","parser options"],"duration":1,"failureDetails":[{"matcherResult":{"message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 6\u001b[39m\n\u001b[31m+ Received + 3\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"data-field\": \"field\",\u001b[39m\n\u001b[2m \"name\": \"id_number\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"data-fieldset\": \"fieldset\",\u001b[39m\n\u001b[2m \"name\": \"username\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"name\": \"tabs\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[32m- \"name\": \"fieldset\",\u001b[39m\n\u001b[31m+ \"name\": \"Fieldset title\",\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"data-nested-fieldset\": \"nested-fieldset\",\u001b[39m\n\u001b[2m \"name\": \"username\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"name\": \"tabs\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[32m- \"name\": \"innerFieldset\",\u001b[39m\n\u001b[31m+ \"name\": \"Fieldset title\",\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[32m- \"name\": \"nestedFieldset\",\u001b[39m\n\u001b[31m+ \"name\": \"Nested fieldset title\",\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n\u001b[32m- Expected - 6\u001b[39m\n\u001b[31m+ Received + 3\u001b[39m\n\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"data-field\": \"field\",\u001b[39m\n\u001b[2m \"name\": \"id_number\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"data-fieldset\": \"fieldset\",\u001b[39m\n\u001b[2m \"name\": \"username\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"name\": \"tabs\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[32m- \"name\": \"fieldset\",\u001b[39m\n\u001b[31m+ \"name\": \"Fieldset title\",\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"fields\": Array [\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[32m- \"data-nested-fieldset\": \"nested-fieldset\",\u001b[39m\n\u001b[2m \"name\": \"username\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m Object {\u001b[22m\n\u001b[2m \"name\": \"tabs\",\u001b[22m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[32m- \"name\": \"innerFieldset\",\u001b[39m\n\u001b[31m+ \"name\": \"Fieldset title\",\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[32m- \"name\": \"nestedFieldset\",\u001b[39m\n\u001b[31m+ \"name\": \"Nested fieldset title\",\u001b[39m\n\u001b[2m },\u001b[22m\n\u001b[2m ],\u001b[22m\n\u001b[2m }\u001b[22m\n at Object.toMatchObject (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:4094:22)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm parser options should handle custom properties when inside fieldsets","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"should handle custom properties when inside fieldsets"},{"ancestorTitles":["createHeadlessForm","parser options"],"duration":0,"failureDetails":[{"matcherResult":{"expected":"What's your dogs name","message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32m\"What's your dogs name\"\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m","name":"toBe","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32m\"What's your dogs name\"\u001b[39m\nReceived: \u001b[31mundefined\u001b[39m\n at Object.toBe (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:4210:47)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm parser options should handle custom properties when inside fieldsets for fields name clashing with reserved words","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"failed","title":"should handle custom properties when inside fieldsets for fields name clashing with reserved words"},{"ancestorTitles":["createHeadlessForm","presentation (deprecated in favor of x-jsf-presentation)"],"duration":0,"failureDetails":[{"matcherResult":{"actual":"day","expected":"time","message":"\u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32m\"time\"\u001b[39m\nReceived: \u001b[31m\"day\"\u001b[39m","name":"toBe","pass":false}}],"failureMessages":["Error: \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\nExpected: \u001b[32m\"time\"\u001b[39m\nReceived: \u001b[31m\"day\"\u001b[39m\n at Object.toBe (/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js:4244:30)\n at Promise.then.completed (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:298:28)\n at new Promise ()\n at callAsyncCircusFn (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/utils.js:231:10)\n at _callCircusTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:316:40)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at _runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:252:3)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:126:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at _runTestsForDescribeBlock (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:121:9)\n at run (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/run.js:71:3)\n at runAndTransformResultsToJestFormat (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n at jestAdapter (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-circus@29.7.0/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)\n at runTestInternal (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:367:16)\n at runTest (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/runTest.js:444:34)\n at Object.worker (/Users/luka.dornhecker/code/json-schema-form/next/node_modules/.pnpm/jest-runner@29.7.0/node_modules/jest-runner/build/testWorker.js:106:12)"],"fullName":"createHeadlessForm presentation (deprecated in favor of x-jsf-presentation) works well with position, description, inputType, and any other arbitrary attribute","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"failed","title":"works well with position, description, inputType, and any other arbitrary attribute"}],"endTime":1741605291164,"message":"\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › returns empty result given no schema\u001b[39m\u001b[22m\n\n TypeError: Cannot read properties of undefined (reading 'properties')\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 14 |\u001b[39m \u001b[36mconst\u001b[39m fields\u001b[33m:\u001b[39m \u001b[33mField\u001b[39m[] \u001b[33m=\u001b[39m []\u001b[22m\n\u001b[2m \u001b[90m 15 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 16 |\u001b[39m \u001b[36mfor\u001b[39m (\u001b[36mconst\u001b[39m key \u001b[36min\u001b[39m schema\u001b[33m.\u001b[39mproperties) {\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 17 |\u001b[39m \u001b[36mconst\u001b[39m isRequired \u001b[33m=\u001b[39m schema\u001b[33m.\u001b[39mrequired\u001b[33m?\u001b[39m\u001b[33m.\u001b[39mincludes(key) \u001b[33m||\u001b[39m \u001b[36mfalse\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 18 |\u001b[39m \u001b[36mconst\u001b[39m field \u001b[33m=\u001b[39m buildFieldSchema(schema\u001b[33m.\u001b[39mproperties[key]\u001b[33m,\u001b[39m key\u001b[33m,\u001b[39m isRequired)\u001b[22m\n\u001b[2m \u001b[90m 19 |\u001b[39m \u001b[36mif\u001b[39m (field) {\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat properties (\u001b[22m\u001b[2msrc/field/object.ts\u001b[2m:16:28)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:201:26)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:218:13)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:109:38)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › returns an error given invalid schema\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\n Expected: \u001b[32mtrue\u001b[39m\n Received: \u001b[31mfalse\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 120 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 121 |\u001b[39m expect(result\u001b[33m.\u001b[39mfields)\u001b[33m.\u001b[39mtoHaveLength(\u001b[35m0\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 122 |\u001b[39m expect(result\u001b[33m.\u001b[39misError)\u001b[33m.\u001b[39mtoBe(\u001b[36mtrue\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 123 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 124 |\u001b[39m expect(console\u001b[33m.\u001b[39merror)\u001b[33m.\u001b[39mtoHaveBeenCalledWith(\u001b[32m`JSON Schema invalid!`\u001b[39m\u001b[33m,\u001b[39m expect\u001b[33m.\u001b[39many(\u001b[33mError\u001b[39m))\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 125 |\u001b[39m console\u001b[33m.\u001b[39merror\u001b[33m.\u001b[39mmockClear()\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBe (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:122:28)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support fallback › sets type from presentation.inputType\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32mAny\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 151 |\u001b[39m \u001b[36mconst\u001b[39m { schema\u001b[33m:\u001b[39m yupSchema2\u001b[33m,\u001b[39m \u001b[33m...\u001b[39mfieldTime } \u001b[33m=\u001b[39m omitBy(fields[\u001b[35m1\u001b[39m]\u001b[33m,\u001b[39m isNil)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 152 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 153 |\u001b[39m expect(yupSchema1)\u001b[33m.\u001b[39mtoEqual(expect\u001b[33m.\u001b[39many(\u001b[33mObject\u001b[39m))\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 154 |\u001b[39m expect(fieldAge)\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m 155 |\u001b[39m inputType\u001b[33m:\u001b[39m \u001b[32m'number'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 156 |\u001b[39m jsonType\u001b[33m:\u001b[39m \u001b[32m'number'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:153:26)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support fallback › fails given a json schema without inputType\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoHaveLength\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n Expected length: \u001b[32m0\u001b[39m\n Received length: \u001b[31m1\u001b[39m\n Received array: \u001b[31m[{\"inputType\": \"text\", \"isVisible\": true, \"jsonType\": \"string\", \"name\": \"test\", \"required\": false, \"type\": \"text\"}]\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 175 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 176 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 177 |\u001b[39m expect(fields)\u001b[33m.\u001b[39mtoHaveLength(\u001b[35m0\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 178 |\u001b[39m expect(error\u001b[33m.\u001b[39mmessage)\u001b[33m.\u001b[39mtoContain(\u001b[32m'Strict error: Missing inputType to field \"test\"'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 179 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 180 |\u001b[39m expect(console\u001b[33m.\u001b[39merror)\u001b[33m.\u001b[39mtoHaveBeenCalledWith(\u001b[32m`JSON Schema invalid!`\u001b[39m\u001b[33m,\u001b[39m expect\u001b[33m.\u001b[39many(\u001b[33mError\u001b[39m))\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toHaveLength (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:177:22)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support fallback › given a json schema without inputType, sets type based on json type (when strictInputType:false)\u001b[39m\u001b[22m\n\n TypeError: Array type is not yet supported\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 112 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 113 |\u001b[39m \u001b[36mif\u001b[39m (schema\u001b[33m.\u001b[39mtype \u001b[33m===\u001b[39m \u001b[32m'array'\u001b[39m) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 114 |\u001b[39m \u001b[36mthrow\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mTypeError\u001b[39m(\u001b[32m'Array type is not yet supported'\u001b[39m)\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 115 |\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 116 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 117 |\u001b[39m \u001b[36mconst\u001b[39m presentation \u001b[33m=\u001b[39m schema[\u001b[32m'x-jsf-presentation'\u001b[39m] \u001b[33m||\u001b[39m {}\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldSchema (\u001b[22m\u001b[2msrc/field/schema.ts\u001b[2m:114:11)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldObject (\u001b[22m\u001b[2msrc/field/object.ts\u001b[2m:18:35)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:201:26)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:218:13)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:205:44)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support fallback › given a json schema without json type, sets type based on structure (when strictInputType:false)\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[38;2;0;95;95m\u001b[48;2;215;255;255mreceived\u001b[49m\u001b[39m\u001b[2m).\u001b[22mtoMatchInlineSnapshot\u001b[2m(\u001b[22m\u001b[38;2;128;0;128m\u001b[48;2;255;215;255msnapshot\u001b[49m\u001b[39m\u001b[2m)\u001b[22m\n\n Snapshot name: `createHeadlessForm field support fallback given a json schema without json type, sets type based on structure (when strictInputType:false) 1`\n\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- Snapshot - 21\u001b[49m\u001b[39m\n \u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ Received + 13\u001b[49m\u001b[39m\n\n \u001b[33m@@ -1,14 +1,16 @@\u001b[39m\n \u001b[2m [\u001b[22m\n \u001b[2m {\u001b[22m\n \u001b[2m \"inputType\": \"text\",\u001b[22m\n \u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"jsonType\": \"text\",\u001b[49m\u001b[39m\n \u001b[2m \"label\": \"Default -> text\",\u001b[22m\n \u001b[2m \"name\": \"default\",\u001b[22m\n \u001b[2m \"type\": \"text\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m {\u001b[22m\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"inputType\": \"radio\",\u001b[49m\u001b[39m\n \u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"inputType\": \"text\",\u001b[49m\u001b[39m\n \u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"jsonType\": \"text\",\u001b[49m\u001b[39m\n \u001b[2m \"label\": \"With oneOf -> radio\",\u001b[22m\n \u001b[2m \"name\": \"with_oneOf\",\u001b[22m\n \u001b[2m \"options\": [\u001b[22m\n \u001b[2m {\u001b[22m\n \u001b[2m \"label\": \"Yes\",\u001b[22m\n \u001b[33m@@ -17,26 +19,29 @@\u001b[39m\n \u001b[2m {\u001b[22m\n \u001b[2m \"label\": \"No\",\u001b[22m\n \u001b[2m \"value\": \"no\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"type\": \"radio\",\u001b[49m\u001b[39m\n \u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"type\": \"text\",\u001b[49m\u001b[39m\n \u001b[2m },\u001b[22m\n \u001b[2m {\u001b[22m\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"inputType\": \"email\",\u001b[49m\u001b[39m\n \u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"inputType\": \"text\",\u001b[49m\u001b[39m\n \u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"jsonType\": \"text\",\u001b[49m\u001b[39m\n \u001b[2m \"label\": \"With format:email -> email\",\u001b[22m\n \u001b[2m \"name\": \"with_email\",\u001b[22m\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"type\": \"email\",\u001b[49m\u001b[39m\n \u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"type\": \"text\",\u001b[49m\u001b[39m\n \u001b[2m },\u001b[22m\n \u001b[2m {\u001b[22m\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"inputType\": \"select\",\u001b[49m\u001b[39m\n \u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"inputType\": \"text\",\u001b[49m\u001b[39m\n \u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"jsonType\": \"text\",\u001b[49m\u001b[39m\n \u001b[2m \"label\": \"With properties -> fieldset\",\u001b[22m\n \u001b[2m \"name\": \"with_object\",\u001b[22m\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"type\": \"select\",\u001b[49m\u001b[39m\n \u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"type\": \"text\",\u001b[49m\u001b[39m\n \u001b[2m },\u001b[22m\n \u001b[2m {\u001b[22m\n \u001b[2m \"inputType\": \"text\",\u001b[22m\n \u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"jsonType\": \"text\",\u001b[49m\u001b[39m\n \u001b[2m \"label\": \"With items.anyOf -> select\",\u001b[22m\n \u001b[2m \"name\": \"with_items_anyOf\",\u001b[22m\n \u001b[2m \"options\": [\u001b[22m\n \u001b[2m {\u001b[22m\n \u001b[2m \"label\": \"Chrome\",\u001b[22m\n \u001b[33m@@ -49,28 +54,15 @@\u001b[39m\n \u001b[2m {\u001b[22m\n \u001b[2m \"label\": \"Internet Explorer\",\u001b[22m\n \u001b[2m \"value\": \"ie\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"type\": \"text\",\u001b[49m\u001b[39m\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- },\u001b[49m\u001b[39m\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- {\u001b[49m\u001b[39m\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"fields\": [\u001b[49m\u001b[39m\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- {\u001b[49m\u001b[39m\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"inputType\": \"text\",\u001b[49m\u001b[39m\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"label\": \"Role\",\u001b[49m\u001b[39m\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"name\": \"role\",\u001b[49m\u001b[39m\n \u001b[2m \"type\": \"text\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m {\u001b[22m\n \u001b[2m \"inputType\": \"text\",\u001b[22m\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"label\": \"Years\",\u001b[49m\u001b[39m\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"name\": \"years\",\u001b[49m\u001b[39m\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"type\": \"text\",\u001b[49m\u001b[39m\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- },\u001b[49m\u001b[39m\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- ],\u001b[49m\u001b[39m\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"inputType\": \"group-array\",\u001b[49m\u001b[39m\n \u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"jsonType\": \"text\",\u001b[49m\u001b[39m\n \u001b[2m \"label\": \"With items.properties -> group-array\",\u001b[22m\n \u001b[2m \"name\": \"with_items_properties\",\u001b[22m\n \u001b[38;2;128;0;128m\u001b[48;2;255;215;255m- \"type\": \"group-array\",\u001b[49m\u001b[39m\n \u001b[38;2;0;95;95m\u001b[48;2;215;255;255m+ \"type\": \"text\",\u001b[49m\u001b[39m\n \u001b[2m },\u001b[22m\n \u001b[2m ]\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 357 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 358 |\u001b[39m \u001b[36mconst\u001b[39m fieldsByNameAndType \u001b[33m=\u001b[39m extractTypeOnly(fields)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 359 |\u001b[39m expect(fieldsByNameAndType)\u001b[33m.\u001b[39mtoMatchInlineSnapshot(\u001b[32m`\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 360 |\u001b[39m \u001b[32m [\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 361 |\u001b[39m \u001b[32m {\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 362 |\u001b[39m \u001b[32m \"inputType\": \"text\",\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchInlineSnapshot (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:359:35)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"text\" field type\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[33m@@ -6,7 +6,6 @@\u001b[39m\n \u001b[2m \"label\": \"Username\",\u001b[22m\n \u001b[2m \"maskSecret\": 2,\u001b[22m\n \u001b[2m \"maxLength\": 10,\u001b[22m\n \u001b[2m \"name\": \"username\",\u001b[22m\n \u001b[2m \"required\": true,\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 475 |\u001b[39m \u001b[36mconst\u001b[39m { fields\u001b[33m,\u001b[39m handleValidation } \u001b[33m=\u001b[39m createHeadlessForm(schemaInputTypeText)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 476 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 477 |\u001b[39m expect(fields[\u001b[35m0\u001b[39m])\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 478 |\u001b[39m description\u001b[33m:\u001b[39m \u001b[32m'Your username (max 10 characters)'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 479 |\u001b[39m label\u001b[33m:\u001b[39m \u001b[32m'Username'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 480 |\u001b[39m name\u001b[33m:\u001b[39m \u001b[32m'username'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:477:25)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"select\" field type › support \"select\" field type @deprecated\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32m{\"benefits\": \"The option \\\"blah-blah\\\" is not valid.\"}\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 449 |\u001b[39m \u001b[36mif\u001b[39m (type \u001b[33m===\u001b[39m \u001b[32m'string'\u001b[39m) {\u001b[22m\n\u001b[2m \u001b[90m 450 |\u001b[39m \u001b[90m// Any other arbitrary value is not valid.\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 451 |\u001b[39m expect(validateForm({ [fieldName]\u001b[33m:\u001b[39m \u001b[32m'blah-blah'\u001b[39m }))\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 452 |\u001b[39m [fieldName]\u001b[33m:\u001b[39m \u001b[32m'The option \"blah-blah\" is not valid.'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 453 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 454 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:451:60)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.assertOptionsAllowed (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:533:9)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"select\" field type › support \"select\" field type\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"browsers\": \"The option \\\"blah-blah\\\" is not valid.\",\u001b[39m\n \u001b[31m+ \"browsers\": \"Must match exactly one of the provided schemas\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 449 |\u001b[39m \u001b[36mif\u001b[39m (type \u001b[33m===\u001b[39m \u001b[32m'string'\u001b[39m) {\u001b[22m\n\u001b[2m \u001b[90m 450 |\u001b[39m \u001b[90m// Any other arbitrary value is not valid.\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 451 |\u001b[39m expect(validateForm({ [fieldName]\u001b[33m:\u001b[39m \u001b[32m'blah-blah'\u001b[39m }))\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 452 |\u001b[39m [fieldName]\u001b[33m:\u001b[39m \u001b[32m'The option \"blah-blah\" is not valid.'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 453 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 454 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:451:60)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.assertOptionsAllowed (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:567:9)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"select\" field type › supports \"select\" field type with multiple options @deprecated\u001b[39m\u001b[22m\n\n TypeError: Array type is not yet supported\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 112 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 113 |\u001b[39m \u001b[36mif\u001b[39m (schema\u001b[33m.\u001b[39mtype \u001b[33m===\u001b[39m \u001b[32m'array'\u001b[39m) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 114 |\u001b[39m \u001b[36mthrow\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mTypeError\u001b[39m(\u001b[32m'Array type is not yet supported'\u001b[39m)\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 115 |\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 116 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 117 |\u001b[39m \u001b[36mconst\u001b[39m presentation \u001b[33m=\u001b[39m schema[\u001b[32m'x-jsf-presentation'\u001b[39m] \u001b[33m||\u001b[39m {}\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldSchema (\u001b[22m\u001b[2msrc/field/schema.ts\u001b[2m:114:11)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldObject (\u001b[22m\u001b[2msrc/field/object.ts\u001b[2m:18:35)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:201:26)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:218:13)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:575:42)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"select\" field type › supports \"select\" field type with multiple options\u001b[39m\u001b[22m\n\n TypeError: Array type is not yet supported\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 112 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 113 |\u001b[39m \u001b[36mif\u001b[39m (schema\u001b[33m.\u001b[39mtype \u001b[33m===\u001b[39m \u001b[32m'array'\u001b[39m) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 114 |\u001b[39m \u001b[36mthrow\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mTypeError\u001b[39m(\u001b[32m'Array type is not yet supported'\u001b[39m)\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 115 |\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 116 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 117 |\u001b[39m \u001b[36mconst\u001b[39m presentation \u001b[33m=\u001b[39m schema[\u001b[32m'x-jsf-presentation'\u001b[39m] \u001b[33m||\u001b[39m {}\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldSchema (\u001b[22m\u001b[2msrc/field/schema.ts\u001b[2m:114:11)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldObject (\u001b[22m\u001b[2msrc/field/object.ts\u001b[2m:18:35)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:201:26)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:218:13)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:604:42)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"select\" field type › supports \"select\" field type with multiple options and optional\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[33m@@ -1,11 +1,10 @@\u001b[39m\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"fields\": Array [\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"description\": \"This optional multi-select also includes a disabled option.\",\u001b[22m\n \u001b[2m \"label\": \"Browsers (multiple) (optional)\",\u001b[22m\n \u001b[32m- \"multiple\": true,\u001b[39m\n \u001b[2m \"name\": \"browsers_multi_optional\",\u001b[22m\n \u001b[2m \"options\": Array [\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"label\": \"Chrome\",\u001b[22m\n \u001b[2m \"value\": \"chr\",\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 632 |\u001b[39m it(\u001b[32m'supports \"select\" field type with multiple options and optional'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 633 |\u001b[39m \u001b[36mconst\u001b[39m result \u001b[33m=\u001b[39m createHeadlessForm(schemaInputTypeSelectMultipleOptional)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 634 |\u001b[39m expect(result)\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 635 |\u001b[39m fields\u001b[33m:\u001b[39m [\u001b[22m\n\u001b[2m \u001b[90m 636 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 637 |\u001b[39m name\u001b[33m:\u001b[39m \u001b[32m'browsers_multi_optional'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:634:24)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"radio\" field type › support \"radio\" field type @deprecated\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[33m@@ -12,9 +12,8 @@\u001b[39m\n \u001b[2m \"label\": \"No\",\u001b[22m\n \u001b[2m \"value\": \"no\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m \"required\": true,\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[2m \"type\": \"radio\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ]\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 663 |\u001b[39m \u001b[36mconst\u001b[39m { fields\u001b[33m,\u001b[39m handleValidation } \u001b[33m=\u001b[39m createHeadlessForm(schemaInputTypeRadioDeprecated)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 664 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 665 |\u001b[39m expect(fields)\u001b[33m.\u001b[39mtoMatchObject([\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 666 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 667 |\u001b[39m description\u001b[33m:\u001b[39m \u001b[32m'Do you have any siblings?'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 668 |\u001b[39m label\u001b[33m:\u001b[39m \u001b[32m'Has siblings'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:665:24)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"radio\" field type › support \"radio\" field string type\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[33m@@ -12,9 +12,8 @@\u001b[39m\n \u001b[2m \"label\": \"No\",\u001b[22m\n \u001b[2m \"value\": \"no\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m \"required\": true,\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[2m \"type\": \"radio\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ]\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 693 |\u001b[39m \u001b[36mconst\u001b[39m { fields\u001b[33m,\u001b[39m handleValidation } \u001b[33m=\u001b[39m createHeadlessForm(schemaInputTypeRadioString)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 694 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 695 |\u001b[39m expect(fields)\u001b[33m.\u001b[39mtoMatchObject([\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 696 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 697 |\u001b[39m description\u001b[33m:\u001b[39m \u001b[32m'Do you have any siblings?'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 698 |\u001b[39m label\u001b[33m:\u001b[39m \u001b[32m'Has siblings'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:695:24)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"radio\" field type › support \"radio\" field boolean type\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[33m@@ -12,9 +12,8 @@\u001b[39m\n \u001b[2m \"label\": \"No\",\u001b[22m\n \u001b[2m \"value\": false,\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m \"required\": true,\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[2m \"type\": \"radio\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ]\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 726 |\u001b[39m \u001b[36mconst\u001b[39m validateForm \u001b[33m=\u001b[39m (vals) \u001b[33m=>\u001b[39m friendlyError(handleValidation(vals))\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 727 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 728 |\u001b[39m expect(fields)\u001b[33m.\u001b[39mtoMatchObject([\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 729 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 730 |\u001b[39m description\u001b[33m:\u001b[39m \u001b[32m'Are you over 18 years old?'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 731 |\u001b[39m label\u001b[33m:\u001b[39m \u001b[32m'Over 18'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:728:24)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"radio\" field type › support \"radio\" field string-y type\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[33m@@ -12,9 +12,8 @@\u001b[39m\n \u001b[2m \"label\": \"No\",\u001b[22m\n \u001b[2m \"value\": \"false\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m \"required\": true,\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[2m \"type\": \"radio\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ]\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 831 |\u001b[39m \u001b[36mconst\u001b[39m validateForm \u001b[33m=\u001b[39m (vals) \u001b[33m=>\u001b[39m friendlyError(handleValidation(vals))\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 832 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 833 |\u001b[39m expect(fields)\u001b[33m.\u001b[39mtoMatchObject([\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 834 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 835 |\u001b[39m description\u001b[33m:\u001b[39m \u001b[32m'Do you have any siblings?'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 836 |\u001b[39m label\u001b[33m:\u001b[39m \u001b[32m'Has siblings'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:833:24)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"radio\" field type › support \"radio\" field number type\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[33m@@ -16,9 +16,8 @@\u001b[39m\n \u001b[2m \"label\": \"Three\",\u001b[22m\n \u001b[2m \"value\": 3,\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m \"required\": true,\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[2m \"type\": \"radio\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ]\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 868 |\u001b[39m \u001b[36mconst\u001b[39m validateForm \u001b[33m=\u001b[39m (vals) \u001b[33m=>\u001b[39m friendlyError(handleValidation(vals))\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 869 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 870 |\u001b[39m expect(fields)\u001b[33m.\u001b[39mtoMatchObject([\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 871 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 872 |\u001b[39m description\u001b[33m:\u001b[39m \u001b[32m'How many siblings do you have?'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 873 |\u001b[39m label\u001b[33m:\u001b[39m \u001b[32m'Number of siblings'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:870:24)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"radio\" field type › support \"radio\" optional field\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 4\u001b[39m\n\n \u001b[33m@@ -11,11 +11,14 @@\u001b[39m\n \u001b[2m },\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"label\": \"No\",\u001b[22m\n \u001b[2m \"value\": \"no\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[31m+ Object {\u001b[39m\n \u001b[31m+ \"label\": \"N/A\",\u001b[39m\n \u001b[31m+ \"value\": null,\u001b[39m\n \u001b[31m+ },\u001b[39m\n \u001b[2m ],\u001b[22m\n \u001b[2m \"required\": false,\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[2m \"type\": \"radio\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ]\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 911 |\u001b[39m \u001b[36mconst\u001b[39m validateForm \u001b[33m=\u001b[39m (vals) \u001b[33m=>\u001b[39m friendlyError(handleValidation(vals))\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 912 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 913 |\u001b[39m expect(fields)\u001b[33m.\u001b[39mtoMatchObject([\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 914 |\u001b[39m {}\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 915 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 916 |\u001b[39m name\u001b[33m:\u001b[39m \u001b[32m'has_car'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:913:24)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"radio\" field type › support \"radio\" optional field - optional (conventional way) - @BUG RMT-518\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"has_car\": \"The option \\\"blah-blah\\\" is not valid.\",\u001b[39m\n \u001b[31m+ \"has_car\": \"Must match exactly one of the provided schemas\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 956 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 957 |\u001b[39m \u001b[90m// Does not accept other values\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 958 |\u001b[39m expect(validateForm({ has_car\u001b[33m:\u001b[39m \u001b[32m'blah-blah'\u001b[39m }))\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 959 |\u001b[39m has_car\u001b[33m:\u001b[39m \u001b[32m'The option \"blah-blah\" is not valid.'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 960 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 961 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:958:56)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.assertCommonBehavior (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:976:9)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"radio\" field type › support \"radio\" optional field - optional with null option (as Remote does) - @BUG RMT-518\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"has_car\": \"The option \\\"blah-blah\\\" is not valid.\",\u001b[39m\n \u001b[31m+ \"has_car\": \"Must match exactly one of the provided schemas\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 956 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 957 |\u001b[39m \u001b[90m// Does not accept other values\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 958 |\u001b[39m expect(validateForm({ has_car\u001b[33m:\u001b[39m \u001b[32m'blah-blah'\u001b[39m }))\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 959 |\u001b[39m has_car\u001b[33m:\u001b[39m \u001b[32m'The option \"blah-blah\" is not valid.'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 960 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 961 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:958:56)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.assertCommonBehavior (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:993:9)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"radio\" field type › supports oneOf pattern validation\u001b[39m\u001b[22m\n\n TypeError: Cannot read properties of undefined (reading 'isValidSync')\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 1064 |\u001b[39m \u001b[36mconst\u001b[39m fieldValidator \u001b[33m=\u001b[39m result\u001b[33m.\u001b[39mfields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mschema\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1065 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 1066 |\u001b[39m expect(fieldValidator\u001b[33m.\u001b[39misValidSync(\u001b[32m'+351123123123'\u001b[39m))\u001b[33m.\u001b[39mtoBe(\u001b[36mtrue\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1067 |\u001b[39m expect(() \u001b[33m=>\u001b[39m fieldValidator\u001b[33m.\u001b[39mvalidateSync(\u001b[32m'+35100'\u001b[39m))\u001b[33m.\u001b[39mtoThrowError(\u001b[22m\n\u001b[2m \u001b[90m 1068 |\u001b[39m \u001b[32m'The option \"+35100\" is not valid.'\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1069 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.isValidSync (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1066:31)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"radio\" field type › support \"radio\" field type without oneOf options\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32m[]\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 1077 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1078 |\u001b[39m \u001b[36mconst\u001b[39m fieldOptions \u001b[33m=\u001b[39m result\u001b[33m.\u001b[39mfields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39moptions\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 1079 |\u001b[39m expect(fieldOptions)\u001b[33m.\u001b[39mtoEqual([])\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1080 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1081 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1082 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1079:30)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"integer\" field type\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[33m@@ -7,10 +7,9 @@\u001b[39m\n \u001b[2m \"label\": \"Tabs\",\u001b[22m\n \u001b[2m \"maximum\": 10,\u001b[22m\n \u001b[2m \"minimum\": 1,\u001b[22m\n \u001b[2m \"name\": \"tabs\",\u001b[22m\n \u001b[2m \"required\": false,\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[2m \"type\": \"number\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 1083 |\u001b[39m it(\u001b[32m'support \"integer\" field type'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 1084 |\u001b[39m \u001b[36mconst\u001b[39m result \u001b[33m=\u001b[39m createHeadlessForm(schemaInputTypeIntegerNumber)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 1085 |\u001b[39m expect(result)\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1086 |\u001b[39m fields\u001b[33m:\u001b[39m [\u001b[22m\n\u001b[2m \u001b[90m 1087 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 1088 |\u001b[39m description\u001b[33m:\u001b[39m \u001b[32m'How many open tabs do you have?'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1085:22)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"number\" field type\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[33m@@ -5,10 +5,9 @@\u001b[39m\n \u001b[2m \"label\": \"Tabs\",\u001b[22m\n \u001b[2m \"maximum\": 10,\u001b[22m\n \u001b[2m \"minimum\": 1,\u001b[22m\n \u001b[2m \"name\": \"tabs\",\u001b[22m\n \u001b[2m \"required\": true,\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[2m \"type\": \"number\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 1118 |\u001b[39m it(\u001b[32m'support \"number\" field type'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 1119 |\u001b[39m \u001b[36mconst\u001b[39m result \u001b[33m=\u001b[39m createHeadlessForm(schemaInputTypeNumber)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 1120 |\u001b[39m expect(result)\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1121 |\u001b[39m fields\u001b[33m:\u001b[39m [\u001b[22m\n\u001b[2m \u001b[90m 1122 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 1123 |\u001b[39m description\u001b[33m:\u001b[39m \u001b[32m'How many open tabs do you have?'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1120:22)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"number\" field type with the percentage attribute\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[33m@@ -6,10 +6,9 @@\u001b[39m\n \u001b[2m \"maximum\": 100,\u001b[22m\n \u001b[2m \"minimum\": 1,\u001b[22m\n \u001b[2m \"name\": \"shares\",\u001b[22m\n \u001b[2m \"percentage\": true,\u001b[22m\n \u001b[2m \"required\": true,\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[2m \"type\": \"number\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 1146 |\u001b[39m it(\u001b[32m'support \"number\" field type with the percentage attribute'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 1147 |\u001b[39m \u001b[36mconst\u001b[39m result \u001b[33m=\u001b[39m createHeadlessForm(schemaInputTypeNumberWithPercentage)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 1148 |\u001b[39m expect(result)\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1149 |\u001b[39m fields\u001b[33m:\u001b[39m [\u001b[22m\n\u001b[2m \u001b[90m 1150 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 1151 |\u001b[39m description\u001b[33m:\u001b[39m \u001b[32m'What % of shares do you own?'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1148:22)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"number\" field type with the percentage attribute and custom range values\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[33m@@ -6,10 +6,9 @@\u001b[39m\n \u001b[2m \"maximum\": 70,\u001b[22m\n \u001b[2m \"minimum\": 50,\u001b[22m\n \u001b[2m \"name\": \"shares\",\u001b[22m\n \u001b[2m \"percentage\": true,\u001b[22m\n \u001b[2m \"required\": true,\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[2m \"type\": \"number\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 1187 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1188 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 1189 |\u001b[39m expect(result)\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1190 |\u001b[39m fields\u001b[33m:\u001b[39m [\u001b[22m\n\u001b[2m \u001b[90m 1191 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 1192 |\u001b[39m description\u001b[33m:\u001b[39m \u001b[32m'What % of shares do you own?'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1189:22)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"date\" field type\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[33m@@ -2,8 +2,7 @@\u001b[39m\n \u001b[2m \"label\": \"Birthdate\",\u001b[22m\n \u001b[2m \"maxDate\": \"2022-03-17\",\u001b[22m\n \u001b[2m \"minDate\": \"1922-03-01\",\u001b[22m\n \u001b[2m \"name\": \"birthdate\",\u001b[22m\n \u001b[2m \"required\": true,\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[2m \"type\": \"date\",\u001b[22m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 1225 |\u001b[39m \u001b[36mconst\u001b[39m validateForm \u001b[33m=\u001b[39m (vals) \u001b[33m=>\u001b[39m friendlyError(handleValidation(vals))\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1226 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 1227 |\u001b[39m expect(fields[\u001b[35m0\u001b[39m])\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1228 |\u001b[39m label\u001b[33m:\u001b[39m \u001b[32m'Birthdate'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1229 |\u001b[39m name\u001b[33m:\u001b[39m \u001b[32m'birthdate'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1230 |\u001b[39m required\u001b[33m:\u001b[39m \u001b[36mtrue\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1227:25)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"date\" field type › support \"date\" field type with a minDate\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[33m@@ -2,8 +2,7 @@\u001b[39m\n \u001b[2m \"label\": \"Birthdate\",\u001b[22m\n \u001b[2m \"maxDate\": \"2022-03-17\",\u001b[22m\n \u001b[2m \"minDate\": \"1922-03-01\",\u001b[22m\n \u001b[2m \"name\": \"birthdate\",\u001b[22m\n \u001b[2m \"required\": true,\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[2m \"type\": \"date\",\u001b[22m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 1253 |\u001b[39m \u001b[36mconst\u001b[39m validateForm \u001b[33m=\u001b[39m (vals) \u001b[33m=>\u001b[39m friendlyError(handleValidation(vals))\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1254 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 1255 |\u001b[39m expect(fields[\u001b[35m0\u001b[39m])\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1256 |\u001b[39m label\u001b[33m:\u001b[39m \u001b[32m'Birthdate'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1257 |\u001b[39m name\u001b[33m:\u001b[39m \u001b[32m'birthdate'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1258 |\u001b[39m required\u001b[33m:\u001b[39m \u001b[36mtrue\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1255:27)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"date\" field type › support \"date\" field type with a maxDate\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[33m@@ -2,8 +2,7 @@\u001b[39m\n \u001b[2m \"label\": \"Birthdate\",\u001b[22m\n \u001b[2m \"maxDate\": \"2022-03-17\",\u001b[22m\n \u001b[2m \"minDate\": \"1922-03-01\",\u001b[22m\n \u001b[2m \"name\": \"birthdate\",\u001b[22m\n \u001b[2m \"required\": true,\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[2m \"type\": \"date\",\u001b[22m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 1285 |\u001b[39m \u001b[36mconst\u001b[39m validateForm \u001b[33m=\u001b[39m (vals) \u001b[33m=>\u001b[39m friendlyError(handleValidation(vals))\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1286 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 1287 |\u001b[39m expect(fields[\u001b[35m0\u001b[39m])\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1288 |\u001b[39m label\u001b[33m:\u001b[39m \u001b[32m'Birthdate'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1289 |\u001b[39m name\u001b[33m:\u001b[39m \u001b[32m'birthdate'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1290 |\u001b[39m required\u001b[33m:\u001b[39m \u001b[36mtrue\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1287:27)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"date\" field type › support format date with minDate and maxDate\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32m{\"birthdate\": \"The date must be 1922-03-01 or after.\"}\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 1325 |\u001b[39m \u001b[36mconst\u001b[39m validateForm \u001b[33m=\u001b[39m (vals) \u001b[33m=>\u001b[39m friendlyError(handleValidation(vals))\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1326 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 1327 |\u001b[39m expect(validateForm({ birthdate\u001b[33m:\u001b[39m \u001b[32m'1922-02-01'\u001b[39m }))\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1328 |\u001b[39m birthdate\u001b[33m:\u001b[39m \u001b[32m'The date must be 1922-03-01 or after.'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1329 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1330 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1327:59)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"file\" field type › when a field has accepted extensions › and file is of incorrect format › should throw an error\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\n Received promise resolved instead of rejected\n Resolved to value: \u001b[31m{\"fileInput\": [{Symbol(kHandle): {}, Symbol(kLength): 3, Symbol(kType): \"text/plain\"}]}\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 1372 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1373 |\u001b[39m it(\u001b[32m'should throw an error'\u001b[39m\u001b[33m,\u001b[39m \u001b[36masync\u001b[39m () \u001b[33m=>\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 1374 |\u001b[39m expect(\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1375 |\u001b[39m object()\u001b[22m\n\u001b[2m \u001b[90m 1376 |\u001b[39m \u001b[33m.\u001b[39mshape({\u001b[22m\n\u001b[2m \u001b[90m 1377 |\u001b[39m fileInput\u001b[33m:\u001b[39m fields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mschema\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat expect (\u001b[22m\u001b[2mnode_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js\u001b[2m:113:15)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.expect (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1374:13)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"file\" field type › when a field has accepted extensions › and file is not instance of a File › should validate format\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\n Received promise resolved instead of rejected\n Resolved to value: \u001b[31m{\"fileInput\": [{\"name\": \"foo.txt\"}]}\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 1429 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1430 |\u001b[39m it(\u001b[32m'should validate format'\u001b[39m\u001b[33m,\u001b[39m \u001b[36masync\u001b[39m () \u001b[33m=>\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 1431 |\u001b[39m expect(\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1432 |\u001b[39m object()\u001b[22m\n\u001b[2m \u001b[90m 1433 |\u001b[39m \u001b[33m.\u001b[39mshape({\u001b[22m\n\u001b[2m \u001b[90m 1434 |\u001b[39m fileInput\u001b[33m:\u001b[39m fields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mschema\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat expect (\u001b[22m\u001b[2mnode_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js\u001b[2m:113:15)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.expect (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1431:13)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"file\" field type › when a field has accepted extensions › and file is not instance of a File › should validate max size\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\n Received promise resolved instead of rejected\n Resolved to value: \u001b[31m{\"fileInput\": [{\"name\": \"foo.txt\", \"size\": 1073741824}]}\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 1440 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1441 |\u001b[39m it(\u001b[32m'should validate max size'\u001b[39m\u001b[33m,\u001b[39m \u001b[36masync\u001b[39m () \u001b[33m=>\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 1442 |\u001b[39m expect(\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1443 |\u001b[39m object()\u001b[22m\n\u001b[2m \u001b[90m 1444 |\u001b[39m \u001b[33m.\u001b[39mshape({\u001b[22m\n\u001b[2m \u001b[90m 1445 |\u001b[39m fileInput\u001b[33m:\u001b[39m fields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mschema\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat expect (\u001b[22m\u001b[2mnode_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js\u001b[2m:113:15)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.expect (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1442:13)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"file\" field type › when a field has accepted extensions › and file is not instance of a File › throw an error if invalid file object\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\n Received promise resolved instead of rejected\n Resolved to value: \u001b[31m{\"fileInput\": [{\"path\": \"foo.txt\"}]}\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 1449 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1450 |\u001b[39m it(\u001b[32m'throw an error if invalid file object'\u001b[39m\u001b[33m,\u001b[39m \u001b[36masync\u001b[39m () \u001b[33m=>\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 1451 |\u001b[39m expect(\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1452 |\u001b[39m object()\u001b[22m\n\u001b[2m \u001b[90m 1453 |\u001b[39m \u001b[33m.\u001b[39mshape({\u001b[22m\n\u001b[2m \u001b[90m 1454 |\u001b[39m fileInput\u001b[33m:\u001b[39m fields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mschema\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat expect (\u001b[22m\u001b[2mnode_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js\u001b[2m:113:15)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.expect (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1451:13)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"file\" field type › when a field has max file size › and file is greater than that › should throw an error\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\n Received promise resolved instead of rejected\n Resolved to value: \u001b[31m{\"fileInput\": [{Symbol(kHandle): {}, Symbol(kLength): 0, Symbol(kType): \"\"}]}\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 1472 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1473 |\u001b[39m it(\u001b[32m'should throw an error'\u001b[39m\u001b[33m,\u001b[39m \u001b[36masync\u001b[39m () \u001b[33m=>\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 1474 |\u001b[39m expect(\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1475 |\u001b[39m object()\u001b[22m\n\u001b[2m \u001b[90m 1476 |\u001b[39m \u001b[33m.\u001b[39mshape({\u001b[22m\n\u001b[2m \u001b[90m 1477 |\u001b[39m fileInput\u001b[33m:\u001b[39m fields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mschema\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat expect (\u001b[22m\u001b[2mnode_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js\u001b[2m:113:15)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.expect (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1474:13)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"file\" field type › when a field file is optional › it validates missing file correctly\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBeUndefined\u001b[2m()\u001b[22m\n\n Received: \u001b[31m{\"fileInput\": \"Required field\"}\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 1518 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1519 |\u001b[39m expect(validateForm({}))\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 1520 |\u001b[39m expect(validateForm({ fileInput\u001b[33m:\u001b[39m \u001b[36mnull\u001b[39m }))\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1521 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1522 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1523 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBeUndefined (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1520:53)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"group-array\" field type › basic test\u001b[39m\u001b[22m\n\n TypeError: Array type is not yet supported\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 112 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 113 |\u001b[39m \u001b[36mif\u001b[39m (schema\u001b[33m.\u001b[39mtype \u001b[33m===\u001b[39m \u001b[32m'array'\u001b[39m) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 114 |\u001b[39m \u001b[36mthrow\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mTypeError\u001b[39m(\u001b[32m'Array type is not yet supported'\u001b[39m)\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 115 |\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 116 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 117 |\u001b[39m \u001b[36mconst\u001b[39m presentation \u001b[33m=\u001b[39m schema[\u001b[32m'x-jsf-presentation'\u001b[39m] \u001b[33m||\u001b[39m {}\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldSchema (\u001b[22m\u001b[2msrc/field/schema.ts\u001b[2m:114:11)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldObject (\u001b[22m\u001b[2msrc/field/object.ts\u001b[2m:18:35)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:201:26)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:218:13)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1546:42)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"group-array\" field type › nested fields (native, core and custom) has correct validations\u001b[39m\u001b[22m\n\n TypeError: Array type is not yet supported\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 112 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 113 |\u001b[39m \u001b[36mif\u001b[39m (schema\u001b[33m.\u001b[39mtype \u001b[33m===\u001b[39m \u001b[32m'array'\u001b[39m) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 114 |\u001b[39m \u001b[36mthrow\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mTypeError\u001b[39m(\u001b[32m'Array type is not yet supported'\u001b[39m)\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 115 |\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 116 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 117 |\u001b[39m \u001b[36mconst\u001b[39m presentation \u001b[33m=\u001b[39m schema[\u001b[32m'x-jsf-presentation'\u001b[39m] \u001b[33m||\u001b[39m {}\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldSchema (\u001b[22m\u001b[2msrc/field/schema.ts\u001b[2m:114:11)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldObject (\u001b[22m\u001b[2msrc/field/object.ts\u001b[2m:18:35)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:201:26)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:218:13)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1644:56)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"group-array\" field type › can pass custom field attributes\u001b[39m\u001b[22m\n\n TypeError: Array type is not yet supported\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 112 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 113 |\u001b[39m \u001b[36mif\u001b[39m (schema\u001b[33m.\u001b[39mtype \u001b[33m===\u001b[39m \u001b[32m'array'\u001b[39m) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 114 |\u001b[39m \u001b[36mthrow\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mTypeError\u001b[39m(\u001b[32m'Array type is not yet supported'\u001b[39m)\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 115 |\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 116 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 117 |\u001b[39m \u001b[36mconst\u001b[39m presentation \u001b[33m=\u001b[39m schema[\u001b[32m'x-jsf-presentation'\u001b[39m] \u001b[33m||\u001b[39m {}\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldSchema (\u001b[22m\u001b[2msrc/field/schema.ts\u001b[2m:114:11)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldObject (\u001b[22m\u001b[2msrc/field/object.ts\u001b[2m:18:35)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:201:26)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:218:13)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1741:42)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"group-array\" field type › can be a conditional field\u001b[39m\u001b[22m\n\n TypeError: Array type is not yet supported\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 112 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 113 |\u001b[39m \u001b[36mif\u001b[39m (schema\u001b[33m.\u001b[39mtype \u001b[33m===\u001b[39m \u001b[32m'array'\u001b[39m) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 114 |\u001b[39m \u001b[36mthrow\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mTypeError\u001b[39m(\u001b[32m'Array type is not yet supported'\u001b[39m)\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 115 |\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 116 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 117 |\u001b[39m \u001b[36mconst\u001b[39m presentation \u001b[33m=\u001b[39m schema[\u001b[32m'x-jsf-presentation'\u001b[39m] \u001b[33m||\u001b[39m {}\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldSchema (\u001b[22m\u001b[2msrc/field/schema.ts\u001b[2m:114:11)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldObject (\u001b[22m\u001b[2msrc/field/object.ts\u001b[2m:18:35)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:201:26)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:218:13)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1783:64)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"null\" field type\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 3\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Array [\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"jsonType\": \"null\",\u001b[22m\n \u001b[2m \"label\": \"(Optional) Name\",\u001b[22m\n \u001b[2m \"name\": \"name\",\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[32m- \"type\": undefined,\u001b[39m\n \u001b[31m+ \"type\": \"text\",\u001b[39m\n \u001b[2m },\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"inputType\": \"text\",\u001b[22m\n \u001b[2m \"jsonType\": \"string\",\u001b[22m\n \u001b[2m \"label\": \"Username\",\u001b[22m\n \u001b[2m \"maxLength\": 4,\u001b[22m\n \u001b[2m \"name\": \"username\",\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[2m \"type\": \"text\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ]\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 1830 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1831 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 1832 |\u001b[39m expect(fields)\u001b[33m.\u001b[39mtoMatchObject([\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1833 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 1834 |\u001b[39m name\u001b[33m:\u001b[39m \u001b[32m'name'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1835 |\u001b[39m label\u001b[33m:\u001b[39m \u001b[32m'(Optional) Name'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1832:22)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"fieldset\" field type › supports basic case\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 2\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[33m@@ -1,9 +1,8 @@\u001b[39m\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"fields\": Array [\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"description\": \"Fieldset description\",\u001b[39m\n \u001b[2m \"fields\": Array [\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"description\": \"Your username (max 10 characters)\",\u001b[22m\n \u001b[2m \"label\": \"Username\",\u001b[22m\n \u001b[2m \"name\": \"username\",\u001b[22m\n \u001b[33m@@ -19,11 +18,11 @@\u001b[39m\n \u001b[2m \"required\": false,\u001b[22m\n \u001b[2m \"type\": \"number\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m \"label\": \"Fieldset title\",\u001b[22m\n \u001b[32m- \"name\": \"fieldset\",\u001b[39m\n \u001b[31m+ \"name\": \"Fieldset title\",\u001b[39m\n \u001b[2m \"required\": false,\u001b[22m\n \u001b[2m \"type\": \"fieldset\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 1875 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1876 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 1877 |\u001b[39m expect(result)\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1878 |\u001b[39m fields\u001b[33m:\u001b[39m [\u001b[22m\n\u001b[2m \u001b[90m 1879 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 1880 |\u001b[39m description\u001b[33m:\u001b[39m \u001b[32m'Fieldset description'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1877:24)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"fieldset\" field type › supports nested fieldset (fieldset inside fieldset)\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 4\u001b[39m\n \u001b[31m+ Received + 2\u001b[39m\n\n \u001b[33m@@ -1,12 +1,10 @@\u001b[39m\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"fields\": Array [\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"description\": \"Nested fieldset description\",\u001b[39m\n \u001b[2m \"fields\": Array [\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"description\": \"Fieldset description\",\u001b[39m\n \u001b[2m \"fields\": Array [\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"description\": \"Your username (max 10 characters)\",\u001b[22m\n \u001b[2m \"label\": \"Username\",\u001b[22m\n \u001b[2m \"name\": \"username\",\u001b[22m\n \u001b[33m@@ -22,17 +20,17 @@\u001b[39m\n \u001b[2m \"required\": false,\u001b[22m\n \u001b[2m \"type\": \"number\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m \"label\": \"Fieldset title\",\u001b[22m\n \u001b[32m- \"name\": \"innerFieldset\",\u001b[39m\n \u001b[31m+ \"name\": \"Fieldset title\",\u001b[39m\n \u001b[2m \"required\": false,\u001b[22m\n \u001b[2m \"type\": \"fieldset\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m \"label\": \"Nested fieldset title\",\u001b[22m\n \u001b[32m- \"name\": \"nestedFieldset\",\u001b[39m\n \u001b[31m+ \"name\": \"Nested fieldset title\",\u001b[39m\n \u001b[2m \"required\": false,\u001b[22m\n \u001b[2m \"type\": \"fieldset\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 1915 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1916 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 1917 |\u001b[39m expect(result)\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1918 |\u001b[39m fields\u001b[33m:\u001b[39m [\u001b[22m\n\u001b[2m \u001b[90m 1919 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 1920 |\u001b[39m label\u001b[33m:\u001b[39m \u001b[32m'Nested fieldset title'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1917:24)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"fieldset\" field type › supported \"fieldset\" with scoped conditionals\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 3\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"child\": Object {\u001b[39m\n \u001b[32m- \"has_child\": \"Required field\",\u001b[39m\n \u001b[32m- },\u001b[39m\n \u001b[31m+ \"child\": \"Required field\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 1960 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1961 |\u001b[39m \u001b[90m// The \"child.has_child\" is required\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 1962 |\u001b[39m expect(validateForm({}))\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1963 |\u001b[39m child\u001b[33m:\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 1964 |\u001b[39m has_child\u001b[33m:\u001b[39m \u001b[32m'Required field'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 1965 |\u001b[39m }\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:1962:34)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"fieldset\" field type › should set any nested \"fieldset\" form values to null when they are invisible\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBeUndefined\u001b[2m()\u001b[22m\n\n Received: \u001b[31m{\"child\": {\"else\": {\"age\": \"Always fails\"}}}\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2026 |\u001b[39m formValues\u001b[33m.\u001b[39mchild\u001b[33m.\u001b[39mhas_child \u001b[33m=\u001b[39m \u001b[32m'no'\u001b[39m\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2027 |\u001b[39m \u001b[90m// form value updates re-validate; see computeYupSchema()\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2028 |\u001b[39m \u001b[36mawait\u001b[39m expect(validateForm(formValues))\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2029 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2030 |\u001b[39m \u001b[90m// when child.has_child is 'no' child.age is invisible\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2031 |\u001b[39m expect(formValues\u001b[33m.\u001b[39mchild\u001b[33m.\u001b[39mage)\u001b[33m.\u001b[39mtoBe(\u001b[36mnull\u001b[39m)\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBeUndefined (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2028:48)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"fieldset\" field type › supports conditionals to fieldsets › by default, the Perks.food has 4 options\u001b[39m\u001b[22m\n\n TypeError: Cannot read properties of undefined (reading 'fields')\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 97 |\u001b[39m \u001b[36mconst\u001b[39m field \u001b[33m=\u001b[39m fields\u001b[33m.\u001b[39mfind((f) \u001b[33m=>\u001b[39m f\u001b[33m.\u001b[39mname \u001b[33m===\u001b[39m name)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 98 |\u001b[39m \u001b[36mif\u001b[39m (subNames\u001b[33m.\u001b[39mlength \u001b[33m>\u001b[39m \u001b[35m0\u001b[39m) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 99 |\u001b[39m \u001b[36mreturn\u001b[39m getField(field\u001b[33m.\u001b[39mfields\u001b[33m,\u001b[39m \u001b[33m...\u001b[39msubNames)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 100 |\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 101 |\u001b[39m \u001b[36mreturn\u001b[39m field\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 102 |\u001b[39m }\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat fields (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:99:27)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.getField (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2053:26)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"fieldset\" field type › supports conditionals to fieldsets › by default, the Perks.food has 4 options\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mnot\u001b[2m.\u001b[22mtoHaveBeenCalled\u001b[2m()\u001b[22m\n\n \u001b[1mMatcher error\u001b[22m: \u001b[31mreceived\u001b[39m value must be a mock or spy function\n\n Received has type: function\n Received has value: \u001b[31m[Function error]\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 5 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 6 |\u001b[39m \u001b[36mexport\u001b[39m \u001b[36mfunction\u001b[39m restoreConsoleAndEnsureItWasNotCalled() {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 7 |\u001b[39m expect(console\u001b[33m.\u001b[39merror)\u001b[33m.\u001b[39mnot\u001b[33m.\u001b[39mtoHaveBeenCalled()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 8 |\u001b[39m console\u001b[33m.\u001b[39merror\u001b[33m.\u001b[39mmockRestore()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 9 |\u001b[39m expect(console\u001b[33m.\u001b[39mwarn)\u001b[33m.\u001b[39mnot\u001b[33m.\u001b[39mtoHaveBeenCalled()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 10 |\u001b[39m console\u001b[33m.\u001b[39mwarn\u001b[33m.\u001b[39mmockRestore()\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toHaveBeenCalled (\u001b[22m\u001b[2m../src/tests/testUtils.js\u001b[2m:7:29)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"fieldset\" field type › supports conditionals to fieldsets › Given a lot work hours, the perks.food options change\u001b[39m\u001b[22m\n\n TypeError: Cannot read properties of undefined (reading 'fields')\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 97 |\u001b[39m \u001b[36mconst\u001b[39m field \u001b[33m=\u001b[39m fields\u001b[33m.\u001b[39mfind((f) \u001b[33m=>\u001b[39m f\u001b[33m.\u001b[39mname \u001b[33m===\u001b[39m name)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 98 |\u001b[39m \u001b[36mif\u001b[39m (subNames\u001b[33m.\u001b[39mlength \u001b[33m>\u001b[39m \u001b[35m0\u001b[39m) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 99 |\u001b[39m \u001b[36mreturn\u001b[39m getField(field\u001b[33m.\u001b[39mfields\u001b[33m,\u001b[39m \u001b[33m...\u001b[39msubNames)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 100 |\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 101 |\u001b[39m \u001b[36mreturn\u001b[39m field\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 102 |\u001b[39m }\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat fields (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:99:27)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.getField (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2053:26)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"fieldset\" field type › supports conditionals to fieldsets › Given a lot work hours, the perks.food options change\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mnot\u001b[2m.\u001b[22mtoHaveBeenCalled\u001b[2m()\u001b[22m\n\n \u001b[1mMatcher error\u001b[22m: \u001b[31mreceived\u001b[39m value must be a mock or spy function\n\n Received has type: function\n Received has value: \u001b[31m[Function error]\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 5 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 6 |\u001b[39m \u001b[36mexport\u001b[39m \u001b[36mfunction\u001b[39m restoreConsoleAndEnsureItWasNotCalled() {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 7 |\u001b[39m expect(console\u001b[33m.\u001b[39merror)\u001b[33m.\u001b[39mnot\u001b[33m.\u001b[39mtoHaveBeenCalled()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 8 |\u001b[39m console\u001b[33m.\u001b[39merror\u001b[33m.\u001b[39mmockRestore()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 9 |\u001b[39m expect(console\u001b[33m.\u001b[39mwarn)\u001b[33m.\u001b[39mnot\u001b[33m.\u001b[39mtoHaveBeenCalled()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 10 |\u001b[39m console\u001b[33m.\u001b[39mwarn\u001b[33m.\u001b[39mmockRestore()\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toHaveBeenCalled (\u001b[22m\u001b[2m../src/tests/testUtils.js\u001b[2m:7:29)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"fieldset\" field type › supports conditionals to fieldsets › When changing back to low work hours, the perks.food goes back to the original state\u001b[39m\u001b[22m\n\n TypeError: Cannot read properties of undefined (reading 'fields')\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 97 |\u001b[39m \u001b[36mconst\u001b[39m field \u001b[33m=\u001b[39m fields\u001b[33m.\u001b[39mfind((f) \u001b[33m=>\u001b[39m f\u001b[33m.\u001b[39mname \u001b[33m===\u001b[39m name)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 98 |\u001b[39m \u001b[36mif\u001b[39m (subNames\u001b[33m.\u001b[39mlength \u001b[33m>\u001b[39m \u001b[35m0\u001b[39m) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 99 |\u001b[39m \u001b[36mreturn\u001b[39m getField(field\u001b[33m.\u001b[39mfields\u001b[33m,\u001b[39m \u001b[33m...\u001b[39msubNames)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 100 |\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 101 |\u001b[39m \u001b[36mreturn\u001b[39m field\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 102 |\u001b[39m }\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat fields (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:99:27)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.getField (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2053:26)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"fieldset\" field type › supports conditionals to fieldsets › When changing back to low work hours, the perks.food goes back to the original state\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mnot\u001b[2m.\u001b[22mtoHaveBeenCalled\u001b[2m()\u001b[22m\n\n \u001b[1mMatcher error\u001b[22m: \u001b[31mreceived\u001b[39m value must be a mock or spy function\n\n Received has type: function\n Received has value: \u001b[31m[Function error]\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 5 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 6 |\u001b[39m \u001b[36mexport\u001b[39m \u001b[36mfunction\u001b[39m restoreConsoleAndEnsureItWasNotCalled() {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 7 |\u001b[39m expect(console\u001b[33m.\u001b[39merror)\u001b[33m.\u001b[39mnot\u001b[33m.\u001b[39mtoHaveBeenCalled()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 8 |\u001b[39m console\u001b[33m.\u001b[39merror\u001b[33m.\u001b[39mmockRestore()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 9 |\u001b[39m expect(console\u001b[33m.\u001b[39mwarn)\u001b[33m.\u001b[39mnot\u001b[33m.\u001b[39mtoHaveBeenCalled()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 10 |\u001b[39m console\u001b[33m.\u001b[39mwarn\u001b[33m.\u001b[39mmockRestore()\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toHaveBeenCalled (\u001b[22m\u001b[2m../src/tests/testUtils.js\u001b[2m:7:29)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › support \"email\" field type\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[33m@@ -4,10 +4,9 @@\u001b[39m\n \u001b[2m \"description\": \"Enter your email address\",\u001b[22m\n \u001b[2m \"label\": \"Email address\",\u001b[22m\n \u001b[2m \"maxLength\": 255,\u001b[22m\n \u001b[2m \"name\": \"email_address\",\u001b[22m\n \u001b[2m \"required\": true,\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[2m \"type\": \"email\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2168 |\u001b[39m \u001b[36mconst\u001b[39m result \u001b[33m=\u001b[39m createHeadlessForm(schemaInputTypeEmail)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2169 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2170 |\u001b[39m expect(result)\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2171 |\u001b[39m fields\u001b[33m:\u001b[39m [\u001b[22m\n\u001b[2m \u001b[90m 2172 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 2173 |\u001b[39m description\u001b[33m:\u001b[39m \u001b[32m'Enter your email address'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2170:22)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"checkbox\" field type › checkbox as string › required: only accept the value in \"checkboxValue\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"checkboxValue\": \"Permanent\",\u001b[39m\n \u001b[2m \"description\": \"I acknowledge that all employees in France will be hired on indefinite contracts.\",\u001b[22m\n \u001b[2m \"label\": \"Contract duration\",\u001b[22m\n \u001b[2m \"name\": \"contract_duration\",\u001b[22m\n \u001b[2m \"type\": \"checkbox\",\u001b[22m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2196 |\u001b[39m \u001b[36mconst\u001b[39m checkboxField \u001b[33m=\u001b[39m result\u001b[33m.\u001b[39mfields\u001b[33m.\u001b[39mfind((field) \u001b[33m=>\u001b[39m field\u001b[33m.\u001b[39mname \u001b[33m===\u001b[39m \u001b[32m'contract_duration'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2197 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2198 |\u001b[39m expect(checkboxField)\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2199 |\u001b[39m description\u001b[33m:\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2200 |\u001b[39m \u001b[32m'I acknowledge that all employees in France will be hired on indefinite contracts.'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2201 |\u001b[39m label\u001b[33m:\u001b[39m \u001b[32m'Contract duration'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2198:33)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"checkbox\" field type › checkbox as string › required checked: returns a default value\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"checkboxValue\": \"Permanent\",\u001b[39m\n \u001b[2m \"default\": \"Permanent\",\u001b[22m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2219 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2220 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2221 |\u001b[39m expect(checkboxField)\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2222 |\u001b[39m \u001b[36mdefault\u001b[39m\u001b[33m:\u001b[39m \u001b[32m'Permanent'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2223 |\u001b[39m checkboxValue\u001b[33m:\u001b[39m \u001b[32m'Permanent'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2224 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2221:33)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"checkbox\" field type › checkbox as boolean › optional: Accepts true or false\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 8\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"checkboxValue\": true,\u001b[39m\n \u001b[31m+ \"description\": \"This one is optional.\",\u001b[39m\n \u001b[31m+ \"inputType\": \"checkbox\",\u001b[39m\n \u001b[31m+ \"isVisible\": true,\u001b[39m\n \u001b[31m+ \"jsonType\": \"boolean\",\u001b[39m\n \u001b[31m+ \"label\": \"It is christmas\",\u001b[39m\n \u001b[31m+ \"name\": \"boolean_empty\",\u001b[39m\n \u001b[31m+ \"required\": false,\u001b[39m\n \u001b[31m+ \"type\": \"checkbox\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2231 |\u001b[39m \u001b[36mconst\u001b[39m checkboxField \u001b[33m=\u001b[39m result\u001b[33m.\u001b[39mfields\u001b[33m.\u001b[39mfind((field) \u001b[33m=>\u001b[39m field\u001b[33m.\u001b[39mname \u001b[33m===\u001b[39m \u001b[32m'boolean_empty'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2232 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2233 |\u001b[39m expect(checkboxField)\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2234 |\u001b[39m checkboxValue\u001b[33m:\u001b[39m \u001b[36mtrue\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2235 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2236 |\u001b[39m expect(checkboxField)\u001b[33m.\u001b[39mnot\u001b[33m.\u001b[39mtoHaveProperty(\u001b[32m'default'\u001b[39m)\u001b[33m;\u001b[39m \u001b[90m// ensure it's not checked by default.\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2233:33)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"checkbox\" field type › checkbox as boolean › required: Only accepts true\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 9\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"checkboxValue\": true,\u001b[39m\n \u001b[31m+ \"const\": true,\u001b[39m\n \u001b[31m+ \"description\": \"This one is required. Is must have const: true to work properly.\",\u001b[39m\n \u001b[31m+ \"inputType\": \"checkbox\",\u001b[39m\n \u001b[31m+ \"isVisible\": true,\u001b[39m\n \u001b[31m+ \"jsonType\": \"boolean\",\u001b[39m\n \u001b[31m+ \"label\": \"Is it rainy (required)\",\u001b[39m\n \u001b[31m+ \"name\": \"boolean_required\",\u001b[39m\n \u001b[31m+ \"required\": true,\u001b[39m\n \u001b[31m+ \"type\": \"checkbox\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2249 |\u001b[39m \u001b[36mconst\u001b[39m checkboxField \u001b[33m=\u001b[39m result\u001b[33m.\u001b[39mfields\u001b[33m.\u001b[39mfind((field) \u001b[33m=>\u001b[39m field\u001b[33m.\u001b[39mname \u001b[33m===\u001b[39m \u001b[32m'boolean_required'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2250 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2251 |\u001b[39m expect(checkboxField)\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2252 |\u001b[39m checkboxValue\u001b[33m:\u001b[39m \u001b[36mtrue\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2253 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2254 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2251:33)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"checkbox\" field type › checkbox as boolean › checked: returns default: true\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"checkboxValue\": true,\u001b[39m\n \u001b[2m \"default\": true,\u001b[22m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2264 |\u001b[39m \u001b[36mconst\u001b[39m checkboxField \u001b[33m=\u001b[39m result\u001b[33m.\u001b[39mfields\u001b[33m.\u001b[39mfind((field) \u001b[33m=>\u001b[39m field\u001b[33m.\u001b[39mname \u001b[33m===\u001b[39m \u001b[32m'boolean_checked'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2265 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2266 |\u001b[39m expect(checkboxField)\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2267 |\u001b[39m checkboxValue\u001b[33m:\u001b[39m \u001b[36mtrue\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2268 |\u001b[39m \u001b[36mdefault\u001b[39m\u001b[33m:\u001b[39m \u001b[36mtrue\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2269 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2266:33)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports \"checkbox\" field type › checkbox as boolean › conditional: it works as undefined value\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\n Expected: \u001b[32mfalse\u001b[39m\n Received: \u001b[31mtrue\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2277 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2278 |\u001b[39m expect(handleValidation({ has_pet\u001b[33m:\u001b[39m \u001b[36mfalse\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2279 |\u001b[39m expect(checkboxField\u001b[33m.\u001b[39misVisible)\u001b[33m.\u001b[39mtoBe(\u001b[36mfalse\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2280 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2281 |\u001b[39m expect(handleValidation({ has_pet\u001b[33m:\u001b[39m \u001b[36mtrue\u001b[39m\u001b[33m,\u001b[39m pet_is_cat\u001b[33m:\u001b[39m \u001b[36mtrue\u001b[39m })\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2282 |\u001b[39m expect(checkboxField\u001b[33m.\u001b[39misVisible)\u001b[33m.\u001b[39mtoBe(\u001b[36mtrue\u001b[39m)\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBe (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2279:43)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › field support › supports custom inputType (eg \"hour\") › as required, optional, and mixed types\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 13\u001b[39m\n \u001b[31m+ Received + 7\u001b[39m\n\n \u001b[2m Array [\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"inputType\": \"hour\",\u001b[39m\n \u001b[31m+ \"inputType\": \"text\",\u001b[39m\n \u001b[2m \"jsonType\": \"string\",\u001b[22m\n \u001b[2m \"label\": \"Starting time\",\u001b[22m\n \u001b[2m \"name\": \"start_time\",\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[32m- \"type\": \"hour\",\u001b[39m\n \u001b[31m+ \"type\": \"text\",\u001b[39m\n \u001b[2m },\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"inputType\": \"hour\",\u001b[39m\n \u001b[31m+ \"inputType\": \"text\",\u001b[39m\n \u001b[2m \"jsonType\": \"string\",\u001b[22m\n \u001b[2m \"label\": \"Pause time (optional)\",\u001b[22m\n \u001b[2m \"name\": \"pause\",\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[32m- \"type\": \"hour\",\u001b[39m\n \u001b[31m+ \"type\": \"text\",\u001b[39m\n \u001b[2m },\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"inputType\": \"hour\",\u001b[39m\n \u001b[32m- \"jsonType\": Array [\u001b[39m\n \u001b[32m- \"null\",\u001b[39m\n \u001b[32m- \"string\",\u001b[39m\n \u001b[32m- ],\u001b[39m\n \u001b[31m+ \"inputType\": \"text\",\u001b[39m\n \u001b[31m+ \"jsonType\": \"select\",\u001b[39m\n \u001b[2m \"label\": \"Finishing time (optional)\",\u001b[22m\n \u001b[2m \"name\": \"end_time\",\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[32m- \"type\": \"hour\",\u001b[39m\n \u001b[31m+ \"type\": \"text\",\u001b[39m\n \u001b[2m },\u001b[22m\n \u001b[2m ]\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2334 |\u001b[39m schema\u001b[33m:\u001b[39m expect\u001b[33m.\u001b[39many(\u001b[33mObject\u001b[39m)\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2335 |\u001b[39m }\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2336 |\u001b[39m expect(fields)\u001b[33m.\u001b[39mtoMatchObject([\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2337 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 2338 |\u001b[39m name\u001b[33m:\u001b[39m \u001b[32m'start_time'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2339 |\u001b[39m label\u001b[33m:\u001b[39m \u001b[32m'Starting time'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2336:24)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › validation options › given invalid values it returns both yupError and formErrors\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n Expected: \u001b[32mAny\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2369 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2370 |\u001b[39m \u001b[90m// Assert the yupError shape is really a YupError\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2371 |\u001b[39m expect(yupError)\u001b[33m.\u001b[39mtoEqual(expect\u001b[33m.\u001b[39many(\u001b[33mError\u001b[39m))\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2372 |\u001b[39m expect(yupError\u001b[33m.\u001b[39minner[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mpath)\u001b[33m.\u001b[39mtoBe(\u001b[32m'username'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2373 |\u001b[39m expect(yupError\u001b[33m.\u001b[39minner[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mmessage)\u001b[33m.\u001b[39mtoBe(\u001b[32m'Required field'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2374 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2371:24)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › supports oneOf number const\u001b[39m\u001b[22m\n\n TypeError: Cannot read properties of undefined (reading 'isValidSync')\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2413 |\u001b[39m \u001b[36mconst\u001b[39m fieldValidator \u001b[33m=\u001b[39m result\u001b[33m.\u001b[39mfields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mschema\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2414 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2415 |\u001b[39m expect(fieldValidator\u001b[33m.\u001b[39misValidSync(\u001b[35m0\u001b[39m))\u001b[33m.\u001b[39mtoBe(\u001b[36mtrue\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2416 |\u001b[39m expect(fieldValidator\u001b[33m.\u001b[39misValidSync(\u001b[35m1\u001b[39m))\u001b[33m.\u001b[39mtoBe(\u001b[36mtrue\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2417 |\u001b[39m expect(() \u001b[33m=>\u001b[39m fieldValidator\u001b[33m.\u001b[39mvalidateSync(\u001b[32m'2'\u001b[39m))\u001b[33m.\u001b[39mtoThrowError(\u001b[32m'The option \"2\" is not valid.'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2418 |\u001b[39m expect(fieldValidator\u001b[33m.\u001b[39misValidSync(\u001b[36mnull\u001b[39m))\u001b[33m.\u001b[39mtoBe(\u001b[36mtrue\u001b[39m)\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.isValidSync (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2415:27)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › property misc attributes › pass readOnly to field\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[33m@@ -2,9 +2,8 @@\u001b[39m\n \u001b[2m \"fields\": Array [\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"label\": \"Secret code\",\u001b[22m\n \u001b[2m \"name\": \"secret\",\u001b[22m\n \u001b[2m \"readOnly\": true,\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2434 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2435 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2436 |\u001b[39m expect(result)\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2437 |\u001b[39m fields\u001b[33m:\u001b[39m [\u001b[22m\n\u001b[2m \u001b[90m 2438 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 2439 |\u001b[39m name\u001b[33m:\u001b[39m \u001b[32m'secret'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2436:22)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › property misc attributes › pass \"deprecated\" attributes to field\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 5\u001b[39m\n \u001b[31m+ Received + 2\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"fields\": Array [\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"deprecated\": Object {\u001b[39m\n \u001b[32m- \"description\": \"Deprecated in favor of \\\"birthdate\\\".\",\u001b[39m\n \u001b[32m- },\u001b[39m\n \u001b[31m+ \"deprecated\": true,\u001b[39m\n \u001b[2m \"label\": \"Age\",\u001b[22m\n \u001b[2m \"name\": \"secret\",\u001b[22m\n \u001b[32m- \"schema\": Any,\u001b[39m\n \u001b[32m- \"type\": \"number\",\u001b[39m\n \u001b[31m+ \"type\": \"text\",\u001b[39m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2463 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2464 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2465 |\u001b[39m expect(result)\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2466 |\u001b[39m fields\u001b[33m:\u001b[39m [\u001b[22m\n\u001b[2m \u001b[90m 2467 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 2468 |\u001b[39m type\u001b[33m:\u001b[39m \u001b[32m'number'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2465:22)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › property misc attributes › pass both root level \"description\" and \"presentation.description\" (deprecated)\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatch\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n Expected pattern: \u001b[32m/a different description /i\u001b[39m\n Received string: \u001b[31m\"Your username (max 10 characters)\"\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2534 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2535 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2536 |\u001b[39m expect(resultsWithPresentationDescription\u001b[33m.\u001b[39mfields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mdescription)\u001b[33m.\u001b[39mtoMatch(\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2537 |\u001b[39m \u001b[35m/a different description /i\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2538 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2539 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatch (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2536:72)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › property misc attributes › pass custom attributes as function\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"MyComponent\": Any,\u001b[22m\n \u001b[32m- \"required\": true,\u001b[39m\n \u001b[31m+ \"required\": false,\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2631 |\u001b[39m \u001b[33mMyComponent\u001b[39m\u001b[33m:\u001b[39m expect\u001b[33m.\u001b[39many(\u001b[33mFunction\u001b[39m)\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2632 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2633 |\u001b[39m expect(getField(fields\u001b[33m,\u001b[39m \u001b[32m'field_b'\u001b[39m))\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2634 |\u001b[39m required\u001b[33m:\u001b[39m \u001b[36mtrue\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2635 |\u001b[39m \u001b[33mMyComponent\u001b[39m\u001b[33m:\u001b[39m expect\u001b[33m.\u001b[39many(\u001b[33mFunction\u001b[39m)\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2636 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2633:43)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › property misc attributes › pass scopedJsonSchema to each field\u001b[39m\u001b[22m\n\n TypeError: Array type is not yet supported\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 112 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 113 |\u001b[39m \u001b[36mif\u001b[39m (schema\u001b[33m.\u001b[39mtype \u001b[33m===\u001b[39m \u001b[32m'array'\u001b[39m) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 114 |\u001b[39m \u001b[36mthrow\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mTypeError\u001b[39m(\u001b[32m'Array type is not yet supported'\u001b[39m)\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 115 |\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 116 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 117 |\u001b[39m \u001b[36mconst\u001b[39m presentation \u001b[33m=\u001b[39m schema[\u001b[32m'x-jsf-presentation'\u001b[39m] \u001b[33m||\u001b[39m {}\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldSchema (\u001b[22m\u001b[2msrc/field/schema.ts\u001b[2m:114:11)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldObject (\u001b[22m\u001b[2msrc/field/object.ts\u001b[2m:18:35)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:201:26)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:218:13)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2640:44)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › property misc attributes › Order of fields › sorts fields based on presentation.position keyword (deprecated)\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Array [\u001b[22m\n \u001b[32m- \"username\",\u001b[39m\n \u001b[2m \"age\",\u001b[22m\n \u001b[2m \"street\",\u001b[22m\n \u001b[31m+ \"username\",\u001b[39m\n \u001b[2m ]\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2673 |\u001b[39m \u001b[90m// Assert the Fields order\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2674 |\u001b[39m \u001b[36mconst\u001b[39m fieldsByName \u001b[33m=\u001b[39m fields\u001b[33m.\u001b[39mmap((f) \u001b[33m=>\u001b[39m f\u001b[33m.\u001b[39mname)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2675 |\u001b[39m expect(fieldsByName)\u001b[33m.\u001b[39mtoEqual([\u001b[32m'username'\u001b[39m\u001b[33m,\u001b[39m \u001b[32m'age'\u001b[39m\u001b[33m,\u001b[39m \u001b[32m'street'\u001b[39m])\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2676 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2677 |\u001b[39m \u001b[36mconst\u001b[39m fieldsetByName \u001b[33m=\u001b[39m fields[\u001b[35m2\u001b[39m]\u001b[33m.\u001b[39mfields\u001b[33m.\u001b[39mmap((f) \u001b[33m=>\u001b[39m f\u001b[33m.\u001b[39mname)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2678 |\u001b[39m expect(fieldsetByName)\u001b[33m.\u001b[39mtoEqual([\u001b[32m'line_one'\u001b[39m\u001b[33m,\u001b[39m \u001b[32m'number'\u001b[39m\u001b[33m,\u001b[39m \u001b[32m'postal_code'\u001b[39m])\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2675:30)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › property misc attributes › Order of fields › sorts fields based on x-jsf-order keyword\u001b[39m\u001b[22m\n\n TypeError: Cannot read properties of undefined (reading 'map')\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2698 |\u001b[39m expect(fieldsByName)\u001b[33m.\u001b[39mtoEqual([\u001b[32m'username'\u001b[39m\u001b[33m,\u001b[39m \u001b[32m'age'\u001b[39m\u001b[33m,\u001b[39m \u001b[32m'street'\u001b[39m])\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2699 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2700 |\u001b[39m \u001b[36mconst\u001b[39m fieldsetByName \u001b[33m=\u001b[39m fields[\u001b[35m2\u001b[39m]\u001b[33m.\u001b[39mfields\u001b[33m.\u001b[39mmap((f) \u001b[33m=>\u001b[39m f\u001b[33m.\u001b[39mname)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2701 |\u001b[39m expect(fieldsetByName)\u001b[33m.\u001b[39mtoEqual([\u001b[32m'line_one'\u001b[39m\u001b[33m,\u001b[39m \u001b[32m'number'\u001b[39m\u001b[33m,\u001b[39m \u001b[32m'postal_code'\u001b[39m])\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2702 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2703 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.map (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2700:49)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › more validations › when a field is required › and value is empty › should throw an error\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\n Received promise resolved instead of rejected\n Resolved to value: \u001b[31m{\"test\": \"\"}\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2734 |\u001b[39m describe(\u001b[32m'and value is empty'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 2735 |\u001b[39m it(\u001b[32m'should throw an error'\u001b[39m\u001b[33m,\u001b[39m \u001b[36masync\u001b[39m () \u001b[33m=>\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2736 |\u001b[39m expect(\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2737 |\u001b[39m object()\u001b[22m\n\u001b[2m \u001b[90m 2738 |\u001b[39m \u001b[33m.\u001b[39mshape({\u001b[22m\n\u001b[2m \u001b[90m 2739 |\u001b[39m test\u001b[33m:\u001b[39m fields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mschema\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat expect (\u001b[22m\u001b[2mnode_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js\u001b[2m:113:15)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.expect (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2736:11)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › more validations › when a field is number › and value is a string › should throw an error\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoThrow\u001b[2m()\u001b[22m\n\n Received promise resolved instead of rejected\n Resolved to value: \u001b[31m{\"test\": \"Hello\"}\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2766 |\u001b[39m describe(\u001b[32m'and value is a string'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 2767 |\u001b[39m it(\u001b[32m'should throw an error'\u001b[39m\u001b[33m,\u001b[39m \u001b[36masync\u001b[39m () \u001b[33m=>\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2768 |\u001b[39m expect(\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2769 |\u001b[39m object()\u001b[22m\n\u001b[2m \u001b[90m 2770 |\u001b[39m \u001b[33m.\u001b[39mshape({\u001b[22m\n\u001b[2m \u001b[90m 2771 |\u001b[39m test\u001b[33m:\u001b[39m fields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mschema\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat expect (\u001b[22m\u001b[2mnode_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js\u001b[2m:113:15)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.expect (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2768:11)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › more validations › when a field is number › and maximum is set to zero › shows the correct validation\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBeUndefined\u001b[2m()\u001b[22m\n\n Received: \u001b[31m{\"tabs\": \"The value must be a number\"}\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2791 |\u001b[39m \u001b[36mconst\u001b[39m validateForm \u001b[33m=\u001b[39m (vals) \u001b[33m=>\u001b[39m friendlyError(handleValidation(vals))\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2792 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2793 |\u001b[39m expect(validateForm({ tabs\u001b[33m:\u001b[39m \u001b[32m'0'\u001b[39m }))\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2794 |\u001b[39m expect(validateForm({ tabs\u001b[33m:\u001b[39m \u001b[32m'-10'\u001b[39m }))\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2795 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2796 |\u001b[39m expect(validateForm({ tabs\u001b[33m:\u001b[39m \u001b[35m1\u001b[39m }))\u001b[33m.\u001b[39mtoEqual({\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBeUndefined (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2793:47)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › more validations › when a field has a maxLength of 10 › and value is greater than that › should throw an error\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\n Received promise resolved instead of rejected\n Resolved to value: \u001b[31m{\"test\": \"Hello Mr John Doe\"}\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2814 |\u001b[39m describe(\u001b[32m'and value is greater than that'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 2815 |\u001b[39m it(\u001b[32m'should throw an error'\u001b[39m\u001b[33m,\u001b[39m \u001b[36masync\u001b[39m () \u001b[33m=>\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2816 |\u001b[39m expect(\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2817 |\u001b[39m object()\u001b[22m\n\u001b[2m \u001b[90m 2818 |\u001b[39m \u001b[33m.\u001b[39mshape({\u001b[22m\n\u001b[2m \u001b[90m 2819 |\u001b[39m test\u001b[33m:\u001b[39m fields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mschema\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat expect (\u001b[22m\u001b[2mnode_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js\u001b[2m:113:15)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.expect (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2816:11)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › more validations › when a field has a minLength of 2 › and value is smaller than that › should throw an error\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\n Received promise resolved instead of rejected\n Resolved to value: \u001b[31m{\"test\": \"H\"}\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2849 |\u001b[39m describe(\u001b[32m'and value is smaller than that'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 2850 |\u001b[39m it(\u001b[32m'should throw an error'\u001b[39m\u001b[33m,\u001b[39m \u001b[36masync\u001b[39m () \u001b[33m=>\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2851 |\u001b[39m expect(\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2852 |\u001b[39m object()\u001b[22m\n\u001b[2m \u001b[90m 2853 |\u001b[39m \u001b[33m.\u001b[39mshape({\u001b[22m\n\u001b[2m \u001b[90m 2854 |\u001b[39m test\u001b[33m:\u001b[39m fields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mschema\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat expect (\u001b[22m\u001b[2mnode_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js\u001b[2m:113:15)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.expect (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2851:11)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › more validations › when a field has a minimum of 0 › and value is less than that › should throw an error\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\n Received promise resolved instead of rejected\n Resolved to value: \u001b[31m{\"test\": -1}\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2885 |\u001b[39m describe(\u001b[32m'and value is less than that'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 2886 |\u001b[39m it(\u001b[32m'should throw an error'\u001b[39m\u001b[33m,\u001b[39m \u001b[36masync\u001b[39m () \u001b[33m=>\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2887 |\u001b[39m expect(\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2888 |\u001b[39m object()\u001b[22m\n\u001b[2m \u001b[90m 2889 |\u001b[39m \u001b[33m.\u001b[39mshape({\u001b[22m\n\u001b[2m \u001b[90m 2890 |\u001b[39m test\u001b[33m:\u001b[39m fields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mschema\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat expect (\u001b[22m\u001b[2mnode_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js\u001b[2m:113:15)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.expect (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2887:11)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › more validations › when a field has a maximum of 10 › and value is greater than that › should throw an error\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\n Received promise resolved instead of rejected\n Resolved to value: \u001b[31m{\"test\": 11}\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2922 |\u001b[39m describe(\u001b[32m'and value is greater than that'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 2923 |\u001b[39m it(\u001b[32m'should throw an error'\u001b[39m\u001b[33m,\u001b[39m \u001b[36masync\u001b[39m () \u001b[33m=>\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2924 |\u001b[39m expect(\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2925 |\u001b[39m object()\u001b[22m\n\u001b[2m \u001b[90m 2926 |\u001b[39m \u001b[33m.\u001b[39mshape({\u001b[22m\n\u001b[2m \u001b[90m 2927 |\u001b[39m test\u001b[33m:\u001b[39m fields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mschema\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat expect (\u001b[22m\u001b[2mnode_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js\u001b[2m:113:15)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.expect (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2924:11)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › more validations › when a field has a pattern › and value does not match the pattern › should throw an error\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mrejects\u001b[2m.\u001b[22mtoMatchObject\u001b[2m()\u001b[22m\n\n Received promise resolved instead of rejected\n Resolved to value: \u001b[31m{\"test\": \"Hello\"}\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 2958 |\u001b[39m describe(\u001b[32m'and value does not match the pattern'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 2959 |\u001b[39m it(\u001b[32m'should throw an error'\u001b[39m\u001b[33m,\u001b[39m \u001b[36masync\u001b[39m () \u001b[33m=>\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 2960 |\u001b[39m expect(\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 2961 |\u001b[39m object()\u001b[22m\n\u001b[2m \u001b[90m 2962 |\u001b[39m \u001b[33m.\u001b[39mshape({\u001b[22m\n\u001b[2m \u001b[90m 2963 |\u001b[39m test\u001b[33m:\u001b[39m fields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mschema\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat expect (\u001b[22m\u001b[2mnode_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js\u001b[2m:113:15)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.expect (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:2960:11)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › even more validations › and all fields are mandatory › validation should return false when value is an object with empty values\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 0\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"numberInput\": \"The value must be a number\",\u001b[22m\n \u001b[32m- \"textInput\": \"Required field\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3071 |\u001b[39m \u001b[36mconst\u001b[39m testValue \u001b[33m=\u001b[39m validateForm(values)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3072 |\u001b[39m \u001b[36mif\u001b[39m (errors) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3073 |\u001b[39m expect(testValue)\u001b[33m.\u001b[39mtoEqual(errors)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3074 |\u001b[39m } \u001b[36melse\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 3075 |\u001b[39m expect(testValue)\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3076 |\u001b[39m }\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3073:29)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › even more validations › and fields are dynamically required/optional › applies correct validation for single-value based conditionals\u001b[39m\u001b[22m\n\n TypeError: Array type is not yet supported\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 112 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 113 |\u001b[39m \u001b[36mif\u001b[39m (schema\u001b[33m.\u001b[39mtype \u001b[33m===\u001b[39m \u001b[32m'array'\u001b[39m) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 114 |\u001b[39m \u001b[36mthrow\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mTypeError\u001b[39m(\u001b[32m'Array type is not yet supported'\u001b[39m)\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 115 |\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 116 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 117 |\u001b[39m \u001b[36mconst\u001b[39m presentation \u001b[33m=\u001b[39m schema[\u001b[32m'x-jsf-presentation'\u001b[39m] \u001b[33m||\u001b[39m {}\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldSchema (\u001b[22m\u001b[2msrc/field/schema.ts\u001b[2m:114:11)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldObject (\u001b[22m\u001b[2msrc/field/object.ts\u001b[2m:18:35)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:201:26)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:218:13)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3144:64)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › even more validations › and fields are dynamically required/optional › applies correct validation for minimum/maximum conditionals\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 3\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"a_conditional_text\": \"Required field\",\u001b[39m\n \u001b[2m \"a_number\": \"Must be greater or equal to 1\",\u001b[22m\n \u001b[31m+ \"else\": Object {\u001b[39m\n \u001b[31m+ \"a_conditional_text\": \"Required field\",\u001b[39m\n \u001b[31m+ },\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3208 |\u001b[39m a_number\u001b[33m:\u001b[39m \u001b[35m0\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3209 |\u001b[39m })\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3210 |\u001b[39m )\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3211 |\u001b[39m a_conditional_text\u001b[33m:\u001b[39m \u001b[32m'Required field'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3212 |\u001b[39m a_number\u001b[33m:\u001b[39m \u001b[32m'Must be greater or equal to 1'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3213 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3210:11)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › even more validations › and fields are dynamically required/optional › applies correct validation for minLength/maxLength conditionals\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 0\u001b[39m\n \u001b[31m+ Received + 2\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[31m+ \"else\": Object {\u001b[39m\n \u001b[2m \"a_conditional_text\": \"Required field\",\u001b[22m\n \u001b[31m+ },\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3243 |\u001b[39m }\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3244 |\u001b[39m \u001b[90m// By default a_conditional_text is required.\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3245 |\u001b[39m expect(validateForm({}))\u001b[33m.\u001b[39mtoEqual(formError)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3246 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3247 |\u001b[39m \u001b[90m// Check for minimum length condition - a_text >= 3 chars\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3248 |\u001b[39m expect(\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3245:34)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › even more validations › and fields are dynamically required/optional › applies correct validation for array-contain based conditionals\u001b[39m\u001b[22m\n\n TypeError: Array type is not yet supported\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 112 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 113 |\u001b[39m \u001b[36mif\u001b[39m (schema\u001b[33m.\u001b[39mtype \u001b[33m===\u001b[39m \u001b[32m'array'\u001b[39m) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 114 |\u001b[39m \u001b[36mthrow\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mTypeError\u001b[39m(\u001b[32m'Array type is not yet supported'\u001b[39m)\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 115 |\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 116 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 117 |\u001b[39m \u001b[36mconst\u001b[39m presentation \u001b[33m=\u001b[39m schema[\u001b[32m'x-jsf-presentation'\u001b[39m] \u001b[33m||\u001b[39m {}\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldSchema (\u001b[22m\u001b[2msrc/field/schema.ts\u001b[2m:114:11)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldObject (\u001b[22m\u001b[2msrc/field/object.ts\u001b[2m:18:35)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:201:26)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:218:13)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3277:56)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › even more validations › and fields are dynamically required/optional › applies correct validation for fieldset fields\u001b[39m\u001b[22m\n\n TypeError: Array type is not yet supported\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 112 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 113 |\u001b[39m \u001b[36mif\u001b[39m (schema\u001b[33m.\u001b[39mtype \u001b[33m===\u001b[39m \u001b[32m'array'\u001b[39m) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 114 |\u001b[39m \u001b[36mthrow\u001b[39m \u001b[36mnew\u001b[39m \u001b[33mTypeError\u001b[39m(\u001b[32m'Array type is not yet supported'\u001b[39m)\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 115 |\u001b[39m }\u001b[22m\n\u001b[2m \u001b[90m 116 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 117 |\u001b[39m \u001b[36mconst\u001b[39m presentation \u001b[33m=\u001b[39m schema[\u001b[32m'x-jsf-presentation'\u001b[39m] \u001b[33m||\u001b[39m {}\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldSchema (\u001b[22m\u001b[2msrc/field/schema.ts\u001b[2m:114:11)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFieldObject (\u001b[22m\u001b[2msrc/field/object.ts\u001b[2m:18:35)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:201:26)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat buildFields (\u001b[22m\u001b[2msrc/form.ts\u001b[2m:218:13)\u001b[22m\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object. (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3314:56)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › even more validations › and fields are dynamically required/optional › applies any of the validation alternatives in a anyOf branch\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"field_c\": \"Required field\",\u001b[39m\n \u001b[31m+ \"\": \"Must match at least one of the provided schemas\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3362 |\u001b[39m field_b\u001b[33m:\u001b[39m \u001b[32m'456'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3363 |\u001b[39m })\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3364 |\u001b[39m )\u001b[33m.\u001b[39mtoEqual({ field_c\u001b[33m:\u001b[39m \u001b[32m'Required field'\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3365 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3366 |\u001b[39m expect(\u001b[22m\n\u001b[2m \u001b[90m 3367 |\u001b[39m validateForm({\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3364:11)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › even more validations › and fields are dynamically required/optional › nested conditionals › given empty values, runs \"else\" (gets hidden)\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\n Expected: \u001b[32mfalse\u001b[39m\n Received: \u001b[31mtrue\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3392 |\u001b[39m field_a\u001b[33m:\u001b[39m \u001b[36mnull\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3393 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3394 |\u001b[39m expect(getField(fields\u001b[33m,\u001b[39m \u001b[32m'field_b'\u001b[39m)\u001b[33m.\u001b[39misVisible)\u001b[33m.\u001b[39mtoBe(\u001b[36mfalse\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3395 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3396 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3397 |\u001b[39m it(\u001b[32m'given a match, runs \"then\" (turns visible and editable)'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBe (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3394:57)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › even more validations › and fields are dynamically required/optional › nested conditionals › given a match, runs \"then\" (turns visible and editable)\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\n Expected: \u001b[32mfalse\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3400 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3401 |\u001b[39m expect(getField(fields\u001b[33m,\u001b[39m \u001b[32m'field_b'\u001b[39m)\u001b[33m.\u001b[39misVisible)\u001b[33m.\u001b[39mtoBe(\u001b[36mtrue\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3402 |\u001b[39m expect(getField(fields\u001b[33m,\u001b[39m \u001b[32m'field_b'\u001b[39m)\u001b[33m.\u001b[39mreadOnly)\u001b[33m.\u001b[39mtoBe(\u001b[36mfalse\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3403 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3404 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3405 |\u001b[39m it(\u001b[32m'given a nested match, runs \"else-then\" (turns visible but readOnly)'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBe (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3402:56)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › even more validations › and fields are dynamically required/optional › nested conditionals › given a nested match, runs \"else-then\" (turns visible but readOnly)\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\n Expected: \u001b[32mtrue\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3408 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3409 |\u001b[39m expect(getField(fields\u001b[33m,\u001b[39m \u001b[32m'field_b'\u001b[39m)\u001b[33m.\u001b[39misVisible)\u001b[33m.\u001b[39mtoBe(\u001b[36mtrue\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3410 |\u001b[39m expect(getField(fields\u001b[33m,\u001b[39m \u001b[32m'field_b'\u001b[39m)\u001b[33m.\u001b[39mreadOnly)\u001b[33m.\u001b[39mtoBe(\u001b[36mtrue\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3411 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3412 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3413 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBe (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3410:56)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › even more validations › and fields are dynamically required/optional › conditional fields (incorrectly done) › given empty values, the incorrect conditional runs \"then\" instead of \"else\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\n Expected: \u001b[32mfalse\u001b[39m\n Received: \u001b[31mtrue\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3420 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3421 |\u001b[39m \u001b[90m// The dependent correct field gets hidden, but...\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3422 |\u001b[39m expect(getField(fieldsEmpty\u001b[33m,\u001b[39m \u001b[32m'field_b'\u001b[39m)\u001b[33m.\u001b[39misVisible)\u001b[33m.\u001b[39mtoBe(\u001b[36mfalse\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3423 |\u001b[39m \u001b[90m// ...the dependent wrong field stays visible because the\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3424 |\u001b[39m \u001b[90m// conditional is wrong (it's missing the if.required[])\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3425 |\u001b[39m expect(getField(fieldsEmpty\u001b[33m,\u001b[39m \u001b[32m'field_b_wrong'\u001b[39m)\u001b[33m.\u001b[39misVisible)\u001b[33m.\u001b[39mtoBe(\u001b[36mtrue\u001b[39m)\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBe (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3422:62)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › even more validations › and fields are dynamically required/optional › conditional fields (incorrectly done) › not given a match (\"no\"), both run else (stay hidden)\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\n Expected: \u001b[32mfalse\u001b[39m\n Received: \u001b[31mtrue\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3438 |\u001b[39m initialValues\u001b[33m:\u001b[39m { field_a\u001b[33m:\u001b[39m \u001b[32m'no'\u001b[39m\u001b[33m,\u001b[39m field_a_wrong\u001b[33m:\u001b[39m \u001b[32m'no'\u001b[39m }\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3439 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3440 |\u001b[39m expect(getField(fieldsHidden\u001b[33m,\u001b[39m \u001b[32m'field_b'\u001b[39m)\u001b[33m.\u001b[39misVisible)\u001b[33m.\u001b[39mtoBe(\u001b[36mfalse\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3441 |\u001b[39m expect(getField(fieldsHidden\u001b[33m,\u001b[39m \u001b[32m'field_b_wrong'\u001b[39m)\u001b[33m.\u001b[39misVisible)\u001b[33m.\u001b[39mtoBe(\u001b[36mfalse\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3442 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3443 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBe (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3440:63)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › even more validations › and fields are dynamically required/optional › checkbox should have no initial value when its dynamically shown and invisible\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\n Expected: \u001b[32mfalse\u001b[39m\n Received: \u001b[31mtrue\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3450 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3451 |\u001b[39m \u001b[36mconst\u001b[39m dependentField \u001b[33m=\u001b[39m getField(fields\u001b[33m,\u001b[39m \u001b[32m'field_b'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3452 |\u001b[39m expect(dependentField\u001b[33m.\u001b[39misVisible)\u001b[33m.\u001b[39mtoBe(\u001b[36mfalse\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3453 |\u001b[39m expect(dependentField\u001b[33m.\u001b[39mvalue)\u001b[33m.\u001b[39mtoBe(undefined)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3454 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3455 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBe (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3452:42)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › Throwing custom error messages using errorMessage (deprecated) › error message for property \"type\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"numberInput\": \"It has to be a number.\",\u001b[39m\n \u001b[31m+ \"numberInput\": \"The value must be a number\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3644 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3645 |\u001b[39m \u001b[36mif\u001b[39m (errors) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3646 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoEqual(errors)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3647 |\u001b[39m } \u001b[36melse\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 3648 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3649 |\u001b[39m }\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3646:37)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › Throwing custom error messages using errorMessage (deprecated) › error message for property \"minimum\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"numberInput\": \"I am a custom error message\",\u001b[39m\n \u001b[31m+ \"numberInput\": \"Must be greater or equal to 1\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3644 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3645 |\u001b[39m \u001b[36mif\u001b[39m (errors) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3646 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoEqual(errors)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3647 |\u001b[39m } \u001b[36melse\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 3648 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3649 |\u001b[39m }\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3646:37)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › Throwing custom error messages using errorMessage (deprecated) › error message for property \"required\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"numberInput\": \"I am a custom error message\",\u001b[39m\n \u001b[31m+ \"numberInput\": \"Required field\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3644 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3645 |\u001b[39m \u001b[36mif\u001b[39m (errors) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3646 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoEqual(errors)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3647 |\u001b[39m } \u001b[36melse\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 3648 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3649 |\u001b[39m }\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3646:37)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › Throwing custom error messages using errorMessage (deprecated) › error message for property \"maximum\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"numberInput\": \"I am a custom error message\",\u001b[39m\n \u001b[31m+ \"numberInput\": \"Must be smaller or equal to 10\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3644 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3645 |\u001b[39m \u001b[36mif\u001b[39m (errors) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3646 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoEqual(errors)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3647 |\u001b[39m } \u001b[36melse\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 3648 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3649 |\u001b[39m }\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3646:37)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › Throwing custom error messages using errorMessage (deprecated) › error message for property \"minLength\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"stringInput\": \"I am a custom error message\",\u001b[39m\n \u001b[31m+ \"stringInput\": \"Please insert at least 3 characters\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3644 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3645 |\u001b[39m \u001b[36mif\u001b[39m (errors) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3646 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoEqual(errors)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3647 |\u001b[39m } \u001b[36melse\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 3648 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3649 |\u001b[39m }\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3646:37)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › Throwing custom error messages using errorMessage (deprecated) › error message for property \"maxLength\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"stringInput\": \"I am a custom error message\",\u001b[39m\n \u001b[31m+ \"stringInput\": \"Please insert up to 3 characters\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3644 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3645 |\u001b[39m \u001b[36mif\u001b[39m (errors) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3646 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoEqual(errors)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3647 |\u001b[39m } \u001b[36melse\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 3648 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3649 |\u001b[39m }\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3646:37)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › Throwing custom error messages using errorMessage (deprecated) › error message for property \"pattern\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"stringInput\": \"I am a custom error message\",\u001b[39m\n \u001b[31m+ \"stringInput\": \"Must have a valid format. E.g. +265986400132632389\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3644 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3645 |\u001b[39m \u001b[36mif\u001b[39m (errors) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3646 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoEqual(errors)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3647 |\u001b[39m } \u001b[36melse\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 3648 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3649 |\u001b[39m }\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3646:37)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › Throwing custom error messages using errorMessage (deprecated) › error message for property \"maxFileSize\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"fileInput\": \"I am a custom error message\",\u001b[39m\n \u001b[31m+ \"fileInput\": \"The value must be a string\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3644 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3645 |\u001b[39m \u001b[36mif\u001b[39m (errors) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3646 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoEqual(errors)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3647 |\u001b[39m } \u001b[36melse\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 3648 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3649 |\u001b[39m }\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3646:37)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › Throwing custom error messages using errorMessage (deprecated) › error message for property \"accept\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"fileInput\": \"I am a custom error message\",\u001b[39m\n \u001b[31m+ \"fileInput\": \"The value must be a string\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3644 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3645 |\u001b[39m \u001b[36mif\u001b[39m (errors) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3646 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoEqual(errors)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3647 |\u001b[39m } \u001b[36melse\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 3648 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3649 |\u001b[39m }\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3646:37)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › Custom error messages › error message for property \"maxFileSize\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"fileInput\": \"I am a custom error message\",\u001b[39m\n \u001b[31m+ \"fileInput\": \"The value must be a string\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3827 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3828 |\u001b[39m \u001b[36mif\u001b[39m (errors) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3829 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoEqual(errors)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3830 |\u001b[39m } \u001b[36melse\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 3831 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3832 |\u001b[39m }\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3829:37)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › Custom error messages › error message for property \"accept\"\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"fileInput\": \"I am a custom error message\",\u001b[39m\n \u001b[31m+ \"fileInput\": \"The value must be a string\",\u001b[39m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3827 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3828 |\u001b[39m \u001b[36mif\u001b[39m (errors) {\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3829 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoEqual(errors)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3830 |\u001b[39m } \u001b[36melse\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 3831 |\u001b[39m expect(validateForm(input))\u001b[33m.\u001b[39mtoBeUndefined()\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3832 |\u001b[39m }\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3829:37)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › Custom error messages › accepts with options.inputType[].errorMessage\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoEqual\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // deep equality\u001b[22m\n\n \u001b[32m- Expected - 2\u001b[39m\n \u001b[31m+ Received + 2\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"day\": \"This cannot be empty.\",\u001b[39m\n \u001b[32m- \"month\": \"This cannot be empty.\",\u001b[39m\n \u001b[31m+ \"day\": \"Required field\",\u001b[39m\n \u001b[31m+ \"month\": \"Required field\",\u001b[39m\n \u001b[2m \"weekday\": \"Required field\",\u001b[22m\n \u001b[2m \"year\": \"The year is mandatory.\",\u001b[22m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3847 |\u001b[39m \u001b[33m...\u001b[39mjsfConfigForErrorMessageSpecificity\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3848 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3849 |\u001b[39m expect(resultCustom\u001b[33m.\u001b[39mhandleValidation({})\u001b[33m.\u001b[39mformErrors)\u001b[33m.\u001b[39mtoEqual({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3850 |\u001b[39m weekday\u001b[33m:\u001b[39m \u001b[32m'Required field'\u001b[39m\u001b[33m,\u001b[39m \u001b[90m// sanity-check that a different inputType keeps the default error msg.\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3851 |\u001b[39m day\u001b[33m:\u001b[39m \u001b[32m'This cannot be empty.'\u001b[39m\u001b[33m,\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3852 |\u001b[39m month\u001b[33m:\u001b[39m \u001b[32m'This cannot be empty.'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toEqual (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3849:60)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › given default values › and a field with conditional presentation properties › returns the nested properties when the conditional matches\u001b[39m\u001b[22m\n\n TypeError: Cannot read properties of undefined (reading 'description')\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3866 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3867 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3868 |\u001b[39m expect(fields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mstatement\u001b[33m.\u001b[39mdescription)\u001b[33m.\u001b[39mtoBe(\u001b[32m`conditional statement markup`\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3869 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3870 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3871 |\u001b[39m describe(\u001b[32m'and \"fieldset\" has scoped conditionals'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.description (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3868:36)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › given default values › and \"fieldset\" has scoped conditionals › should show conditionals fields when values fullfil conditions\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 1\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[33m@@ -5,11 +5,11 @@\u001b[39m\n \u001b[2m \"required\": true,\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"isVisible\": true,\u001b[22m\n \u001b[2m \"name\": \"age\",\u001b[22m\n \u001b[32m- \"required\": true,\u001b[39m\n \u001b[31m+ \"required\": false,\u001b[39m\n \u001b[2m },\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"isVisible\": true,\u001b[22m\n \u001b[2m \"name\": \"passport_id\",\u001b[22m\n \u001b[2m \"required\": false,\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3877 |\u001b[39m \u001b[36mconst\u001b[39m fieldset \u001b[33m=\u001b[39m result\u001b[33m.\u001b[39mfields[\u001b[35m0\u001b[39m]\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3878 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3879 |\u001b[39m expect(fieldset)\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3880 |\u001b[39m fields\u001b[33m:\u001b[39m [\u001b[22m\n\u001b[2m \u001b[90m 3881 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 3882 |\u001b[39m name\u001b[33m:\u001b[39m \u001b[32m'has_child'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3879:26)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › given default values › and \"fieldset\" has scoped conditionals › should hide conditionals fields when values do not fullfil conditions\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 2\u001b[39m\n \u001b[31m+ Received + 2\u001b[39m\n\n \u001b[33m@@ -3,16 +3,16 @@\u001b[39m\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"name\": \"has_child\",\u001b[22m\n \u001b[2m \"required\": true,\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"isVisible\": false,\u001b[39m\n \u001b[31m+ \"isVisible\": true,\u001b[39m\n \u001b[2m \"name\": \"age\",\u001b[22m\n \u001b[2m \"required\": false,\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"isVisible\": false,\u001b[39m\n \u001b[31m+ \"isVisible\": true,\u001b[39m\n \u001b[2m \"name\": \"passport_id\",\u001b[22m\n \u001b[2m \"required\": false,\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3904 |\u001b[39m \u001b[36mconst\u001b[39m fieldset \u001b[33m=\u001b[39m result\u001b[33m.\u001b[39mfields[\u001b[35m0\u001b[39m]\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3905 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3906 |\u001b[39m expect(fieldset)\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3907 |\u001b[39m fields\u001b[33m:\u001b[39m [\u001b[22m\n\u001b[2m \u001b[90m 3908 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 3909 |\u001b[39m name\u001b[33m:\u001b[39m \u001b[32m'has_child'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3906:26)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › given default values › and \"fieldset\" has scoped conditionals › should ignore initial values that do not match the field type (eg string vs object)\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mjest.fn()\u001b[39m\u001b[2m).\u001b[22mtoHaveBeenCalledWith\u001b[2m(\u001b[22m\u001b[32m...expected\u001b[39m\u001b[2m)\u001b[22m\n\n Expected: \u001b[32m\"Field \\\"a_fieldset\\\"'s value is \\\"foo\\\", but should be type object.\"\u001b[39m\n\n Number of calls: \u001b[31m0\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3937 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3938 |\u001b[39m \u001b[90m// Warn about those missmatched values\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3939 |\u001b[39m expect(console\u001b[33m.\u001b[39mwarn)\u001b[33m.\u001b[39mtoHaveBeenCalledWith(\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3940 |\u001b[39m \u001b[32m`Field \"a_fieldset\"'s value is \"foo\", but should be type object.`\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3941 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3942 |\u001b[39m console\u001b[33m.\u001b[39mwarn\u001b[33m.\u001b[39mmockClear()\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toHaveBeenCalledWith (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3939:30)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › parser options › should support any custom field attribute\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 3\u001b[39m\n \u001b[31m+ Received + 1\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"fields\": Array [\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"falsy\": false,\u001b[39m\n \u001b[32m- \"inputType\": \"super\",\u001b[39m\n \u001b[31m+ \"inputType\": \"text\",\u001b[39m\n \u001b[2m \"jsonType\": \"string\",\u001b[22m\n \u001b[2m \"label\": \"Your feedback\",\u001b[22m\n \u001b[2m \"name\": \"feedback\",\u001b[22m\n \u001b[32m- \"something\": \"foo\",\u001b[39m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 3975 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3976 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 3977 |\u001b[39m expect(result)\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 3978 |\u001b[39m fields\u001b[33m:\u001b[39m [\u001b[22m\n\u001b[2m \u001b[90m 3979 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 3980 |\u001b[39m name\u001b[33m:\u001b[39m \u001b[32m'feedback'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:3977:22)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › parser options › should support custom description (checkbox)\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 4\u001b[39m\n \u001b[31m+ Received + 3\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"fields\": Array [\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"checkboxValue\": \"Agreed\",\u001b[39m\n \u001b[32m- \"description\": \"Extra text before. Accept terms.\",\u001b[39m\n \u001b[32m- \"inputType\": \"checkbox\",\u001b[39m\n \u001b[31m+ \"description\": \"Accept terms.\",\u001b[39m\n \u001b[31m+ \"inputType\": \"text\",\u001b[39m\n \u001b[2m \"jsonType\": \"string\",\u001b[22m\n \u001b[2m \"label\": \"Terms\",\u001b[22m\n \u001b[2m \"name\": \"terms\",\u001b[22m\n \u001b[2m \"required\": false,\u001b[22m\n \u001b[32m- \"type\": \"checkbox\",\u001b[39m\n \u001b[31m+ \"type\": \"text\",\u001b[39m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 4009 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 4010 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 4011 |\u001b[39m expect(result)\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 4012 |\u001b[39m fields\u001b[33m:\u001b[39m [\u001b[22m\n\u001b[2m \u001b[90m 4013 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 4014 |\u001b[39m label\u001b[33m:\u001b[39m \u001b[32m'Terms'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:4011:22)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › parser options › should handle custom properties when inside fieldsets\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoMatchObject\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m)\u001b[22m\n\n \u001b[32m- Expected - 6\u001b[39m\n \u001b[31m+ Received + 3\u001b[39m\n\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"fields\": Array [\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"data-field\": \"field\",\u001b[39m\n \u001b[2m \"name\": \"id_number\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"fields\": Array [\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"data-fieldset\": \"fieldset\",\u001b[39m\n \u001b[2m \"name\": \"username\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"name\": \"tabs\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[32m- \"name\": \"fieldset\",\u001b[39m\n \u001b[31m+ \"name\": \"Fieldset title\",\u001b[39m\n \u001b[2m },\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"fields\": Array [\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"fields\": Array [\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[32m- \"data-nested-fieldset\": \"nested-fieldset\",\u001b[39m\n \u001b[2m \"name\": \"username\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m Object {\u001b[22m\n \u001b[2m \"name\": \"tabs\",\u001b[22m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[32m- \"name\": \"innerFieldset\",\u001b[39m\n \u001b[31m+ \"name\": \"Fieldset title\",\u001b[39m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[32m- \"name\": \"nestedFieldset\",\u001b[39m\n \u001b[31m+ \"name\": \"Nested fieldset title\",\u001b[39m\n \u001b[2m },\u001b[22m\n \u001b[2m ],\u001b[22m\n \u001b[2m }\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 4092 |\u001b[39m )\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 4093 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 4094 |\u001b[39m expect(result)\u001b[33m.\u001b[39mtoMatchObject({\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 4095 |\u001b[39m fields\u001b[33m:\u001b[39m [\u001b[22m\n\u001b[2m \u001b[90m 4096 |\u001b[39m {\u001b[22m\n\u001b[2m \u001b[90m 4097 |\u001b[39m \u001b[32m'data-field'\u001b[39m\u001b[33m:\u001b[39m \u001b[32m'field'\u001b[39m\u001b[33m,\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchObject (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:4094:22)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › parser options › should handle custom properties when inside fieldsets for fields name clashing with reserved words\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\n Expected: \u001b[32m\"What's your dogs name\"\u001b[39m\n Received: \u001b[31mundefined\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 4208 |\u001b[39m expect(fields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mfields\u001b[33m.\u001b[39mlength)\u001b[33m.\u001b[39mtoBe(\u001b[35m2\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 4209 |\u001b[39m expect(fields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mfields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mname)\u001b[33m.\u001b[39mtoBe(\u001b[32m'name'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 4210 |\u001b[39m expect(fields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mfields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mdescription)\u001b[33m.\u001b[39mtoBe(\u001b[32m\"What's your dogs name\"\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 4211 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 4212 |\u001b[39m })\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 4213 |\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBe (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:4210:47)\u001b[22m\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[22m\u001b[1mcreateHeadlessForm › presentation (deprecated in favor of x-jsf-presentation) › works well with position, description, inputType, and any other arbitrary attribute\u001b[39m\u001b[22m\n\n \u001b[2mexpect(\u001b[22m\u001b[31mreceived\u001b[39m\u001b[2m).\u001b[22mtoBe\u001b[2m(\u001b[22m\u001b[32mexpected\u001b[39m\u001b[2m) // Object.is equality\u001b[22m\n\n Expected: \u001b[32m\"time\"\u001b[39m\n Received: \u001b[31m\"day\"\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 4242 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 4243 |\u001b[39m \u001b[90m// Assert order from presentation.position\u001b[39m\u001b[22m\n\u001b[2m \u001b[31m\u001b[1m>\u001b[22m\u001b[2m\u001b[39m\u001b[90m 4244 |\u001b[39m expect(fields[\u001b[35m0\u001b[39m]\u001b[33m.\u001b[39mname)\u001b[33m.\u001b[39mtoBe(\u001b[32m'time'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[2m\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 4245 |\u001b[39m expect(fields[\u001b[35m1\u001b[39m]\u001b[33m.\u001b[39mname)\u001b[33m.\u001b[39mtoBe(\u001b[32m'day'\u001b[39m)\u001b[33m;\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 4246 |\u001b[39m\u001b[22m\n\u001b[2m \u001b[90m 4247 |\u001b[39m \u001b[90m// Assert spreaded attributes\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toBe (\u001b[22m\u001b[2m\u001b[0m\u001b[36m../src/tests/createHeadlessForm.test.js\u001b[39m\u001b[0m\u001b[2m:4244:30)\u001b[22m\u001b[2m\u001b[22m\n","name":"/Users/luka.dornhecker/code/json-schema-form/src/tests/createHeadlessForm.test.js","startTime":1741605290058,"status":"failed","summary":""}],"wasInterrupted":false} +{"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":9,"numPassedTests":296,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":2,"numTotalTestSuites":9,"numTotalTests":298,"openHandles":[],"snapshot":{"added":0,"didUpdate":false,"failure":false,"filesAdded":0,"filesRemoved":0,"filesRemovedList":[],"filesUnmatched":0,"filesUpdated":0,"matched":2,"total":2,"unchecked":0,"uncheckedKeysByFile":[],"unmatched":0,"updated":0},"startTime":1768910826277,"success":true,"testResults":[{"assertionResults":[{"ancestorTitles":["convertDiskSizeFromTo()"],"duration":5,"failureDetails":[],"failureMessages":[],"fullName":"convertDiskSizeFromTo() should convert bytes to KB","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should convert bytes to KB"},{"ancestorTitles":["convertDiskSizeFromTo()"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"convertDiskSizeFromTo() should convert bytes to MB","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should convert bytes to MB"},{"ancestorTitles":["convertDiskSizeFromTo()"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"convertDiskSizeFromTo() should convert KB to MB","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should convert KB to MB"},{"ancestorTitles":["convertDiskSizeFromTo()"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"convertDiskSizeFromTo() should convert KB to Bytes","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should convert KB to Bytes"},{"ancestorTitles":["convertDiskSizeFromTo()"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"convertDiskSizeFromTo() should convert MB to KB","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should convert MB to KB"},{"ancestorTitles":["convertDiskSizeFromTo()"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"convertDiskSizeFromTo() should convert MB to KB","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should convert MB to KB"}],"endTime":1768910827524,"message":"","name":"/Users/daniel.cardoso/Repos/json-schema-form/v0/src/tests/utils.test.js","startTime":1768910826796,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["modify() - warnings"],"duration":9,"failureDetails":[],"failureMessages":[],"fullName":"modify() - warnings logs a warning by default","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"logs a warning by default"},{"ancestorTitles":["modify() - warnings"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"modify() - warnings given muteLogging, it does not log the warning","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"given muteLogging, it does not log the warning"},{"ancestorTitles":["modify() - basic mutations"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"modify() - basic mutations replace base field","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"replace base field"},{"ancestorTitles":["modify() - basic mutations"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"modify() - basic mutations replace nested field","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"replace nested field"},{"ancestorTitles":["modify() - basic mutations"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"modify() - basic mutations replace fields that dont exist gets ignored","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"replace fields that dont exist gets ignored"},{"ancestorTitles":["modify() - basic mutations"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"modify() - basic mutations replace all fields","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"replace all fields"},{"ancestorTitles":["modify() - basic mutations"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"modify() - basic mutations replace field attrs that are arrays (partial)","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"replace field attrs that are arrays (partial)"},{"ancestorTitles":["modify() - basic mutations"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"modify() - basic mutations replace field attrs that are arrays (full)","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"replace field attrs that are arrays (full)"},{"ancestorTitles":["supporting shorthands"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"supporting shorthands basic support for x-jsf-presentation and x-jsf-errorMessage in config.fields","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"basic support for x-jsf-presentation and x-jsf-errorMessage in config.fields"},{"ancestorTitles":["supporting shorthands"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"supporting shorthands shorthands work in config.allFields","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"shorthands work in config.allFields"},{"ancestorTitles":["supporting shorthands"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"supporting shorthands shorthands work in config.create","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"shorthands work in config.create"},{"ancestorTitles":["modify() - reorder fields"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"modify() - reorder fields reorder fields - basic usage","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"reorder fields - basic usage"},{"ancestorTitles":["modify() - reorder fields"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"modify() - reorder fields reorder fields - basic usage fallback","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"reorder fields - basic usage fallback"},{"ancestorTitles":["modify() - reorder fields"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"modify() - reorder fields reorder fields - as callback based on original order","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"reorder fields - as callback based on original order"},{"ancestorTitles":["modify() - reorder fields"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"modify() - reorder fields reorder fields in fieldsets (through config.fields)","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"reorder fields in fieldsets (through config.fields)"},{"ancestorTitles":["modify() - create fields"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"modify() - create fields create base field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"create base field"},{"ancestorTitles":["modify() - create fields"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"modify() - create fields create nested field","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"create nested field"},{"ancestorTitles":["modify() - pick fields"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"modify() - pick fields basic usage","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"basic usage"},{"ancestorTitles":["modify() - pick fields"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"modify() - pick fields basic usage without conditionals","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"basic usage without conditionals"},{"ancestorTitles":["modify() - pick fields"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"modify() - pick fields related conditionals are kept - (else)","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"related conditionals are kept - (else)"},{"ancestorTitles":["modify() - pick fields"],"duration":5,"failureDetails":[],"failureMessages":[],"fullName":"modify() - pick fields related conditionals are kept - (if)","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"related conditionals are kept - (if)"},{"ancestorTitles":["modify() - pick fields"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"modify() - pick fields reorder only handles the picked fields","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"reorder only handles the picked fields"},{"ancestorTitles":["modify() - pick fields"],"duration":null,"failureDetails":[],"failureMessages":[],"fullName":"modify() - pick fields ignore conditionals with unpicked fields","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"todo","title":"ignore conditionals with unpicked fields"},{"ancestorTitles":["modify() - pick fields"],"duration":null,"failureDetails":[],"failureMessages":[],"fullName":"modify() - pick fields pick nested fields (fieldsets)","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"todo","title":"pick nested fields (fieldsets)"}],"endTime":1768910827572,"message":"","name":"/Users/daniel.cardoso/Repos/json-schema-form/v0/src/tests/modify.test.js","startTime":1768910826782,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["getFieldDescription()"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"getFieldDescription() returns no description","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"returns no description"},{"ancestorTitles":["getFieldDescription()"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"getFieldDescription() returns the description from the node","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"returns the description from the node"},{"ancestorTitles":["getFieldDescription()","with customProperties"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"getFieldDescription() with customProperties given no match, returns no description","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"given no match, returns no description"},{"ancestorTitles":["getFieldDescription()","with customProperties"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"getFieldDescription() with customProperties returns the description from customProperties","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"returns the description from customProperties"},{"ancestorTitles":["getFieldDescription()","with x-jsf-presentation attribute"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"getFieldDescription() with x-jsf-presentation attribute returns x-jsf-presentation given no base description","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"returns x-jsf-presentation given no base description"},{"ancestorTitles":["getFieldDescription()","with x-jsf-presentation attribute"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"getFieldDescription() with x-jsf-presentation attribute returns presentation overriding the base description","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"returns presentation overriding the base description"},{"ancestorTitles":["getFieldDescription()","with x-jsf-presentation attribute"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"getFieldDescription() with x-jsf-presentation attribute returns the custom description, overriding the base and presentation description","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"returns the custom description, overriding the base and presentation description"},{"ancestorTitles":["yupToFormErrors()"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"yupToFormErrors() returns an object given an YupError","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"returns an object given an YupError"},{"ancestorTitles":["yupToFormErrors()"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"yupToFormErrors() returns nill given nill","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"returns nill given nill"},{"ancestorTitles":["pickXKey()"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"pickXKey() returns the x-jsx attribute","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"returns the x-jsx attribute"},{"ancestorTitles":["pickXKey()"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"pickXKey() returns the deprecated attribute","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"returns the deprecated attribute"},{"ancestorTitles":["pickXKey()"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"pickXKey() return undefined given a key that is not being deprecated","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"return undefined given a key that is not being deprecated"},{"ancestorTitles":["pickXKey()"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"pickXKey() returns undefined if the key is not found within an object","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"returns undefined if the key is not found within an object"}],"endTime":1768910827632,"message":"","name":"/Users/daniel.cardoso/Repos/json-schema-form/v0/src/tests/internals.helpers.test.js","startTime":1768910826766,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["validations: const"],"duration":9,"failureDetails":[],"failureMessages":[],"fullName":"validations: const Should work for number","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"Should work for number"},{"ancestorTitles":["validations: const"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"validations: const Should work for when the number is 0","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"Should work for when the number is 0"},{"ancestorTitles":["validations: const"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"validations: const Should work for text","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"Should work for text"},{"ancestorTitles":["validations: const"],"duration":8,"failureDetails":[],"failureMessages":[],"fullName":"validations: const Should work for a conditionally applied const","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"Should work for a conditionally applied const"},{"ancestorTitles":["validations: const"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"validations: const Should show the custom error message","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"Should show the custom error message"},{"ancestorTitles":["validations: const"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"validations: const Should have value attribute for when const & default is present","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"Should have value attribute for when const & default is present"},{"ancestorTitles":["const/default with forced values"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"const/default with forced values Should work for when the number is 0","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"Should work for when the number is 0"},{"ancestorTitles":["const/default with forced values"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"const/default with forced values Should work for number","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"Should work for number"},{"ancestorTitles":["const/default with forced values"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"const/default with forced values do not set a forced value if const and default do not equal","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"do not set a forced value if const and default do not equal"},{"ancestorTitles":["const/default with forced values"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"const/default with forced values Should work numbers with non-standard input types","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"Should work numbers with non-standard input types"},{"ancestorTitles":["OneOf const"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"OneOf const Validates numbers or strings correctly","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"Validates numbers or strings correctly"},{"ancestorTitles":["OneOf const"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"OneOf const Validates numbers or strings when type is an array with null","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"Validates numbers or strings when type is an array with null"}],"endTime":1768910827651,"message":"","name":"/Users/daniel.cardoso/Repos/json-schema-form/v0/src/tests/const.test.js","startTime":1768910826779,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Conditional attributes updated"],"duration":12,"failureDetails":[],"failureMessages":[],"fullName":"Conditional attributes updated Should allow check of a nested property in a conditional","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"Should allow check of a nested property in a conditional"},{"ancestorTitles":["Conditional attributes updated"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"Conditional attributes updated Update basic case with const, default, maximum","invocations":1,"location":null,"numPassingAsserts":11,"retryReasons":[],"status":"passed","title":"Update basic case with const, default, maximum"},{"ancestorTitles":["Conditional attributes updated"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"Conditional attributes updated Update a new attribute (eg description)","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"Update a new attribute (eg description)"},{"ancestorTitles":["Conditional attributes updated"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"Conditional attributes updated Update an existing attribute (eg description)","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"Update an existing attribute (eg description)"},{"ancestorTitles":["Conditional attributes updated"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"Conditional attributes updated Update a nested attribute","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"Update a nested attribute"},{"ancestorTitles":["Conditional attributes updated"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"Conditional attributes updated Keeps existing attributes in matches that dont change the attr","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"passed","title":"Keeps existing attributes in matches that dont change the attr"},{"ancestorTitles":["Conditional attributes updated"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"Conditional attributes updated Keeps internal attributes (dynamicInternalJsfAttrs)","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"Keeps internal attributes (dynamicInternalJsfAttrs)"},{"ancestorTitles":["Conditional attributes updated"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"Conditional attributes updated Keeps custom attributes (dynamicInternalJsfAttrs) (hotfix temporary)","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"passed","title":"Keeps custom attributes (dynamicInternalJsfAttrs) (hotfix temporary)"},{"ancestorTitles":["Conditional with a minimum value check"],"duration":10,"failureDetails":[],"failureMessages":[],"fullName":"Conditional with a minimum value check Should handle a maximum as a property field check","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"Should handle a maximum as a property field check"},{"ancestorTitles":["Conditional with literal booleans"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"Conditional with literal booleans handles true case","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"handles true case"},{"ancestorTitles":["Conditional with literal booleans"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"Conditional with literal booleans handles false case","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"handles false case"},{"ancestorTitles":["Conditional with anyOf"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"Conditional with anyOf handles true case","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"handles true case"},{"ancestorTitles":["Conditional with anyOf"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"Conditional with anyOf handles false case","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"handles false case"},{"ancestorTitles":["Conditionals - bugs and code-smells"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"Conditionals - bugs and code-smells Given values from hidden fields, it does not thrown an error (@bug)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"Given values from hidden fields, it does not thrown an error (@bug)"},{"ancestorTitles":["Conditionals - bugs and code-smells"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"Conditionals - bugs and code-smells Given values from hidden fields, it mutates the values (@bug)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"Given values from hidden fields, it mutates the values (@bug)"},{"ancestorTitles":["Conditionals - bugs and code-smells"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"Conditionals - bugs and code-smells Given multiple conditionals to the same field, it only applies the last one (@bug) - case 1","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"Given multiple conditionals to the same field, it only applies the last one (@bug) - case 1"},{"ancestorTitles":["Conditionals - bugs and code-smells"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"Conditionals - bugs and code-smells Given multiple conditionals to the same field, it only applies the last one (@bug) - case 2","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"Given multiple conditionals to the same field, it only applies the last one (@bug) - case 2"}],"endTime":1768910827670,"message":"","name":"/Users/daniel.cardoso/Repos/json-schema-form/v0/src/tests/conditions.test.js","startTime":1768910826756,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["checkIfConditionMatchesProperties()"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"checkIfConditionMatchesProperties() True if is always going to be true","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"True if is always going to be true"},{"ancestorTitles":["checkIfConditionMatchesProperties()"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"checkIfConditionMatchesProperties() False if is always going to be false","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"False if is always going to be false"},{"ancestorTitles":["checkIfConditionMatchesProperties()"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"checkIfConditionMatchesProperties() Empty if is always going to be true","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"Empty if is always going to be true"},{"ancestorTitles":["checkIfConditionMatchesProperties()"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"checkIfConditionMatchesProperties() Basic if check passes with correct value","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"Basic if check passes with correct value"},{"ancestorTitles":["checkIfConditionMatchesProperties()"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"checkIfConditionMatchesProperties() Basic if check fails with incorrect value","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"Basic if check fails with incorrect value"},{"ancestorTitles":["checkIfConditionMatchesProperties()"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"checkIfConditionMatchesProperties() Nested properties check passes with correct value","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"Nested properties check passes with correct value"},{"ancestorTitles":["checkIfConditionMatchesProperties()"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"checkIfConditionMatchesProperties() Nested properties check passes with correct value","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"Nested properties check passes with correct value"}],"endTime":1768910827666,"message":"","name":"/Users/daniel.cardoso/Repos/json-schema-form/v0/src/tests/checkIfConditionMatches.test.js","startTime":1768910826788,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["jsonLogic: cross-values validations","Does not conflict with native JSON schema"],"duration":10,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Does not conflict with native JSON schema Given an optional field and empty value, jsonLogic validations are ignored","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"Given an optional field and empty value, jsonLogic validations are ignored"},{"ancestorTitles":["jsonLogic: cross-values validations","Does not conflict with native JSON schema"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Does not conflict with native JSON schema Native validations have higher precedence than jsonLogic validations","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"Native validations have higher precedence than jsonLogic validations"},{"ancestorTitles":["jsonLogic: cross-values validations","Relative: <, >, ="],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Relative: <, >, = bigger: field_a > field_b","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"bigger: field_a > field_b"},{"ancestorTitles":["jsonLogic: cross-values validations","Relative: <, >, ="],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Relative: <, >, = smaller: field_a < field_b","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"smaller: field_a < field_b"},{"ancestorTitles":["jsonLogic: cross-values validations","Relative: <, >, ="],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Relative: <, >, = equal: field_a = field_b","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"equal: field_a = field_b"},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic.validations: throw when theres a missing rule\"","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"\"x-jsf-logic.validations: throw when theres a missing rule\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic.validations: throw when theres a value that does not exist in a rule\"","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"\"x-jsf-logic.validations: throw when theres a value that does not exist in a rule\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic.computedValues: throw when theres a value that does not exist in a rule\"","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"\"x-jsf-logic.computedValues: throw when theres a value that does not exist in a rule\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic.computedValues: throw when theres a missing computed value\"","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"\"x-jsf-logic.computedValues: throw when theres a missing computed value\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic-computedAttrs: error if theres a value that does not exist on an attribute.\"","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"\"x-jsf-logic-computedAttrs: error if theres a value that does not exist on an attribute.\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic-computedAttrs: error if theres a value that does not exist on a template string (title).\"","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"\"x-jsf-logic-computedAttrs: error if theres a value that does not exist on a template string (title).\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic-computedAttrs: error if theres a value that does not exist on a template string (description).\"","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"\"x-jsf-logic-computedAttrs: error if theres a value that does not exist on a template string (description).\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic-computedAttrs:, error if theres a value referenced that does not exist on an inline rule.\"","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"\"x-jsf-logic-computedAttrs:, error if theres a value referenced that does not exist on an inline rule.\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic.validations: error if a field does not exist in a deeply nested rule\"","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"\"x-jsf-logic.validations: error if a field does not exist in a deeply nested rule\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic.validations: error if rule does not exist on a fieldset property\"","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"\"x-jsf-logic.validations: error if rule does not exist on a fieldset property\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-validations: error if a validation name does not exist\"","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"\"x-jsf-validations: error if a validation name does not exist\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic.validations: A top level logic keyword will not be able to reference fieldset properties\"","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"\"x-jsf-logic.validations: A top level logic keyword will not be able to reference fieldset properties\""},{"ancestorTitles":["jsonLogic: cross-values validations","Incorrectly written schemas"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Incorrectly written schemas \"x-jsf-logic.validations: error if unknown operation\"","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"\"x-jsf-logic.validations: error if unknown operation\""},{"ancestorTitles":["jsonLogic: cross-values validations","Arithmetic: +, -, *, /"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Arithmetic: +, -, *, / multiple: field_a > field_b * 2","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"multiple: field_a > field_b * 2"},{"ancestorTitles":["jsonLogic: cross-values validations","Arithmetic: +, -, *, /"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Arithmetic: +, -, *, / divide: field_a > field_b / 2","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"divide: field_a > field_b / 2"},{"ancestorTitles":["jsonLogic: cross-values validations","Arithmetic: +, -, *, /"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Arithmetic: +, -, *, / sum: field_a > field_b + field_c","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"sum: field_a > field_b + field_c"},{"ancestorTitles":["jsonLogic: cross-values validations","Reduce"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Reduce reduce: working_hours_per_day * work_days","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"reduce: working_hours_per_day * work_days"},{"ancestorTitles":["jsonLogic: cross-values validations","Reduce"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Reduce reduce: handles when operator is non numerical","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"reduce: handles when operator is non numerical"},{"ancestorTitles":["jsonLogic: cross-values validations","Logical: ||, &&"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Logical: ||, && AND: field_a > field_b && field_a > field_c (implicit with multiple rules in a single field)","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"AND: field_a > field_b && field_a > field_c (implicit with multiple rules in a single field)"},{"ancestorTitles":["jsonLogic: cross-values validations","Logical: ||, &&"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Logical: ||, && OR: field_a > field_b or field_a > field_c","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"OR: field_a > field_b or field_a > field_c"},{"ancestorTitles":["jsonLogic: cross-values validations","Multiple validations"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Multiple validations two rules: A > B; A is even","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"two rules: A > B; A is even"},{"ancestorTitles":["jsonLogic: cross-values validations","Multiple validations"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Multiple validations 2 seperate fields with rules failing","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"2 seperate fields with rules failing"},{"ancestorTitles":["jsonLogic: cross-values validations","Derive values"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Derive values field_b is field_a * 2","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"field_b is field_a * 2"},{"ancestorTitles":["jsonLogic: cross-values validations","Derive values"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Derive values A forced value will not be set when const and default are not equal","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"A forced value will not be set when const and default are not equal"},{"ancestorTitles":["jsonLogic: cross-values validations","Derive values"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Derive values Derived errorMessages and statements work","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"Derived errorMessages and statements work"},{"ancestorTitles":["jsonLogic: cross-values validations","Derive values"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Derive values presentation attributes work","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"presentation attributes work"},{"ancestorTitles":["jsonLogic: cross-values validations","Derive values"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Derive values Use a inline-rule in a schema for a title attribute","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"Use a inline-rule in a schema for a title attribute"},{"ancestorTitles":["jsonLogic: cross-values validations","Derive values"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Derive values Use multiple inline rules with different identifiers","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"Use multiple inline rules with different identifiers"},{"ancestorTitles":["jsonLogic: cross-values validations","Derive values"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Derive values Use an inline rule in a schema for a title but it just uses the value","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"Use an inline rule in a schema for a title but it just uses the value"},{"ancestorTitles":["jsonLogic: cross-values validations","Derive values"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Derive values Use an inline rule for a minimum, maximum value","invocations":1,"location":null,"numPassingAsserts":11,"retryReasons":[],"status":"passed","title":"Use an inline rule for a minimum, maximum value"},{"ancestorTitles":["jsonLogic: cross-values validations","Derive values"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Derive values Mix use of multiple inline rules and an external rule","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"Mix use of multiple inline rules and an external rule"},{"ancestorTitles":["jsonLogic: cross-values validations","Conditionals"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Conditionals when field_a > field_b, show field_c","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"status":"passed","title":"when field_a > field_b, show field_c"},{"ancestorTitles":["jsonLogic: cross-values validations","Conditionals"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Conditionals A schema with both a `x-jsf-validations` and `properties` check","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"A schema with both a `x-jsf-validations` and `properties` check"},{"ancestorTitles":["jsonLogic: cross-values validations","Conditionals"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Conditionals Conditionally apply a validation on a property depending on values","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"status":"passed","title":"Conditionally apply a validation on a property depending on values"},{"ancestorTitles":["jsonLogic: cross-values validations","Conditionals"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Conditionals Should apply a conditional based on a true computedValue","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"Should apply a conditional based on a true computedValue"},{"ancestorTitles":["jsonLogic: cross-values validations","Conditionals"],"duration":15,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Conditionals Handle multiple computedValue checks by ANDing them together","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"Handle multiple computedValue checks by ANDing them together"},{"ancestorTitles":["jsonLogic: cross-values validations","Conditionals"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Conditionals Handle having a true condition with both validations and computedValue checks","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"Handle having a true condition with both validations and computedValue checks"},{"ancestorTitles":["jsonLogic: cross-values validations","Conditionals"],"duration":7,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Conditionals Apply validations and computed values on normal if statement.","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"Apply validations and computed values on normal if statement."},{"ancestorTitles":["jsonLogic: cross-values validations","Conditionals"],"duration":10,"failureDetails":[],"failureMessages":[],"fullName":"jsonLogic: cross-values validations Conditionals When we have a required validation on a top level property and another validation is added, both should be accounted for.","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"When we have a required validation on a top level property and another validation is added, both should be accounted for."}],"endTime":1768910827725,"message":"","name":"/Users/daniel.cardoso/Repos/json-schema-form/v0/src/tests/jsonLogic.test.js","startTime":1768910826774,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","simple validation (eg maximum)"],"duration":12,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm() - custom validations (deprecated) simple validation (eg maximum) works as a number","invocations":1,"location":null,"numPassingAsserts":11,"retryReasons":[],"status":"passed","title":"works as a number"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","simple validation (eg maximum)"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm() - custom validations (deprecated) simple validation (eg maximum) works as a function","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"status":"passed","title":"works as a function"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","simple validation (eg maximum)"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm() - custom validations (deprecated) simple validation (eg maximum) works with minimum and maximum together","invocations":1,"location":null,"numPassingAsserts":12,"retryReasons":[],"status":"passed","title":"works with minimum and maximum together"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","simple validation (eg maximum)"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm() - custom validations (deprecated) simple validation (eg maximum) works with negative values","invocations":1,"location":null,"numPassingAsserts":12,"retryReasons":[],"status":"passed","title":"works with negative values"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","simple validation (eg maximum)"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm() - custom validations (deprecated) simple validation (eg maximum) keeps original validation, given an empty validation","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"status":"passed","title":"keeps original validation, given an empty validation"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","simple validation (eg maximum)"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm() - custom validations (deprecated) simple validation (eg maximum) applies validation, when original does not exist","invocations":1,"location":null,"numPassingAsserts":11,"retryReasons":[],"status":"passed","title":"applies validation, when original does not exist"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","in fieldsets"],"duration":5,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm() - custom validations (deprecated) in fieldsets applies custom validation in nested fields","invocations":1,"location":null,"numPassingAsserts":24,"retryReasons":[],"status":"passed","title":"applies custom validation in nested fields"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","in conditional fields"],"duration":6,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm() - custom validations (deprecated) in conditional fields validates conditional visible field","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"status":"passed","title":"validates conditional visible field"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","in conditional fields"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm() - custom validations (deprecated) in conditional fields ignores validation to conditional hidden field","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"ignores validation to conditional hidden field"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","in conditional fields"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm() - custom validations (deprecated) in conditional fields given an out-of-range validation, logs warning","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"given an out-of-range validation, logs warning"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","with errorMessage (deprecated)"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm() - custom validations (deprecated) with errorMessage (deprecated) overrides original error conditionally","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"status":"passed","title":"overrides original error conditionally"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","with errorMessage (deprecated)"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm() - custom validations (deprecated) with errorMessage (deprecated) overrides errorMessage conditionally","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"status":"passed","title":"overrides errorMessage conditionally"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","with x-jsf-errorMessage"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm() - custom validations (deprecated) with x-jsf-errorMessage overrides original error conditionally","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"status":"passed","title":"overrides original error conditionally"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","with x-jsf-errorMessage"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm() - custom validations (deprecated) with x-jsf-errorMessage overrides errorMessage conditionally","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"status":"passed","title":"overrides errorMessage conditionally"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","invalid validations"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm() - custom validations (deprecated) invalid validations outside the schema range logs warning","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"status":"passed","title":"outside the schema range logs warning"},{"ancestorTitles":["createHeadlessForm() - custom validations (deprecated)","invalid validations"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm() - custom validations (deprecated) invalid validations null or undefined ignores validation","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"status":"passed","title":"null or undefined ignores validation"}],"endTime":1768910827780,"message":"","name":"/Users/daniel.cardoso/Repos/json-schema-form/v0/src/tests/createHeadlessForm.customValidations.test.js","startTime":1768910826830,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["createHeadlessForm"],"duration":7,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm returns empty result given no schema","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"returns empty result given no schema"},{"ancestorTitles":["createHeadlessForm"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm returns an error given invalid schema","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"returns an error given invalid schema"},{"ancestorTitles":["createHeadlessForm","field support fallback"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support fallback sets type from presentation.inputType","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"sets type from presentation.inputType"},{"ancestorTitles":["createHeadlessForm","field support fallback"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support fallback fails given a json schema without inputType","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"fails given a json schema without inputType"},{"ancestorTitles":["createHeadlessForm","field support fallback"],"duration":8,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support fallback given a json schema without inputType, sets type based on json type (when strictInputType:false)","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"given a json schema without inputType, sets type based on json type (when strictInputType:false)"},{"ancestorTitles":["createHeadlessForm","field support fallback"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support fallback given a json schema without json type, sets type based on structure (when strictInputType:false)","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"given a json schema without json type, sets type based on structure (when strictInputType:false)"},{"ancestorTitles":["createHeadlessForm","field support"],"duration":105,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"text\" field type","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"status":"passed","title":"support \"text\" field type"},{"ancestorTitles":["createHeadlessForm","field support","support \"select\" field type"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"select\" field type support \"select\" field type @deprecated","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"status":"passed","title":"support \"select\" field type @deprecated"},{"ancestorTitles":["createHeadlessForm","field support","support \"select\" field type"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"select\" field type support \"select\" field type","invocations":1,"location":null,"numPassingAsserts":11,"retryReasons":[],"status":"passed","title":"support \"select\" field type"},{"ancestorTitles":["createHeadlessForm","field support","support \"select\" field type"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"select\" field type support \"select\" field type from anyOf","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"support \"select\" field type from anyOf"},{"ancestorTitles":["createHeadlessForm","field support","support \"select\" field type"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"select\" field type supports \"select\" field type with multiple options @deprecated","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"supports \"select\" field type with multiple options @deprecated"},{"ancestorTitles":["createHeadlessForm","field support","support \"select\" field type"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"select\" field type supports \"select\" field type with multiple options","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"supports \"select\" field type with multiple options"},{"ancestorTitles":["createHeadlessForm","field support","support \"select\" field type"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"select\" field type supports \"select\" field type with multiple options and optional","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"supports \"select\" field type with multiple options and optional"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"radio\" field type support \"radio\" field type @deprecated","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"status":"passed","title":"support \"radio\" field type @deprecated"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"radio\" field type support \"radio\" field string type","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"status":"passed","title":"support \"radio\" field string type"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"radio\" field type support \"radio\" field boolean type","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"passed","title":"support \"radio\" field boolean type"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"radio\" field type supports \"radio\" field type with its \"card\" and \"card-expandable\" variants","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"supports \"radio\" field type with its \"card\" and \"card-expandable\" variants"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"radio\" field type support \"radio\" field string-y type","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"status":"passed","title":"support \"radio\" field string-y type"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"radio\" field type support \"radio\" field number type","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"status":"passed","title":"support \"radio\" field number type"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"radio\" field type support \"radio\" optional field","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"support \"radio\" optional field"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"radio\" field type support \"radio\" optional field - optional (conventional way) - @BUG RMT-518","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"passed","title":"support \"radio\" optional field - optional (conventional way) - @BUG RMT-518"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"radio\" field type support \"radio\" optional field - optional with null option (as Remote does) - @BUG RMT-518","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"passed","title":"support \"radio\" optional field - optional with null option (as Remote does) - @BUG RMT-518"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"radio\" field type support \"radio\" field type with extra info inside each option","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"support \"radio\" field type with extra info inside each option"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"radio\" field type supports oneOf pattern validation","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"supports oneOf pattern validation"},{"ancestorTitles":["createHeadlessForm","field support","support \"radio\" field type"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"radio\" field type support \"radio\" field type without oneOf options","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"support \"radio\" field type without oneOf options"},{"ancestorTitles":["createHeadlessForm","field support"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"integer\" field type","invocations":1,"location":null,"numPassingAsserts":12,"retryReasons":[],"status":"passed","title":"support \"integer\" field type"},{"ancestorTitles":["createHeadlessForm","field support"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"number\" field type","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"status":"passed","title":"support \"number\" field type"},{"ancestorTitles":["createHeadlessForm","field support"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"number\" field type with the percentage attribute","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"status":"passed","title":"support \"number\" field type with the percentage attribute"},{"ancestorTitles":["createHeadlessForm","field support"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"number\" field type with the percentage attribute and custom range values","invocations":1,"location":null,"numPassingAsserts":12,"retryReasons":[],"status":"passed","title":"support \"number\" field type with the percentage attribute and custom range values"},{"ancestorTitles":["createHeadlessForm","field support"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"date\" field type","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"support \"date\" field type"},{"ancestorTitles":["createHeadlessForm","field support","support \"date\" field type"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"date\" field type support \"date\" field type with a minDate","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"passed","title":"support \"date\" field type with a minDate"},{"ancestorTitles":["createHeadlessForm","field support","support \"date\" field type"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"date\" field type support \"date\" field type with a maxDate","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"support \"date\" field type with a maxDate"},{"ancestorTitles":["createHeadlessForm","field support","support \"date\" field type"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"date\" field type support format date with minDate and maxDate","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"support format date with minDate and maxDate"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"file\" field type supports \"file\" field type","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"supports \"file\" field type"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field has accepted extensions","and file is of incorrect format"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"file\" field type when a field has accepted extensions and file is of incorrect format should throw an error","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should throw an error"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field has accepted extensions","and file is of correct format"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"file\" field type when a field has accepted extensions and file is of correct format should validate field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate field"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field has accepted extensions","and file is of correct but uppercase format "],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"file\" field type when a field has accepted extensions and file is of correct but uppercase format should validate field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate field"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field has accepted extensions","and file is not instance of a File"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"file\" field type when a field has accepted extensions and file is not instance of a File accepts if file object has name property","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"accepts if file object has name property"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field has accepted extensions","and file is not instance of a File"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"file\" field type when a field has accepted extensions and file is not instance of a File should validate format","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate format"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field has accepted extensions","and file is not instance of a File"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"file\" field type when a field has accepted extensions and file is not instance of a File should validate max size","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate max size"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field has accepted extensions","and file is not instance of a File"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"file\" field type when a field has accepted extensions and file is not instance of a File throw an error if invalid file object","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"throw an error if invalid file object"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field has max file size","and file is greater than that"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"file\" field type when a field has max file size and file is greater than that should throw an error","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should throw an error"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field has max file size","and file is smaller than that"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"file\" field type when a field has max file size and file is smaller than that should validate field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate field"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field file is optional"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"file\" field type when a field file is optional it accepts an empty array","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"it accepts an empty array"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field file is optional"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"file\" field type when a field file is optional it validates missing file correctly","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"it validates missing file correctly"},{"ancestorTitles":["createHeadlessForm","field support","supports \"file\" field type","when a field file is required"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"file\" field type when a field file is required it validates missing file correctly","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"it validates missing file correctly"},{"ancestorTitles":["createHeadlessForm","field support","supports \"group-array\" field type"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"group-array\" field type basic test","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"basic test"},{"ancestorTitles":["createHeadlessForm","field support","supports \"group-array\" field type"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"group-array\" field type nested fields (native, core and custom) has correct validations","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"nested fields (native, core and custom) has correct validations"},{"ancestorTitles":["createHeadlessForm","field support","supports \"group-array\" field type"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"group-array\" field type can pass custom field attributes","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"can pass custom field attributes"},{"ancestorTitles":["createHeadlessForm","field support","supports \"group-array\" field type"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"group-array\" field type can be a conditional field","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"can be a conditional field"},{"ancestorTitles":["createHeadlessForm","field support"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"null\" field type","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"passed","title":"supports \"null\" field type"},{"ancestorTitles":["createHeadlessForm","field support","supports \"fieldset\" field type"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"fieldset\" field type supports basic case","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"supports basic case"},{"ancestorTitles":["createHeadlessForm","field support","supports \"fieldset\" field type"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"fieldset\" field type supports nested fieldset (fieldset inside fieldset)","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"supports nested fieldset (fieldset inside fieldset)"},{"ancestorTitles":["createHeadlessForm","field support","supports \"fieldset\" field type"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"fieldset\" field type supported \"fieldset\" with scoped conditionals","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"supported \"fieldset\" with scoped conditionals"},{"ancestorTitles":["createHeadlessForm","field support","supports \"fieldset\" field type"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"fieldset\" field type should set any nested \"fieldset\" form values to null when they are invisible","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"should set any nested \"fieldset\" form values to null when they are invisible"},{"ancestorTitles":["createHeadlessForm","field support","supports \"fieldset\" field type","supports conditionals to fieldsets"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"fieldset\" field type supports conditionals to fieldsets by default, the Perks.food has 4 options","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"by default, the Perks.food has 4 options"},{"ancestorTitles":["createHeadlessForm","field support","supports \"fieldset\" field type","supports conditionals to fieldsets"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"fieldset\" field type supports conditionals to fieldsets Given a lot work hours, the perks.food options change","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"passed","title":"Given a lot work hours, the perks.food options change"},{"ancestorTitles":["createHeadlessForm","field support","supports \"fieldset\" field type","supports conditionals to fieldsets"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"fieldset\" field type supports conditionals to fieldsets When changing back to low work hours, the perks.food goes back to the original state","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"When changing back to low work hours, the perks.food goes back to the original state"},{"ancestorTitles":["createHeadlessForm","field support","supports \"fieldset\" field type","supports conditionals over nested fieldsets"],"duration":6,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"fieldset\" field type supports conditionals over nested fieldsets retirement_plan fieldset is hidden when no values are provided","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"retirement_plan fieldset is hidden when no values are provided"},{"ancestorTitles":["createHeadlessForm","field support","supports \"fieldset\" field type","supports conditionals over nested fieldsets"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"fieldset\" field type supports conditionals over nested fieldsets submits without retirement_plan when user selects 'no' for has_retirement_plan","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"submits without retirement_plan when user selects 'no' for has_retirement_plan"},{"ancestorTitles":["createHeadlessForm","field support","supports \"fieldset\" field type","supports conditionals over nested fieldsets"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"fieldset\" field type supports conditionals over nested fieldsets retirement_plan fieldset is visible when user selects 'yes' for has_retirement_plan","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"retirement_plan fieldset is visible when user selects 'yes' for has_retirement_plan"},{"ancestorTitles":["createHeadlessForm","field support","supports \"fieldset\" field type","supports conditionals over nested fieldsets"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"fieldset\" field type supports conditionals over nested fieldsets retirement_plan's amount field is hidden when user selects 'no' for declare_amount","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"retirement_plan's amount field is hidden when user selects 'no' for declare_amount"},{"ancestorTitles":["createHeadlessForm","field support","supports \"fieldset\" field type","supports conditionals over nested fieldsets"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"fieldset\" field type supports conditionals over nested fieldsets submits with valid retirement_plan","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"submits with valid retirement_plan"},{"ancestorTitles":["createHeadlessForm","field support","supports \"fieldset\" field type","supports computed values based on values from nested fieldsets"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"fieldset\" field type supports computed values based on values from nested fieldsets computed value for total_contributions is calculated correctly with defaults when user selects 'yes' for has_retirement_plan","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"computed value for total_contributions is calculated correctly with defaults when user selects 'yes' for has_retirement_plan"},{"ancestorTitles":["createHeadlessForm","field support","supports \"fieldset\" field type","supports computed values based on values from nested fieldsets"],"duration":5,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"fieldset\" field type supports computed values based on values from nested fieldsets computed value for total_contributions is calculated correctly based on the selected months","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"status":"passed","title":"computed value for total_contributions is calculated correctly based on the selected months"},{"ancestorTitles":["createHeadlessForm","field support"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support support \"email\" field type","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"support \"email\" field type"},{"ancestorTitles":["createHeadlessForm","field support","supports \"checkbox\" field type","checkbox as string"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"checkbox\" field type checkbox as string required: only accept the value in \"checkboxValue\"","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"required: only accept the value in \"checkboxValue\""},{"ancestorTitles":["createHeadlessForm","field support","supports \"checkbox\" field type","checkbox as string"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"checkbox\" field type checkbox as string required checked: returns a default value","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"required checked: returns a default value"},{"ancestorTitles":["createHeadlessForm","field support","supports \"checkbox\" field type","checkbox as boolean"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"checkbox\" field type checkbox as boolean optional: Accepts true or false","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"passed","title":"optional: Accepts true or false"},{"ancestorTitles":["createHeadlessForm","field support","supports \"checkbox\" field type","checkbox as boolean"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"checkbox\" field type checkbox as boolean required: Only accepts true","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"required: Only accepts true"},{"ancestorTitles":["createHeadlessForm","field support","supports \"checkbox\" field type","checkbox as boolean"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"checkbox\" field type checkbox as boolean checked: returns default: true","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"checked: returns default: true"},{"ancestorTitles":["createHeadlessForm","field support","supports \"checkbox\" field type","checkbox as boolean"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"checkbox\" field type checkbox as boolean conditional: it works as undefined value","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"passed","title":"conditional: it works as undefined value"},{"ancestorTitles":["createHeadlessForm","field support","supports \"checkbox\" field type","checkbox as boolean"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports \"checkbox\" field type checkbox as boolean should set checkboxValue: true for optional boolean type","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should set checkboxValue: true for optional boolean type"},{"ancestorTitles":["createHeadlessForm","field support","supports custom inputType (eg \"hour\")"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm field support supports custom inputType (eg \"hour\") as required, optional, and mixed types","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"as required, optional, and mixed types"},{"ancestorTitles":["createHeadlessForm","validation options"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm validation options given invalid values it returns both yupError and formErrors","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"given invalid values it returns both yupError and formErrors"},{"ancestorTitles":["createHeadlessForm"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm supports oneOf number const","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"supports oneOf number const"},{"ancestorTitles":["createHeadlessForm","property misc attributes"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm property misc attributes pass readOnly to field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"pass readOnly to field"},{"ancestorTitles":["createHeadlessForm","property misc attributes"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm property misc attributes pass \"deprecated\" attributes to field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"pass \"deprecated\" attributes to field"},{"ancestorTitles":["createHeadlessForm","property misc attributes"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm property misc attributes pass both root level \"description\" and \"x-jsf-presentation.description\"","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"pass both root level \"description\" and \"x-jsf-presentation.description\""},{"ancestorTitles":["createHeadlessForm","property misc attributes"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm property misc attributes pass both root level \"description\" and \"presentation.description\" (deprecated)","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"pass both root level \"description\" and \"presentation.description\" (deprecated)"},{"ancestorTitles":["createHeadlessForm","property misc attributes"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm property misc attributes support field with \"x-jsf-presentation.statement\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"support field with \"x-jsf-presentation.statement\""},{"ancestorTitles":["createHeadlessForm","property misc attributes"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm property misc attributes pass any \"x-\" attribute, expect for x-jsf-* keys","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"pass any \"x-\" attribute, expect for x-jsf-* keys"},{"ancestorTitles":["createHeadlessForm","property misc attributes"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm property misc attributes pass custom attributes as function","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"pass custom attributes as function"},{"ancestorTitles":["createHeadlessForm","property misc attributes"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm property misc attributes pass scopedJsonSchema to each field","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"pass scopedJsonSchema to each field"},{"ancestorTitles":["createHeadlessForm","property misc attributes","Order of fields"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm property misc attributes Order of fields sorts fields based on presentation.position keyword (deprecated)","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"sorts fields based on presentation.position keyword (deprecated)"},{"ancestorTitles":["createHeadlessForm","property misc attributes","Order of fields"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm property misc attributes Order of fields sorts fields based on x-jsf-order keyword","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"sorts fields based on x-jsf-order keyword"},{"ancestorTitles":["createHeadlessForm","property misc attributes","Order of fields"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm property misc attributes Order of fields sorts fields based on original properties (without x-jsf-order)","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"sorts fields based on original properties (without x-jsf-order)"},{"ancestorTitles":["createHeadlessForm","more validations","when a field is required","and value is empty"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field is required and value is empty should throw an error","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should throw an error"},{"ancestorTitles":["createHeadlessForm","more validations","when a field is required","and value is defined"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field is required and value is defined should validate field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate field"},{"ancestorTitles":["createHeadlessForm","more validations","when a field is number","and value is a string"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field is number and value is a string should throw an error","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should throw an error"},{"ancestorTitles":["createHeadlessForm","more validations","when a field is number","and value is a number"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field is number and value is a number should validate field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate field"},{"ancestorTitles":["createHeadlessForm","more validations","when a field is number","and maximum is set to zero"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field is number and maximum is set to zero shows the correct validation","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"shows the correct validation"},{"ancestorTitles":["createHeadlessForm","more validations","when a field has a maxLength of 10","and value is greater than that"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field has a maxLength of 10 and value is greater than that should throw an error","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should throw an error"},{"ancestorTitles":["createHeadlessForm","more validations","when a field has a maxLength of 10","and value is less than that"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field has a maxLength of 10 and value is less than that should validate field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate field"},{"ancestorTitles":["createHeadlessForm","more validations","when a field has a minLength of 2","and value is smaller than that"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field has a minLength of 2 and value is smaller than that should throw an error","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should throw an error"},{"ancestorTitles":["createHeadlessForm","more validations","when a field has a minLength of 2","and value is greater than that"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field has a minLength of 2 and value is greater than that should validate field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate field"},{"ancestorTitles":["createHeadlessForm","more validations","when a field has a minimum of 0","and value is less than that"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field has a minimum of 0 and value is less than that should throw an error","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should throw an error"},{"ancestorTitles":["createHeadlessForm","more validations","when a field has a minimum of 0","and value is greater than that"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field has a minimum of 0 and value is greater than that should validate field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate field"},{"ancestorTitles":["createHeadlessForm","more validations","when a field has a maximum of 10","and value is greater than that"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field has a maximum of 10 and value is greater than that should throw an error","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should throw an error"},{"ancestorTitles":["createHeadlessForm","more validations","when a field has a maximum of 10","and value is greater than that"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field has a maximum of 10 and value is greater than that should validate field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate field"},{"ancestorTitles":["createHeadlessForm","more validations","when a field has a pattern","and value does not match the pattern"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field has a pattern and value does not match the pattern should throw an error","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should throw an error"},{"ancestorTitles":["createHeadlessForm","more validations","when a field has a pattern","and value matches the pattern"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm more validations when a field has a pattern and value matches the pattern should validate field","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should validate field"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are optional"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are optional validation should return true when the object has empty values","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return true when the object has empty values"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are optional"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are optional validation should return true when object is valid","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return true when object is valid"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are mandatory"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are mandatory validation should return false when value is an empty object","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return false when value is an empty object"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are mandatory"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are mandatory validation should return false when value is an object with null values","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return false when value is an object with null values"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are mandatory"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are mandatory validation should return false when value is an object with empty values","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return false when value is an object with empty values"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are mandatory"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are mandatory validation should return false when one value is empty","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return false when one value is empty"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are mandatory"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are mandatory validation should return false a numeric field is not a number","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return false a numeric field is not a number"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are mandatory"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are mandatory validation should return true when object is valid","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return true when object is valid"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are mandatory","and one field has pattern validation"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are mandatory and one field has pattern validation validation should return false when a value does not match a pattern","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return false when a value does not match a pattern"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are mandatory","and one field has pattern validation"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are mandatory and one field has pattern validation validation should return true when value matches the pattern","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return true when value matches the pattern"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are mandatory","and one field has max length validation"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are mandatory and one field has max length validation validation should return false when a value is greater than the limit","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return false when a value is greater than the limit"},{"ancestorTitles":["createHeadlessForm","even more validations","and all fields are mandatory","and one field has max length validation"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and all fields are mandatory and one field has max length validation validation should return true when value is within the limit","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"validation should return true when value is within the limit"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional applies correct validation for single-value based conditionals","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"passed","title":"applies correct validation for single-value based conditionals"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional applies correct validation for minimum/maximum conditionals","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"applies correct validation for minimum/maximum conditionals"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional applies correct validation for minLength/maxLength conditionals","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"applies correct validation for minLength/maxLength conditionals"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional applies correct validation for array-contain based conditionals","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"applies correct validation for array-contain based conditionals"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional applies correct validation for fieldset fields","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"applies correct validation for fieldset fields"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional applies any of the validation alternatives in a anyOf branch","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"applies any of the validation alternatives in a anyOf branch"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional","nested conditionals"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional nested conditionals given empty values, runs \"else\" (gets hidden)","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"given empty values, runs \"else\" (gets hidden)"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional","nested conditionals"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional nested conditionals given a match, runs \"then\" (turns visible and editable)","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"given a match, runs \"then\" (turns visible and editable)"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional","nested conditionals"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional nested conditionals given a nested match, runs \"else-then\" (turns visible but readOnly)","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"given a nested match, runs \"else-then\" (turns visible but readOnly)"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional","conditional fields (incorrectly done)"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional conditional fields (incorrectly done) given empty values, the incorrect conditional runs \"then\" instead of \"else\"","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"given empty values, the incorrect conditional runs \"then\" instead of \"else\""},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional","conditional fields (incorrectly done)"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional conditional fields (incorrectly done) given a match (\"yes\"), both runs \"then\" (turn visible)","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"given a match (\"yes\"), both runs \"then\" (turn visible)"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional","conditional fields (incorrectly done)"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional conditional fields (incorrectly done) not given a match (\"no\"), both run else (stay hidden)","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"not given a match (\"no\"), both run else (stay hidden)"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional checkbox should have no initial value when its dynamically shown and invisible","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"checkbox should have no initial value when its dynamically shown and invisible"},{"ancestorTitles":["createHeadlessForm","even more validations","and fields are dynamically required/optional"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm even more validations and fields are dynamically required/optional checkbox should have no initial value when its dynamically shown and visible","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"checkbox should have no initial value when its dynamically shown and visible"},{"ancestorTitles":["createHeadlessForm","Throwing custom error messages using errorMessage (deprecated)"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Throwing custom error messages using errorMessage (deprecated) error message for property \"type\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"type\""},{"ancestorTitles":["createHeadlessForm","Throwing custom error messages using errorMessage (deprecated)"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Throwing custom error messages using errorMessage (deprecated) error message for property \"minimum\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"minimum\""},{"ancestorTitles":["createHeadlessForm","Throwing custom error messages using errorMessage (deprecated)"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Throwing custom error messages using errorMessage (deprecated) error message for property \"required\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"required\""},{"ancestorTitles":["createHeadlessForm","Throwing custom error messages using errorMessage (deprecated)"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Throwing custom error messages using errorMessage (deprecated) error message for property \"required (ignored because it is optional)\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"required (ignored because it is optional)\""},{"ancestorTitles":["createHeadlessForm","Throwing custom error messages using errorMessage (deprecated)"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Throwing custom error messages using errorMessage (deprecated) error message for property \"maximum\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"maximum\""},{"ancestorTitles":["createHeadlessForm","Throwing custom error messages using errorMessage (deprecated)"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Throwing custom error messages using errorMessage (deprecated) error message for property \"minLength\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"minLength\""},{"ancestorTitles":["createHeadlessForm","Throwing custom error messages using errorMessage (deprecated)"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Throwing custom error messages using errorMessage (deprecated) error message for property \"maxLength\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"maxLength\""},{"ancestorTitles":["createHeadlessForm","Throwing custom error messages using errorMessage (deprecated)"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Throwing custom error messages using errorMessage (deprecated) error message for property \"pattern\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"pattern\""},{"ancestorTitles":["createHeadlessForm","Throwing custom error messages using errorMessage (deprecated)"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Throwing custom error messages using errorMessage (deprecated) error message for property \"maxFileSize\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"maxFileSize\""},{"ancestorTitles":["createHeadlessForm","Throwing custom error messages using errorMessage (deprecated)"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Throwing custom error messages using errorMessage (deprecated) error message for property \"accept\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"accept\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Custom error messages error message for property \"type\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"type\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Custom error messages error message for property \"minimum\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"minimum\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Custom error messages error message for property \"required\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"required\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Custom error messages error message for property \"required (ignored because it is optional)\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"required (ignored because it is optional)\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Custom error messages error message for property \"maximum\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"maximum\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Custom error messages error message for property \"minLength\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"minLength\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Custom error messages error message for property \"maxLength\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"maxLength\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Custom error messages error message for property \"pattern\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"pattern\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Custom error messages error message for property \"maxFileSize\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"maxFileSize\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Custom error messages error message for property \"accept\"","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"error message for property \"accept\""},{"ancestorTitles":["createHeadlessForm","Custom error messages"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm Custom error messages accepts with options.inputType[].errorMessage","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"accepts with options.inputType[].errorMessage"},{"ancestorTitles":["createHeadlessForm","given default values","and a field with conditional presentation properties"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm given default values and a field with conditional presentation properties returns the nested properties when the conditional matches","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"returns the nested properties when the conditional matches"},{"ancestorTitles":["createHeadlessForm","given default values","and \"fieldset\" has scoped conditionals"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm given default values and \"fieldset\" has scoped conditionals should show conditionals fields when values fullfil conditions","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should show conditionals fields when values fullfil conditions"},{"ancestorTitles":["createHeadlessForm","given default values","and \"fieldset\" has scoped conditionals"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm given default values and \"fieldset\" has scoped conditionals should hide conditionals fields when values do not fullfil conditions","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should hide conditionals fields when values do not fullfil conditions"},{"ancestorTitles":["createHeadlessForm","given default values","and \"fieldset\" has scoped conditionals"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm given default values and \"fieldset\" has scoped conditionals should ignore initial values that do not match the field type (eg string vs object)","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"should ignore initial values that do not match the field type (eg string vs object)"},{"ancestorTitles":["createHeadlessForm","parser options"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm parser options should support any custom field attribute","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should support any custom field attribute"},{"ancestorTitles":["createHeadlessForm","parser options"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm parser options should support custom description (checkbox)","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should support custom description (checkbox)"},{"ancestorTitles":["createHeadlessForm","parser options"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm parser options should ignore fields that are not present in the schema","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"passed","title":"should ignore fields that are not present in the schema"},{"ancestorTitles":["createHeadlessForm","parser options"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm parser options should handle custom properties when inside fieldsets","invocations":1,"location":null,"numPassingAsserts":19,"retryReasons":[],"status":"passed","title":"should handle custom properties when inside fieldsets"},{"ancestorTitles":["createHeadlessForm","parser options"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm parser options should handle custom properties when inside fieldsets for fields name clashing with reserved words","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"should handle custom properties when inside fieldsets for fields name clashing with reserved words"},{"ancestorTitles":["createHeadlessForm","presentation (deprecated in favor of x-jsf-presentation)"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"createHeadlessForm presentation (deprecated in favor of x-jsf-presentation) works well with position, description, inputType, and any other arbitrary attribute","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"works well with position, description, inputType, and any other arbitrary attribute"}],"endTime":1768910827885,"message":"","name":"/Users/daniel.cardoso/Repos/json-schema-form/v0/src/tests/createHeadlessForm.test.js","startTime":1768910826758,"status":"passed","summary":""}],"wasInterrupted":false} diff --git a/test/validation/json-logic.test.ts b/test/validation/json-logic.test.ts index d4e34e759..7eb54ce7f 100644 --- a/test/validation/json-logic.test.ts +++ b/test/validation/json-logic.test.ts @@ -6,6 +6,7 @@ import * as SchemaValidation from '../../src/validation/schema' import { errorLike } from '../test-utils' const validateJsonLogicRules = JsonLogicValidation.validateJsonLogicRules +const validateSchema = SchemaValidation.validateSchema // Mock json-logic-js jest.mock('json-logic-js', () => ({ @@ -114,10 +115,10 @@ describe('validateJsonLogicRules', () => { }, }, value: { age: 20 }, - } + }; // Mock the jsonLogic.apply to return true - ;(jsonLogic.apply as jest.Mock).mockReturnValue(true) + (jsonLogic.apply as jest.Mock).mockReturnValue(true) const result = validateJsonLogicRules(schema, jsonLogicContext) expect(result).toEqual([]) @@ -140,9 +141,9 @@ describe('validateJsonLogicRules', () => { }, }, value: { field: undefined }, - } + }; - ;(jsonLogic.apply as jest.Mock).mockReturnValue(true) + (jsonLogic.apply as jest.Mock).mockReturnValue(true) validateJsonLogicRules(schema, jsonLogicContext) @@ -194,8 +195,6 @@ describe('validateJsonLogicRules', () => { }) describe('validateSchema integration with "x-jsf-logic"', () => { - const validateSchema = SchemaValidation.validateSchema - it('calls validateJsonLogicRules with correct context', () => { const schema: JsfSchema = { 'properties': { @@ -352,10 +351,6 @@ describe('validateJsonLogicRules', () => { }) describe('applyComputedAttrsToSchema', () => { - beforeEach(() => { - jest.clearAllMocks() - }) - it('returns original schema when no computed values exist', () => { const schema: JsfObjectSchema = { type: 'object', @@ -434,6 +429,35 @@ describe('applyComputedAttrsToSchema', () => { expect(ageProperties?.description).toBe('Minimum allowed is 21') }) + it('applies computed values when the computed value is 0', () => { + const schema: JsfObjectSchema = { + 'type': 'object', + 'properties': { + age: { + 'type': 'number', + 'x-jsf-logic-computedAttrs': { + description: 'Minimum allowed is {{computedMin}}', + }, + }, + }, + 'x-jsf-logic': { + computedValues: { + computedMin: { + rule: { '*': [{ var: 'age' }, 2] }, + }, + }, + }, + }; + + (jsonLogic.apply as jest.Mock).mockReturnValue(0) + + const result = JsonLogicValidation.applyComputedAttrsToSchema(schema, schema['x-jsf-logic']?.computedValues, { age: 12 }) + + const ageProperties = result.properties?.age as JsfObjectSchema + + expect(ageProperties?.description).toBe('Minimum allowed is 0') + }) + it('handles object-type computed attributes', () => { const schema: JsfObjectSchema = { 'type': 'object', @@ -593,3 +617,613 @@ describe('applyComputedAttrsToSchema', () => { expect((temperatureSetting.oneOf?.[2] as NonBooleanJsfSchema)?.const).toBe(24) }) }) + +describe('Conditionals with validations and computedValues', () => { + beforeEach(() => { + jest.clearAllMocks() + }) + + it('when field_a > field_b, show field_c', () => { + const schema: JsfObjectSchema = { + 'type': 'object', + 'properties': { + field_a: { + type: 'number', + }, + field_b: { + type: 'number', + }, + field_c: { + type: 'number', + }, + }, + 'required': ['field_a', 'field_b'], + 'x-jsf-logic': { + validations: { + require_c: { + rule: { + and: [{ '>': [{ var: 'field_a' }, { var: 'field_b' }] }], + }, + }, + }, + allOf: [ + { + if: { + validations: { + require_c: { + const: true, + }, + }, + }, + then: { + required: ['field_c'], + }, + else: { + properties: { + field_c: false, + }, + }, + }, + ], + }, + }; + + // When field_a <= field_b, condition is false, field_c should not be required + (jsonLogic.apply as jest.Mock).mockReturnValue(false) + let errors = validateSchema({ field_a: 1, field_b: 3 }, schema) + expect(errors).toEqual([]) + + // When field_a is missing, field_b should be required + errors = validateSchema({ field_a: 1 }, schema) + expect(errors.length).toBe(1) + expect(errors.find(e => e.path.includes('field_b'))!.validation).toBe('required') + + // When field_b is undefined, it should be required + errors = validateSchema({ field_a: 1, field_b: undefined }, schema) + expect(errors.length).toBe(1) + expect(errors.find(e => e.path.includes('field_b'))!.validation).toBe('required'); + + // When field_a > field_b, condition is true, field_c should be required + (jsonLogic.apply as jest.Mock).mockReturnValue(true) + errors = validateSchema({ field_a: 10, field_b: 3 }, schema) + expect(errors.length).toBe(1) + expect(errors.find(e => e.path.includes('field_c'))!.validation).toBe('required') + + // When field_c is provided, no errors + errors = validateSchema({ field_a: 10, field_b: 3, field_c: 0 }, schema) + expect(errors).toEqual([]) + }) + + it('A schema with both a `validations` and `properties` check', () => { + const schema: JsfObjectSchema = { + 'type': 'object', + 'properties': { + field_a: { + type: 'number', + }, + field_b: { + type: 'number', + }, + field_c: { + type: 'number', + }, + }, + 'required': ['field_a', 'field_b'], + 'x-jsf-logic': { + validations: { + require_c: { + rule: { + and: [{ '>': [{ var: 'field_a' }, { var: 'field_b' }] }], + }, + }, + }, + allOf: [ + { + if: { + validations: { + require_c: { + const: true, + }, + }, + properties: { + field_a: { + const: 10, + }, + }, + }, + then: { + required: ['field_c'], + }, + else: { + properties: { + field_c: false, + }, + }, + }, + ], + }, + }; + + // When condition is false (field_a <= field_b or field_a !== 10) + (jsonLogic.apply as jest.Mock).mockReturnValue(false) + let errors = validateSchema({ field_a: 1, field_b: 3 }, schema) + expect(errors).toEqual([]); + + // When condition is true (field_a > field_b AND field_a === 10) + (jsonLogic.apply as jest.Mock).mockReturnValue(true) + errors = validateSchema({ field_a: 10, field_b: 3 }, schema) + expect(errors.length).toBe(1) + expect(errors.find(e => e.path.includes('field_c'))!.validation).toBe('required') + + // When field_a is 5, condition should be false + errors = validateSchema({ field_a: 5, field_b: 3 }, schema) + expect(errors).toEqual([]) + }) + + it('Conditionally apply a validation on a property depending on values', () => { + const schema: JsfObjectSchema = { + 'type': 'object', + 'properties': { + field_a: { + type: 'number', + }, + field_b: { + type: 'number', + }, + field_c: { + type: 'number', + }, + }, + 'required': ['field_a', 'field_b'], + 'x-jsf-logic': { + validations: { + require_c: { + rule: { + and: [{ '>': [{ var: 'field_a' }, { var: 'field_b' }] }], + }, + }, + c_must_be_large: { + errorMessage: 'Needs more numbers', + rule: { + '>': [{ var: 'field_c' }, 200], + }, + }, + }, + allOf: [ + { + if: { + validations: { + require_c: { + const: true, + }, + }, + }, + then: { + required: ['field_c'], + properties: { + field_c: { + 'description': 'I am a description!', + 'x-jsf-logic-validations': ['c_must_be_large'], + }, + }, + }, + else: { + properties: { + field_c: false, + }, + }, + }, + ], + }, + }; + + // When condition is false, field_c should not be visible/required + (jsonLogic.apply as jest.Mock).mockReturnValue(false) + let errors = validateSchema({ field_a: 5, field_b: 10 }, schema) + expect(errors).toEqual([]); + + // When condition is true, field_c should be required + (jsonLogic.apply as jest.Mock).mockReturnValueOnce(true) + errors = validateSchema({ field_a: 10, field_b: 5 }, schema) + expect(errors.length).toBe(1) + expect(errors.find(e => e.path.includes('field_c'))!.validation).toBe('required'); + + // When field_c is 0, it should fail the c_must_be_large validation + (jsonLogic.apply as jest.Mock).mockReturnValueOnce(true).mockReturnValueOnce(false) + errors = validateSchema({ field_a: 10, field_b: 5, field_c: 0 }, schema) + expect(errors.length).toBe(1) + const cError = errors.find(e => e.path.includes('field_c')) + expect(cError!.validation).toBe('json-logic') + expect(cError!.customErrorMessage).toBe('Needs more numbers'); + + // When field_c is 201, it should pass + (jsonLogic.apply as jest.Mock).mockReturnValueOnce(true).mockReturnValueOnce(true) + errors = validateSchema({ field_a: 10, field_b: 5, field_c: 201 }, schema) + expect(errors).toEqual([]) + }) + + it('Should apply a conditional based on a true computedValue', () => { + const schema: JsfObjectSchema = { + 'type': 'object', + 'properties': { + field_a: { + type: 'number', + }, + field_b: { + type: 'number', + }, + field_c: { + type: 'number', + }, + }, + 'required': ['field_a', 'field_b'], + 'x-jsf-logic': { + computedValues: { + require_c: { + rule: { + and: [{ '>': [{ var: 'field_a' }, { var: 'field_b' }] }], + }, + }, + }, + allOf: [ + { + if: { + computedValues: { + require_c: { + const: true, + }, + }, + }, + then: { + required: ['field_c'], + }, + else: { + properties: { + field_c: false, + }, + }, + }, + ], + }, + }; + + // When condition is false (computed value is not true) + (jsonLogic.apply as jest.Mock).mockReturnValue(false) + let errors = validateSchema({ field_a: 5, field_b: 10 }, schema) + expect(errors).toEqual([]); + + // When condition is true (computed value is true), field_c should be required + (jsonLogic.apply as jest.Mock).mockReturnValue(true) + errors = validateSchema({ field_a: 10, field_b: 5 }, schema) + expect(errors.length).toBe(1) + expect(errors.find(e => e.path.includes('field_c'))!.validation).toBe('required') + + // When field_c is provided, no errors + errors = validateSchema({ field_a: 10, field_b: 5, field_c: 201 }, schema) + expect(errors).toEqual([]) + }) + + it('Handle multiple computedValue checks by ANDing them together', () => { + const schema: JsfObjectSchema = { + 'type': 'object', + 'properties': { + field_a: { + type: 'number', + }, + field_b: { + type: 'number', + }, + field_c: { + type: 'number', + }, + }, + 'required': ['field_a', 'field_b'], + 'x-jsf-logic': { + validations: { + double_b: { + errorMessage: 'Must be two times B', + rule: { + '>': [{ var: 'field_c' }, { '*': [{ var: 'field_b' }, 2] }], + }, + }, + }, + computedValues: { + a_times_two: { + rule: { + '*': [{ var: 'field_a' }, 2], + }, + }, + mod_by_five: { + rule: { + '%': [{ var: 'field_b' }, 5], + }, + }, + }, + allOf: [ + { + if: { + computedValues: { + a_times_two: { + const: 20, + }, + mod_by_five: { + const: 3, + }, + }, + }, + then: { + required: ['field_c'], + properties: { + field_c: { + 'x-jsf-logic-validations': ['double_b'], + 'title': 'Adding a title.', + }, + }, + }, + else: { + properties: { + field_c: false, + }, + }, + }, + ], + }, + } + + // When required fields are missing + let errors = validateSchema({}, schema) + expect(errors.length).toBe(2) + expect(errors.find(e => e.path.includes('field_a'))!.validation).toBe('required') + expect(errors.find(e => e.path.includes('field_b'))!.validation).toBe('required'); + + // When computed values don't match (a_times_two === 20 AND mod_by_five !== 3) + (jsonLogic.apply as jest.Mock).mockReturnValueOnce(20).mockReturnValueOnce(2) + errors = validateSchema({ field_a: 10, field_b: 8 }, schema) + // Condition should be false, so field_c should not be required + expect(errors).toEqual([]); + + // When computed values match, field_c should be required + (jsonLogic.apply as jest.Mock).mockReturnValueOnce(20).mockReturnValueOnce(3) + errors = validateSchema({ field_a: 10, field_b: 8 }, schema) + expect(errors.length).toBe(1) + expect(errors.find(e => e.path.includes('field_c'))!.validation).toBe('required'); + + // When field_c is 0, it should fail the double_b validation + (jsonLogic.apply as jest.Mock).mockReturnValueOnce(20).mockReturnValueOnce(3).mockReturnValueOnce(false) // double_b validation fails + errors = validateSchema({ field_a: 10, field_b: 8, field_c: 0 }, schema) + expect(errors.length).toBe(1) + const cError = errors.find(e => e.path.includes('field_c')) + expect(cError!.validation).toBe('json-logic') + expect(cError!.customErrorMessage).toBe('Must be two times B'); + + // When field_c is 17, it should pass + (jsonLogic.apply as jest.Mock).mockReturnValueOnce(20).mockReturnValueOnce(3).mockReturnValueOnce(true) // double_b validation passes + errors = validateSchema({ field_a: 10, field_b: 8, field_c: 17 }, schema) + expect(errors).toEqual([]) + }) + + it('Handle having a true condition with both validations and computedValue checks', () => { + const schema: JsfObjectSchema = { + 'type': 'object', + 'properties': { + field_a: { + type: 'number', + }, + field_b: { + type: 'number', + }, + field_c: { + type: 'number', + }, + }, + 'required': ['field_a', 'field_b'], + 'x-jsf-logic': { + validations: { + greater_than_b: { + rule: { + '>': [{ var: 'field_a' }, { var: 'field_b' }], + }, + }, + }, + computedValues: { + a_times_two: { + rule: { + '*': [{ var: 'field_a' }, 2], + }, + }, + }, + allOf: [ + { + if: { + computedValues: { + a_times_two: { + const: 20, + }, + }, + validations: { + greater_than_b: { + const: true, + }, + }, + }, + then: { + required: ['field_c'], + }, + else: { + properties: { + field_c: false, + }, + }, + }, + ], + }, + }; + + // When condition is false (a_times_two !== 20 or greater_than_b !== true) + (jsonLogic.apply as jest.Mock).mockReturnValue(false) + let errors = validateSchema({ field_a: 1, field_b: 1 }, schema) + expect(errors).toEqual([]); + + // When field_a > field_b but a_times_two !== 20 + (jsonLogic.apply as jest.Mock).mockReturnValueOnce(true).mockReturnValueOnce(18) // a_times_two = 18 + errors = validateSchema({ field_a: 10, field_b: 20 }, schema) + expect(errors).toEqual([]); + + // When both conditions are true, field_c should be required + (jsonLogic.apply as jest.Mock).mockReturnValueOnce(true).mockReturnValueOnce(20) // a_times_two = 20 + errors = validateSchema({ field_a: 10, field_b: 9 }, schema) + expect(errors.length).toBe(1) + expect(errors.find(e => e.path.includes('field_c'))!.validation).toBe('required'); + + // When field_c is provided, no errors + (jsonLogic.apply as jest.Mock).mockReturnValueOnce(true).mockReturnValueOnce(20) + errors = validateSchema({ field_a: 10, field_b: 9, field_c: 10 }, schema) + expect(errors).toEqual([]) + }) + + it('Apply validations and computed values on normal if statement', () => { + const schema: JsfObjectSchema = { + 'type': 'object', + 'properties': { + field_a: { + type: 'number', + }, + field_b: { + type: 'number', + }, + }, + 'x-jsf-logic': { + computedValues: { + a_plus_ten: { + rule: { + '+': [{ var: 'field_a' }, 10], + }, + }, + }, + validations: { + greater_than_a_plus_ten: { + errorMessage: 'Must be greater than Field A + 10', + rule: { + '>': [{ var: 'field_b' }, { '+': [{ var: 'field_a' }, 10] }], + }, + }, + }, + }, + 'allOf': [ + { + if: { + properties: { + field_a: { + const: 20, + }, + }, + }, + then: { + properties: { + field_b: { + 'x-jsf-logic-computedAttrs': { + title: 'Must be greater than {{a_plus_ten}}.', + }, + 'x-jsf-logic-validations': ['greater_than_a_plus_ten'], + }, + }, + }, + }, + ], + } + + // When field_a !== 20, condition is false, no validation should be applied + let errors = validateSchema({ field_a: 10, field_b: 0 }, schema) + expect(errors).toEqual([]); + + // When field_a === 20, condition is true, validation should be applied + (jsonLogic.apply as jest.Mock).mockReturnValueOnce(false) // greater_than_a_plus_ten validation fails + errors = validateSchema({ field_a: 20, field_b: 0 }, schema) + expect(errors.length).toBe(1) + const bError = errors.find(e => e.path.includes('field_b')) + expect(bError!.validation).toBe('json-logic') + expect(bError!.customErrorMessage).toBe('Must be greater than Field A + 10'); + + // When field_b > field_a + 10, validation should pass + (jsonLogic.apply as jest.Mock).mockReturnValueOnce(true) // greater_than_a_plus_ten validation passes + errors = validateSchema({ field_a: 20, field_b: 31 }, schema) + expect(errors).toEqual([]) + }) + + it('When we have a required validation on a top level property and another validation is added, both should be accounted for', () => { + const schema: JsfObjectSchema = { + 'type': 'object', + 'required': ['field_a', 'field_b'], + 'properties': { + field_a: { + type: 'number', + }, + field_b: { + 'type': 'number', + 'x-jsf-logic-validations': ['greater_than_field_a'], + }, + }, + 'x-jsf-logic': { + validations: { + greater_than_field_a: { + errorMessage: 'Must be greater than A', + rule: { + '>': [{ var: 'field_b' }, { var: 'field_a' }], + }, + }, + greater_than_two_times_a: { + errorMessage: 'Must be greater than two times A', + rule: { + '>': [{ var: 'field_b' }, { '*': [{ var: 'field_a' }, 2] }], + }, + }, + }, + }, + 'allOf': [ + { + if: { + properties: { + field_a: { + const: 20, + }, + }, + }, + then: { + properties: { + field_b: { + 'x-jsf-logic-validations': ['greater_than_two_times_a'], + }, + }, + }, + }, + ], + }; + + // When field_a === 10, only greater_than_field_a validation should apply + (jsonLogic.apply as jest.Mock).mockReturnValue(false) + let errors = validateSchema({ field_a: 10, field_b: 0 }, schema) + expect(errors.length).toBe(1) + const bError = errors.find(e => e.path.includes('field_b')) + expect(bError!.validation).toBe('json-logic') + expect(bError!.customErrorMessage).toBe('Must be greater than A'); + + // When field_b > field_a, validation should pass + (jsonLogic.apply as jest.Mock).mockReturnValue(true) + errors = validateSchema({ field_a: 10, field_b: 20 }, schema) + expect(errors).toEqual([]); + + // When field_a === 20, both validations should apply + // First, greater_than_field_a should pass + (jsonLogic.apply as jest.Mock).mockReturnValueOnce(true).mockReturnValueOnce(false) // greater_than_two_times_a fails + errors = validateSchema({ field_a: 20, field_b: 10 }, schema) + expect(errors.length).toBe(1) + const bError2 = errors.find(e => e.path.includes('field_b')) + expect(bError2!.validation).toBe('json-logic') + expect(bError2!.customErrorMessage).toBe('Must be greater than two times A'); + + // When field_b > 2 * field_a, both validations should pass + (jsonLogic.apply as jest.Mock).mockReturnValueOnce(true).mockReturnValueOnce(true) // greater_than_two_times_a passes + errors = validateSchema({ field_a: 20, field_b: 41 }, schema) + expect(errors).toEqual([]) + }) +}) diff --git a/v0/src/tests/helpers.js b/v0/src/tests/helpers.js index af69923d0..3f790728b 100644 --- a/v0/src/tests/helpers.js +++ b/v0/src/tests/helpers.js @@ -2039,6 +2039,7 @@ export const schemaWithNestedFieldsetsConditionals = { const: 'yes', }, }, + required: ['create_plan'], }, then: {}, else: { @@ -2065,7 +2066,7 @@ export const schemaWithNestedFieldsetsConditionals = { title: 'Planned amount', }, create_plan: { - type: 'radio', + type: 'string', title: 'Create plan?', oneOf: [ { @@ -2088,32 +2089,34 @@ export const schemaWithNestedFieldsetsConditionals = { properties: { months: { default: ['january', 'february'], - oneOf: [ - { - const: 'january', - title: 'January', - }, - { - const: 'february', - title: 'February', - }, - { - const: 'march', - title: 'March', - }, - { - const: 'april', - title: 'April', - }, - { - const: 'may', - title: 'May', - }, - { - const: 'june', - title: 'June', - }, - ], + items: { + anyOf: [ + { + const: 'january', + title: 'January', + }, + { + const: 'february', + title: 'February', + }, + { + const: 'march', + title: 'March', + }, + { + const: 'april', + title: 'April', + }, + { + const: 'may', + title: 'May', + }, + { + const: 'june', + title: 'June', + }, + ], + }, title: "Select the months when you'll contribute", type: 'array', 'x-jsf-presentation': { @@ -2159,19 +2162,24 @@ export const schemaWithNestedFieldsetsConditionals = { properties: { perks: { properties: { - has_retirement_plan: { + declare_amount: { const: 'no', }, }, + required: ['declare_amount'], }, }, + required: ['perks'], }, then: { properties: { perks: { properties: { - retirement_plan: false, - declare_amount: false, + retirement_plan: { + properties: { + amount: false, + }, + }, }, }, }, @@ -2182,23 +2190,22 @@ export const schemaWithNestedFieldsetsConditionals = { properties: { perks: { properties: { - declare_amount: { - const: 'no', + has_retirement_plan: { + const: 'yes', }, }, - required: ['declare_amount'], + required: ['has_retirement_plan'], }, }, + required: ['perks'], }, - then: { + then: {}, + else: { properties: { perks: { properties: { - retirement_plan: { - properties: { - amount: false, - }, - }, + retirement_plan: false, + declare_amount: false, }, }, }, @@ -2219,6 +2226,7 @@ export const schemaWithNestedFieldsetsConditionals = { required: ['has_retirement_plan', 'declare_amount'], }, }, + required: ['perks'], }, then: { properties: {