Closed reefdog closed 4 years ago
@slifty Okay! I implemented the suggestion to create a central shared tooling utility for extracting package.json
's module-alias
configuration and transforming it to a tool-specific configuration, then using that for ESLint and Jest. Let me know what you think…
Oops, just asked for a re-review, but "no need for re-review". Going!
Description
We use
module-alias
to let us absolutely import modules from defined roots. However, Jest doesn’t pick up these defined roots automatically; instead, we need to replicate them in our Jest configuration.This PR adds that configuration. Note that Jest uses regex and suggests you include beginning/end anchors for explicitness, so we do.
Due Diligence Checklist
Steps to Test
yarn test
Deploy Notes
None.
Related Issues
Resolves #35