You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the above error is triggered by the following code (which should just report a test failure):
import test from 'ava'
import React from 'react'
import {mount} from 'enzyme'
test('should kinda work', t => {
const wrapper = mount(<div>foo</div>)
t.is(wrapper.find('.does-not-exist').length, 1)
})
strangely, when the test is altered to pass, no such exception is thrown:
t.is(wrapper.find('.does-not-exist').length, 0)
also observed that the issue does not surface when using enzyme shallow or render methods (just mount)
the rest of the project configuration can be found here for reference.
Warning: Element: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)
Warning: Element: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)
2 exceptions
1. Uncaught Exception
TypeError: Cannot convert undefined or null to object
cleanYamlObj (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:12:17)
setProp (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:84:22)
/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:73:4
cleanYamlObj (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:57:15)
setProp (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:84:22)
/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:73:4
cleanYamlObj (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:57:15)
setProp (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:84:22)
/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:73:4
cleanYamlObj (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:57:15)
setProp (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:84:22)
/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:73:4
cleanYamlObj (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:57:15)
setProp (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:84:22)
/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:73:4
cleanYamlObj (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:57:15)
setProp (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:84:22)
/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:73:4
cleanYamlObj (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:57:15)
setProp (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:84:22)
/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:73:4
cleanYamlObj (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:57:15)
setProp (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:84:22)
/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:73:4
cleanYamlObj (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:57:15)
setProp (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:84:22)
/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:73:4
cleanYamlObj (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:57:15)
setProp (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:84:22)
/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:73:4
cleanYamlObj (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:57:15)
setProp (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:84:22)
/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:73:4
cleanYamlObj (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:57:15)
setProp (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:84:22)
/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:73:4
cleanYamlObj (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:57:15)
module.exports (/Users/tony/git/react-drop-wrapper/node_modules/clean-yaml-object/index.js:3:9)
_combinedTickCallback (internal/process/next_tick.js:67:7)
process._tickCallback (internal/process/next_tick.js:98:9)
✖ Test results were not received from test/index-test.js
The text was updated successfully, but these errors were encountered:
the above error is triggered by the following code (which should just report a test failure):
strangely, when the test is altered to pass, no such exception is thrown:
also observed that the issue does not surface when using enzyme
shallow
orrender
methods (justmount
)the rest of the project configuration can be found here for reference.
versions
stack trace
The text was updated successfully, but these errors were encountered: