Skip to content

Commit

Permalink
chore: upgrade next to v13.5.2 and jest unit tests libs
Browse files Browse the repository at this point in the history
  • Loading branch information
dmijatovic committed Sep 23, 2023
1 parent ec6b3a7 commit a24019b
Show file tree
Hide file tree
Showing 4 changed files with 453 additions and 380 deletions.
2 changes: 1 addition & 1 deletion frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ yarn add @mui/material @mui/icons-material @emotion/react @emotion/server @emoti

```bash
# react testing lib
yarn add -D @testing-library/react @testing-library/jest-dom jest jest-environment-jsdom @types/jest
yarn add -D @testing-library/react@latest @testing-library/jest-dom@latest jest@latest jest-environment-jsdom@latest @types/jest@latest
```

### Others
Expand Down
4 changes: 3 additions & 1 deletion frontend/jest.setup.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
// SPDX-FileCopyrightText: 2021 - 2023 Dusan Mijatovic (dv4all)
// SPDX-FileCopyrightText: 2021 - 2023 dv4all
// SPDX-FileCopyrightText: 2022 - 2023 Dusan Mijatovic (dv4all) (dv4all)
// SPDX-FileCopyrightText: 2023 Dusan Mijatovic (Netherlands eScience Center)
// SPDX-FileCopyrightText: 2023 Netherlands eScience Center
//
// SPDX-License-Identifier: Apache-2.0

// used to support fetch with Jest
import 'whatwg-fetch'
// specific
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'

// retry 2 times
jest.retryTimes(2, {
Expand Down
13 changes: 7 additions & 6 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"scripts": {
"dev": "next dev",
"dev:turbo": "next dev --turbo",
"dev:docker": "NODE_ENV=docker NODE_OPTIONS='--inspect=0.0.0.0:9229' next dev",
"build": "next build",
"start": "next start",
Expand Down Expand Up @@ -31,7 +32,7 @@
"cookie": "0.5.0",
"d3": "7.8.2",
"jsonwebtoken": "9.0.0",
"next": "13.4.8",
"next": "13.5.2",
"nprogress": "0.2.0",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand All @@ -43,22 +44,22 @@
},
"devDependencies": {
"@svgr/webpack": "8.0.1",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/jest-dom": "6.1.3",
"@testing-library/react": "14.0.0",
"@types/aos": "3.0.4",
"@types/cookie": "0.5.1",
"@types/d3": "7.4.0",
"@types/jest": "29.5.2",
"@types/jest": "29.5.5",
"@types/jsonwebtoken": "9.0.1",
"@types/node": "20.3.3",
"@types/nprogress": "0.2.0",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"autoprefixer": "10.4.14",
"eslint": "8.46.0",
"eslint-config-next": "13.4.13",
"jest": "29.5.0",
"jest-environment-jsdom": "29.5.0",
"eslint-config-next": "13.5.2",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"postcss": "8.4.24",
"tailwindcss": "3.3.2",
"typescript": "5.1.6",
Expand Down
Loading

0 comments on commit a24019b

Please sign in to comment.