Skip to content

Commit

Permalink
Client test additions (#198)
Browse files Browse the repository at this point in the history
* move PrivateRoute to separate directory for consistency

* move userAppselector out of private route and pass as proops

* remove PrivateRoute test for now, clean up HtCard test

* add HtTooltip base test

* add mock api calls, not working Home.spec.tsx

* reconfig to allow REACT_APP_HT_ENV to be 'PROD', 'DEV', or 'TEST', initite MSW if 'TEST'

* little clean up

* update test-wrapper, inital test for Home component

* add simple tests for login and home components using new renderWithProvider wrapper function

* fix auth returns user pk instead of username

* fix bug fixes related to logout, strip more POC source

* add new Site type definition, added a test for, and cleaned up the SiteList component
  • Loading branch information
dpgraham4401 authored Nov 22, 2022
1 parent e13ed52 commit 1e55d94
Show file tree
Hide file tree
Showing 45 changed files with 2,537 additions and 249 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test_client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ jobs:

- name: Test Node.js-${{ matrix.node }}
run: npm test
env:
REACT_APP_HT_ENV: "TEST"
3 changes: 1 addition & 2 deletions .github/workflows/test_server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
defaults:
run:
working-directory: ./server
env:
HT_SECRET_KEY: ${{ HT_SECRET_KEY }}
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
Expand All @@ -36,6 +34,7 @@ jobs:
- name: Run Tests
env:
HT_SECRET_KEY: "django-insecure-%btjqoun@6ps$e@8bw$48s+!x1e4aiz&5p2nrf6cmiw4)jsx5d"
HT_CORS_DOMAIN: http://localhost:3000
HT_TIMEZONE: America/New_York
HT_HOST: localhost
Expand Down
6 changes: 4 additions & 2 deletions .idea/runConfigurations/Run_Client.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions .idea/runConfigurations/Test_Client.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/scopes/client.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions client/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ README.md
.prettierignore
.prettierrc.json
node_modules/
**/*.spec.tsx
**/*.spec.ts
Loading

0 comments on commit 1e55d94

Please sign in to comment.