Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
fix: upgrade deps (#271)
Browse files Browse the repository at this point in the history
* fix: upgrade deps

* fix: tests
  • Loading branch information
spaenleh authored Dec 1, 2023
1 parent 7de0f58 commit b95a04b
Show file tree
Hide file tree
Showing 5 changed files with 889 additions and 2,113 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Create an `.env.development` file with:
VITE_PORT=3001
VITE_API_HOST=http://localhost:3000
VITE_VERSION=latest
VITE_APP_DOMAIN=localhost:3001
VITE_GRAASP_BUILDER_HOST=http://localhost:3111
VITE_SHOW_NOTIFICATIONS=true
VITE_GRAASP_AUT_HOST=http://localhost:3001
Expand All @@ -15,3 +14,16 @@ VITE_RECAPTCHA_SITE_KEY=
```

Generate your recaptcha key from [the reCAPTCHA admin console](https://www.google.com/recaptcha/admin/create)

For running tests locally create a `.env.test` file:

```sh
VITE_PORT=3002
VITE_API_HOST=http://localhost:3636
VITE_VERSION=latest
VITE_GRAASP_BUILDER_HOST=http://localhost:3111
VITE_SHOW_NOTIFICATIONS=true
VITE_GRAASP_AUT_HOST=http://localhost:3001

VITE_RECAPTCHA_SITE_KEY=
```
File renamed without changes.
4 changes: 2 additions & 2 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import setupEvents from '@cypress/code-coverage/task';
import { defineConfig } from 'cypress';

export default defineConfig({
Expand All @@ -15,8 +16,7 @@ export default defineConfig({
API_HOST: process.env.REACT_APP_API_HOST,
},
};
// eslint-disable-next-line @typescript-eslint/no-var-requires
require('@cypress/code-coverage/task')(on, newConfig);
setupEvents(on, newConfig);
return newConfig;
},
baseUrl: 'http://localhost:3001',
Expand Down
55 changes: 28 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@
"Basile Spaenlehauer",
"Alexandre Chau"
],
"type": "module",
"dependencies": {
"@emotion/cache": "11.11.0",
"@emotion/react": "11.11.1",
"@emotion/styled": "11.11.0",
"@graasp/query-client": "2.0.3",
"@graasp/sdk": "3.0.1",
"@graasp/translations": "1.20.1",
"@graasp/query-client": "2.1.0",
"@graasp/sdk": "3.3.0",
"@graasp/translations": "1.21.0",
"@graasp/ui": "4.1.0",
"@mui/icons-material": "5.14.16",
"@mui/icons-material": "5.14.19",
"@mui/lab": "5.0.0-alpha.152",
"@mui/material": "5.14.17",
"@sentry/react": "7.80.1",
"@sentry/tracing": "7.80.1",
"@mui/material": "5.14.19",
"@sentry/react": "7.84.0",
"http-status-codes": "2.3.0",
"qs": "6.11.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-ga4": "2.1.0",
"react-i18next": "13.5.0",
"react-router": "6.18.0",
"react-router-dom": "6.18.0",
"react-router": "6.20.0",
"react-router-dom": "6.20.0",
"react-toastify": "9.1.3",
"stylis": "4.3.0",
"stylis-plugin-rtl": "2.1.1",
Expand All @@ -52,6 +52,7 @@
"hooks:install": "husky install",
"cypress:open": "env-cmd -f ./.env.development cypress open",
"cypress": "concurrently -k -s first \"yarn start:test\" \"yarn cypress:run\"",
"test": "yarn cypress",
"cypress:run": "env-cmd -f ./.env.test cypress run --headless --browser chrome",
"postinstall": "husky install"
},
Expand All @@ -74,38 +75,38 @@
]
},
"devDependencies": {
"@commitlint/cli": "18.4.2",
"@commitlint/config-conventional": "18.4.2",
"@cypress/code-coverage": "3.12.10",
"@testing-library/jest-dom": "6.1.4",
"@testing-library/react": "14.1.0",
"@commitlint/cli": "18.4.3",
"@commitlint/config-conventional": "18.4.3",
"@cypress/code-coverage": "3.12.12",
"@testing-library/jest-dom": "6.1.5",
"@testing-library/react": "14.1.2",
"@testing-library/user-event": "14.5.1",
"@trivago/prettier-plugin-sort-imports": "4.3.0",
"@types/jest": "29.5.8",
"@types/node": "20.9.0",
"@types/jest": "29.5.10",
"@types/node": "20.10.1",
"@types/qs": "6.9.10",
"@types/react": "^18.2.37",
"@types/react-dom": "18.2.15",
"@types/react": "^18.2.39",
"@types/react-dom": "18.2.17",
"@types/react-router-dom": "5.3.3",
"@types/validator": "13.11.6",
"@typescript-eslint/eslint-plugin": "6.11.0",
"@typescript-eslint/parser": "6.11.0",
"@vitejs/plugin-react": "4.1.1",
"@types/validator": "13.11.7",
"@typescript-eslint/eslint-plugin": "6.13.1",
"@typescript-eslint/parser": "6.13.1",
"@vitejs/plugin-react": "4.2.0",
"concurrently": "8.2.2",
"cypress": "13.5.1",
"cypress": "13.6.0",
"env-cmd": "10.1.0",
"eslint": "^8.53.0",
"eslint": "^8.54.0",
"eslint-config-prettier": "9.0.0",
"eslint-config-react-app": "7.0.1",
"eslint-import-resolver-typescript": "3.6.1",
"husky": "8.0.3",
"istanbul-lib-coverage": "3.2.2",
"nyc": "15.1.0",
"prettier": "3.1.0",
"rollup-plugin-visualizer": "5.9.2",
"rollup-plugin-visualizer": "5.9.3",
"standard-version": "9.5.0",
"typescript": "5.2.2",
"vite": "4.5.0",
"typescript": "5.3.2",
"vite": "5.0.4",
"vite-plugin-checker": "0.6.2",
"vite-plugin-istanbul": "5.0.0"
},
Expand Down
Loading

0 comments on commit b95a04b

Please sign in to comment.