464 implement frontend javascript testing#533
Conversation
|
Fixes #464 |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
@AdrianDAlessandro I moved the node documentation to a separate README.md inside the node directory. This seems to have broken the mkdocs build. I tried looking through the code and docs but I can't see how to add this file. |
f62472c to
053c4be
Compare
|
@AdrianDAlessandro FYI I've rebased this onto the main branch. |
AdrianDAlessandro
left a comment
There was a problem hiding this comment.
I'll be happy to review and merge this if you can rebase it onto main. Would be good to merge this before looking at moving the node configs into a sub-directory
053c4be to
f7a61a7
Compare
|
@AdrianDAlessandro this is rebased back onto main and should be ready to merge |
AdrianDAlessandro
left a comment
There was a problem hiding this comment.
Overall, this looks really good. I've run the tests and see that they pass. I haven't individually reviewed the tests because I am not likely to understand them. My only concern is that they might be too prescriptive. So if we make changes to the radial plots, it might cause many failures and make it difficult to update them all.
I've made some other comments, but they might be out of my naivety of best practice with node/npm/vitest, so please take it all with a grain of salt.
Thanks @AdrianDAlessandro I'll take a look. |
f7a61a7 to
35078c1
Compare
5eaa23d to
e047ebe
Compare
| ```bash | ||
| npm run styles:expanded | ||
| ``` | ||
| See [node/README.md](https://github.com/direct-framework/direct-webapp/blob/main/node/README.md) for details on working with the NPM-based frontend asset pipeline. |
There was a problem hiding this comment.
🚫 [linkspector] reported by reviewdog 🐶
Cannot reach https://github.com/direct-framework/direct-webapp/blob/main/node/README.md Status: 404
There was a problem hiding this comment.
This doesn't seem to be failing anymore despite the change in #740 not being included in this PR.
Co-authored-by: Adrian D'Alessandro <a.dalessandro@imperial.ac.uk>
- Improved tests that had just been checking the SVG rendered - Made some tests clearer - some tidying up of class names to use snake case - moved default config to default file
57d4f92 to
69c60de
Compare
|
@AdrianDAlessandro I've fixed the lint and build issues so this should be ready to merge now. |
|
@sbland I have just pushed a change to fix the issue with the docs failing |
AdrianDAlessandro
left a comment
There was a problem hiding this comment.
This all looks good to me now!
Description
Some tidying up of the frontend node code related to #529
Fixes #464
Type of change
Key checklist
python -m pytest)mkdocs serve)pre-commit run --all-files)Further checks