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
Running tests a notice is throw with the following:
loudRejection/api is deprecated. Use the currently-unhandled module instead.
Tests complete without a problem.
Test Source
importtestfrom'ava';importReactfrom'react';import{shallow,mount,render}from'enzyme';import{setupBrowserEnvironment}from'library/testing';setupBrowserEnvironment();importFormFieldfrom'../FormField';constdefaultProps={component: 'input',type: 'text',name: 'first_name',};test('sets the name prop as ID prop',t=>{constwrapper=shallow(<FormField{...defaultProps}/>);t.true(wrapper.is('#first_name'));});
Description
Running tests a notice is throw with the following:
loudRejection/api is deprecated. Use the currently-unhandled module instead.
Tests complete without a problem.
Test Source
Config
Copy the relevant section from
package.json
:with
"jsdom": "^9.2.1",
Command-Line Arguments
npm test
with the following"test": "NODE_PATH=./src ava"
Environment
Tell us which operating system you are using, as well as which versions of Node.js, npm, and AVA. Run the following to get it quickly:
The text was updated successfully, but these errors were encountered: