polaris icon indicating copy to clipboard operation
polaris copied to clipboard

Add jest-enzyme for cleaner tests

Open kvendrik opened this issue 8 years ago • 6 comments

https://github.com/Shopify/web/pull/7504/files#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R164

kvendrik avatar Oct 18 '18 20:10 kvendrik

Links for the lazy (i.e. me):

jest-enzyme readme: https://github.com/FormidableLabs/enzyme-matchers/tree/master/packages/jest-enzyme#readme

Leveraging the jest-environment-enzyme environment means we can get rid of some enzyme config from our tests/setup.ts file too.

BPScott avatar Oct 24 '18 19:10 BPScott

Moving this across to the new repo.

BPScott avatar Nov 01 '18 20:11 BPScott

Hey all, just re-labelling this based on our new labelling guidelines.

If I got it wrong, please feel free to change it. If you're tackling this, you can move it into "In Progress" in the backlog.

yourpalsonja avatar Apr 17 '19 00:04 yourpalsonja

Hey @kvendrik @BPScott should this still be open?

danrosenthal avatar Aug 19 '19 14:08 danrosenthal

If we're looking to move to @shopify/react-testing then it doesn't serve much value, so can be closed. As @kvendrik opened it I'd like him to confirm that he's happy to close it though.

BPScott avatar Aug 19 '19 14:08 BPScott

@BPScott makes sense lets 📕 it!

kvendrik avatar Sep 03 '19 13:09 kvendrik