Skip to content

fix to run all tests in ShallowWrapper-spec.jsx#1741

Merged
ljharb merged 1 commit intoenzymejs:masterfrom
koba04:run-all-tests
Aug 9, 2018
Merged

fix to run all tests in ShallowWrapper-spec.jsx#1741
ljharb merged 1 commit intoenzymejs:masterfrom
koba04:run-all-tests

Conversation

@koba04
Copy link
Copy Markdown
Contributor

@koba04 koba04 commented Aug 9, 2018

Currently, the other tests except merging props don't run by npm run test:only.
I guess that describe.only intend to avoid failing by should call componentWillReceiveProps for new renders so I've skiped the test.

https://travis-ci.org/airbnb/enzyme/jobs/413839140

expect(wrapper.find('.bar')).to.have.lengthOf(1);
});

describe.only('merging props', () => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops, thanks :-D

});

it('should call componentWillReceiveProps for new renders', () => {
it.skip('should call componentWillReceiveProps for new renders', () => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be passing :-/ i'll look into it

@ljharb
Copy link
Copy Markdown
Member

ljharb commented Aug 9, 2018

I was able to unskip that test, and everything still passes.

@ljharb ljharb merged commit 18616fd into enzymejs:master Aug 9, 2018
@koba04
Copy link
Copy Markdown
Contributor Author

koba04 commented Aug 9, 2018

Thanks!

@koba04 koba04 deleted the run-all-tests branch August 9, 2018 23:22
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

Successfully merging this pull request may close these issues.

2 participants