atlassian-labs / react-resource-router

Configuration driven routing solution for React SPAs that manages route matching, data fetching and progressive rendering
https://atlassian-labs.github.io/react-resource-router
Apache License 2.0
202 stars 28 forks source link

Add support for colocated tests #182

Closed MonicaOlejniczak closed 1 year ago

MonicaOlejniczak commented 1 year ago

The current testing file structure is dated, and does not scale because the folder structure in src must be duplicated in the src/__tests__ directory. These changes modify the build setup to enable *.test.tsx? and test.tsx? files anywhere within the src folder, so that tests can be colocated with the source file. This should enable easier refactoring in the future as well.

Changes

Notes

The build output is the same between master and this branch