Closed mjlangan closed 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.
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:
allowSyntheticDefaultImports
in tsconfig because mocha does not like those imports (and you get code that works in the browser/webpack but not in tests)