Move all the frontend test files to a tests folder that mirrors the frontend structure.
For example: right now we have src/frontend/components/action-button/ and that folder has action-button.test.tsx and action-button.tsx. We want to make it so that we have src/frontend/components/action-button.tsx and src/frontend/tests/components/action-button.test.tsx.
If moving the test file would ever result in a folder that has only one file in it (like the tsx file in the above example), then move the file out of the folder and delete the folder since it is now redundant.
(see #770 for an explanation of why we want to do this)
Background
need to know how to move files and fix imports
Proposed Solution
create a folder tests in the path src/frontend/tests/
move each test file into tests to mirror the structure of the frontend
make sure imports in the test files get fixed (either automatically by VSCode or manually -- should be automatic tho)
Description
Move all the frontend test files to a
tests
folder that mirrors the frontend structure.For example: right now we have
src/frontend/components/action-button/
and that folder hasaction-button.test.tsx
andaction-button.tsx
. We want to make it so that we havesrc/frontend/components/action-button.tsx
andsrc/frontend/tests/components/action-button.test.tsx
.If moving the test file would ever result in a folder that has only one file in it (like the tsx file in the above example), then move the file out of the folder and delete the folder since it is now redundant.
(see #770 for an explanation of why we want to do this)
Background
need to know how to move files and fix imports
Proposed Solution
tests
in the pathsrc/frontend/tests/
tests
to mirror the structure of the frontendMocks
No response