allenai / pdf-component-library

51 stars 5 forks source link

Component Unit Tests #9

Closed mjlangan closed 3 years ago

mjlangan commented 3 years ago

The huge line change counts are from updating yarn.lock 😄

This PR does a few things with the ultimate goal of adding component unit tests to the codebase:

mjlangan commented 3 years ago

Should the switch to mocha have any impact on how we write tests going forward?

There shouldn't be any real impacts. Assertions change slightly because jest provided its own expect implementation, and now it's using chai's, but this also brings things more in line with S2.