chore: refactor withConditional to have multiple conditions types #454
main.yml
on: push
Run Type Check & Linters
1m 23s
Annotations
3 errors
tests/components/FormBuilder/withConditional.test.tsx > withConditional > renders the wrapped component when conditions are satisfied:
src/components/FormBuilder/fields.tsx#L64
TypeError: values.includes is not a function
❯ evaluateConditions src/components/FormBuilder/fields.tsx:64:21
❯ src/components/FormBuilder/fields.tsx:68:26
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
|
tests/components/FormBuilder/withConditional.test.tsx > withConditional > does not render the wrapped component when conditions are not satisfied:
src/components/FormBuilder/fields.tsx#L64
TypeError: values.includes is not a function
❯ evaluateConditions src/components/FormBuilder/fields.tsx:64:21
❯ src/components/FormBuilder/fields.tsx:68:26
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
|
Run Type Check & Linters
Process completed with exit code 1.
|