Skip to content

Dashboard React Tests#16

Merged
simba-git merged 13 commits intodevelopfrom
feature/simba/react-tests
Jul 17, 2020
Merged

Dashboard React Tests#16
simba-git merged 13 commits intodevelopfrom
feature/simba/react-tests

Conversation

@simba-git
Copy link

No description provided.

Simba added 13 commits July 16, 2020 18:21
enzyme allow for shallow rendering in unit tests. It requires typescript
and enzyme-adapter-react-16 to function properly.
DrawerListLink is a React component that choses between an external
a link and a NavLink in the NavDrawer.
We haven't setup pre-commit yet nor CI tests to catch this problem yet.
It was accidently removed in a prior commit.
Fix all automatic vulnerabilities via npm.
external was added as a prop to drawer list by accident. It's a key
in the items array since it applies per nav item, not for an entire
list.
Render all of the NavLists using a single large data object. This
makes things slightly cleaner, easier to change, and easier to test.
serviceWorker is generated by create-react-app and isn't a high
priority to test.
These were not added in a past commit with the same tagline.

It tests both internal and external links.
The TopBar currently doesn't do much, this just takes a snapshot of
the elements that get rendered to check against.
Verifies that NavLists renders all its chidren as expected.
This allows us to catch unexpected changes to the Nav.
This gets more logic out of index.js
@simba-git simba-git merged commit 9325eb8 into develop Jul 17, 2020
@simba-git simba-git deleted the feature/simba/react-tests branch July 17, 2020 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant