TheBrainFamily / wait-for-expect

Wait for expectation to be true, useful for integration and end to end testing. Integral part of react-testing-library.
MIT License
293 stars 31 forks source link

Added babel plugin which adds module exports when doing export default. #9

Closed mbaranovski closed 6 years ago

mbaranovski commented 6 years ago

From Babel@6 module.exports is not exported when doing export default. Added babel plugin which brings it back. This PR solves #8.

Tested it by building the library locally and by importing & requiring waitForExpect in tests from built /lib folder. All of the tests are passing.

lgandecki commented 6 years ago

Works like a charm! Thanks a lot :-) ping @BenBrostoff - please give 1.0 a try :-)