From 67c820d379e6a61d7d60eb413b89da30e4e28c0c Mon Sep 17 00:00:00 2001 From: Keith Stevens Date: Wed, 18 Jan 2023 15:20:53 +0900 Subject: [PATCH 1/3] Moving the page tests into the pages directory to simplify tab completion --- website/src/{pages.test => pages}/about.test.tsx | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename website/src/{pages.test => pages}/about.test.tsx (100%) diff --git a/website/src/pages.test/about.test.tsx b/website/src/pages/about.test.tsx similarity index 100% rename from website/src/pages.test/about.test.tsx rename to website/src/pages/about.test.tsx From 04b14bb24b334ee308cb30e21ecb42e39930ec04 Mon Sep 17 00:00:00 2001 From: Keith Stevens Date: Wed, 18 Jan 2023 15:31:31 +0900 Subject: [PATCH 2/3] Moving the test file to a different directory --- website/src/{pages => test_pages}/about.test.tsx | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename website/src/{pages => test_pages}/about.test.tsx (100%) diff --git a/website/src/pages/about.test.tsx b/website/src/test_pages/about.test.tsx similarity index 100% rename from website/src/pages/about.test.tsx rename to website/src/test_pages/about.test.tsx From 289d52e348d235265e51e2a7f35f3384f1f1c0ba Mon Sep 17 00:00:00 2001 From: Keith Stevens Date: Wed, 18 Jan 2023 15:32:36 +0900 Subject: [PATCH 3/3] Adding a README explaining directory test structure --- website/src/test_pages/README.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 website/src/test_pages/README.md diff --git a/website/src/test_pages/README.md b/website/src/test_pages/README.md new file mode 100644 index 00000000..5e3e27a7 --- /dev/null +++ b/website/src/test_pages/README.md @@ -0,0 +1,4 @@ +# Page Tests + +Put all page tests in this directory with the patter `MyPage.test.jsx`. We can't place them in `src/pages` due to how +NextJS generates page routes.