by notapenny · 4y ago · 0 comments
Kinda curious to learn how they enforced directory structures. I know now they co-locate tests, but IIRC CRA always used jest and with jest you just set the globs you want to use in the config file. Hardly hardcoded or strictly enforced, but I could be wrong.
The default templates are just a single folder, with tests located adjacent to their source files.
CRA configures jest to look for test files in arc/, but let's users override that.
https://github.com/facebook/create-react-app/tree/main/packa...
https://github.com/facebook/create-react-app/tree/main/packa...