Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
7c0c29f
refactor: extract optimiser lesson option management and add unit tests
leslieyip02 Jul 8, 2025
2923eaf
refactor: extract unassigned lesson option filtering and add unit tests
leslieyip02 Jul 9, 2025
f2c2dc1
refactor: move optimiser test defaults into test-utils
leslieyip02 Jul 9, 2025
8a08307
feat: add optimiser button unit tests
leslieyip02 Jul 9, 2025
732602e
feat: add optimiser results unit tests
leslieyip02 Jul 9, 2025
785c350
refactor: WIP refactor optimiser form
leslieyip02 Jul 9, 2025
cf91541
refactor: update optimiser form styles
leslieyip02 Jul 10, 2025
dab12c0
feat: add format unit tests
leslieyip02 Jul 10, 2025
e4c69d5
feat: add optimiser form unit tests
leslieyip02 Jul 10, 2025
6a3d2ae
fix: revert api path
leslieyip02 Jul 10, 2025
a95b5bd
fix: set difference compatibility
leslieyip02 Jul 10, 2025
75eca0b
fix: optimiser free day toggle
leslieyip02 Jul 10, 2025
6729d4f
lint: remove unused import
leslieyip02 Jul 10, 2025
d4ae9fe
fix: update style issues
leslieyip02 Jul 12, 2025
43c957b
fix: optimiser tooltip icon wrap
leslieyip02 Jul 12, 2025
37ed022
fix: update styles
leslieyip02 Jul 20, 2025
bb7721f
refactor: replace enzyme with testing library
leslieyip02 Jul 20, 2025
577b167
fix: set difference compatibility
leslieyip02 Jul 20, 2025
e119719
lint: remove unused import
leslieyip02 Jul 10, 2025
63ed0cc
fix: remove hard coded value
leslieyip02 Jul 20, 2025
999c24e
Merge branch 'master' into refactor/add-optimiser-unit-tests
leslieyip02 Jul 24, 2025
9e005a5
fix: adjust styles
leslieyip02 Jul 24, 2025
bf77ba3
Merge branch 'master' into refactor/add-optimiser-unit-tests
leslieyip02 Aug 4, 2025
487c717
Merge branch 'master' into refactor/add-optimiser-unit-tests
ravern Aug 15, 2025
c2ec4ed
Merge branch 'master' into refactor/add-optimiser-unit-tests
ravern Aug 17, 2025
b41d7a4
fix: update dropdown style
leslieyip02 Aug 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ If a community libdef is not available, you can try writing your own and placing

### Testing and Linting

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.
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.

**Note: The majority of React tests are written with Enzyme. For new unit tests, please try to use [Testing Library][testing-library] instead!**

```sh
# Run all tests once with code coverage
Expand Down Expand Up @@ -404,6 +406,7 @@ Components should keep their styles and tests in the same directory with the sam
[bootstrap]: https://getbootstrap.com/
[jest]: https://facebook.github.io/jest/
[enzyme]: http://airbnb.io/enzyme/
[testing-library]: https://testing-library.com/docs/react-testing-library/intro/
[ts]: https://www.typescriptlang.org/
[eslint]: https://eslint.org/
[svgr]: https://github.com/smooth-code/svgr
Expand Down
4 changes: 2 additions & 2 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
"@svgr/webpack": "8.1.0",
"@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "6.6.3",
"@testing-library/react": "16.1.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "14.5.2",
"@types/body-scroll-lock": "2.6.2",
"@types/enzyme": "3.10.18",
Expand Down
Loading