Skip to content

Conversation

@annavik
Copy link
Member

@annavik annavik commented Sep 11, 2023

Fixes #226

Also did some small lint tweaks, so that we can start include scripts for both (frontend) lint and test in pipelines, if we want?

As part of this PR, we also include 2 new libs:

Choice of method and libs is inspired by React Query docs.

@annavik annavik requested a review from mihow September 11, 2023 14:19
@netlify
Copy link

netlify bot commented Sep 11, 2023

Deploy Preview for ami-storybook canceled.

Name Link
🔨 Latest commit 7e62532
🔍 Latest deploy log https://app.netlify.com/sites/ami-storybook/deploys/64fff974d2536900085fa51f

@netlify
Copy link

netlify bot commented Sep 11, 2023

Deploy Preview for ami-web canceled.

Name Link
🔨 Latest commit 7e62532
🔍 Latest deploy log https://app.netlify.com/sites/ami-web/deploys/64fff9745cfc1b0007250b20

@annavik
Copy link
Member Author

annavik commented Sep 11, 2023

@mihow if we want to add to CI pipeline, this is what I think we should run:
yarn lint && yarn run test --watchAll=false (from frontend root)

@mihow
Copy link
Collaborator

mihow commented Sep 12, 2023

I added the linting & tests to the github workflows and split up the frontend & backend tests so you don't have to wait for django stuff on every frontend change. I also added a pre-commit hook for the ESlint checks so you can catch linting errors before you commit them. Installation instructions here if you don't use it already! https://pre-commit.com/

@annavik feel free to update the github workflows as well, I am pretty new to them.

Copy link
Collaborator

@mihow mihow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for so many tests! I think this will help us sleep at night and help us dev without fear!

@annavik annavik merged commit ec1cc4b into main Sep 12, 2023
@annavik annavik deleted the web-ui-auth-related-tests branch September 12, 2023 07:44
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.

Add some tests for auth (FE)

3 participants