Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoudRejection api is deprecated [0.15.1] #900

Closed
andrewmclagan opened this issue Jun 4, 2016 · 1 comment
Closed

LoudRejection api is deprecated [0.15.1] #900

andrewmclagan opened this issue Jun 4, 2016 · 1 comment

Comments

@andrewmclagan
Copy link

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

import test from 'ava';
import React from 'react';
import { shallow, mount, render } from 'enzyme';
import { setupBrowserEnvironment } from 'library/testing';
setupBrowserEnvironment();

import FormField from '../FormField';

const defaultProps = {
  component: 'input',
  type: 'text',
  name: 'first_name',
};

test('sets the name prop as ID prop', t => {
  const wrapper = shallow(<FormField {...defaultProps} />);
  t.true(wrapper.is('#first_name'));
});

Config

Copy the relevant section from package.json:

{
  "ava": {
    "require": [
      "babel-register"
    ],    
    "babel": {
      "presets": [
        "es2015",
        "stage-0",
        "react"
      ]
    }
  }

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:

3:25:35~$ node -e "var os=require('os');console.log('Node.js ' + process.version + '\n' + os.platform() + ' ' + os.release())"
Node.js v5.10.0
darwin 15.4.0
13:25:35~$ ava --version
0.15.1
13:25:36~$ npm --version
3.8.3
@jamestalmage
Copy link
Contributor

0.15.2 deployed, should fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants