You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[ ] Update `TERM` in `scrapers/cpex-scraper/src/index.ts` and `MPE_SEMESTER` in `website/src/views/mpe/constants.ts` to be the semester you're configuring CPEx for (usually the next semester)
43
-
-[ ] Update the displayed dates in `website/src/views/mpe/MpeContainer.tsx` and any new requirements/descriptions
43
+
-[ ]~~Update the displayed dates in `website/src/views/mpe/MpeContainer.tsx` and any new requirements/descriptions~~ Auto-updated using dates in modreg-schedule.json
44
44
-[ ] Update dates in the ModReg schedule in `website/src/data/modreg-schedule.json`
45
45
-[ ] Enable the `enableCPExforProd` and `showCPExTab` flags in `website/src/featureFlags.ts`
46
46
-[ ] Push onto `cpex-staging` branch (Ensure synced with `master` branch first), then visit https://cpex-staging.nusmods.com/cpex and verify that NUS authentication is working
Copy file name to clipboardExpand all lines: website/README.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -267,7 +267,9 @@ If a community libdef is not available, you can try writing your own and placing
267
267
268
268
### Testing and Linting
269
269
270
-
We use [Jest][jest] with [Enzyme][enzyme] to test our code and React components, [TypeScript][ts] for typechecking, [Stylelint][stylelint] and [ESLint][eslint] using [Airbnb config][eslint-airbnb] and [Prettier][prettier] for linting and formatting.
270
+
We use [Jest][jest] with [Enzyme][enzyme] and [Testing Library][testing-library] to test our code and React components, [TypeScript][ts] for typechecking, [Stylelint][stylelint] and [ESLint][eslint] using [Airbnb config][eslint-airbnb] and [Prettier][prettier] for linting and formatting.
271
+
272
+
**Note: The majority of React tests are written with Enzyme. For new unit tests, please try to use [Testing Library][testing-library] instead!**
271
273
272
274
```sh
273
275
# Run all tests once with code coverage
@@ -295,7 +297,7 @@ $ yarn typecheck
295
297
296
298
We currently have some simple E2E tests set up courtesy of Browserstack using Nightwatch. The purpose of this is mainly to catch major regression in browsers at the older end of our browser support matrix (iOS 11, Safari 11, Edge, Firefox ESR) which can be difficult to test manually.
297
299
298
-
By default the tests are ran against http://staging.nusmods.com, although they can be configured to run against any host, including localhost if you use [Browserstack's local testing feature](https://www.browserstack.com/local-testing#command-line).
300
+
By default the tests are ran against http://latest.nusmods.com, although they can be configured to run against any host, including localhost if you use [Browserstack's local testing feature](https://www.browserstack.com/docs/automate/javascript-testing/local-testing).
299
301
300
302
```sh
301
303
# All commands must include BROWSERSTACK_USER and BROWSERSTACK_ACCESS_KEY env variables
@@ -305,7 +307,7 @@ By default the tests are ran against http://staging.nusmods.com, although they c
0 commit comments