Dev Deps: Bump Jest to 29.4.1

This commit bumps Jest to 29.4.1. This requires adding two additional
development dependencies.

As of Jest 28 `jest-environment-jsdom` is no longer shipped with Jest by
default, and has therefore been added as a dependency.

`uuid` was also added as a dev dependency. Jest 29 introduced some
compatibility issues with `uuid` that were fixed in `uuid@9`:
https://github.com/uuidjs/uuid/issues/451#issuecomment-1206284480

We import and use `uuid` in our tests, but as it was a dependencies
dependency we did not control which version was installed. Version 8
(what was installed) causes Jest tests to fail like so:
```
    SyntaxError: Unexpected token 'export'

    > 29 | import { v4 as uuidv4 } from 'uuid';
```
This commit is contained in:
lucasgarfield 2023-02-07 08:18:54 +01:00 committed by Sanne Raymaekers
parent d4eb5f78f0
commit 0e4d12bae0
2 changed files with 2531 additions and 1813 deletions

View file

@ -73,7 +73,8 @@
"git-revision-webpack-plugin": "5.0.0",
"history": "5.3.0",
"identity-obj-proxy": "3.0.0",
"jest": "27.5.1",
"jest": "29.4.1",
"jest-environment-jsdom": "29.4.1",
"jest-canvas-mock": "2.4.0",
"npm-run-all": "4.1.5",
"postcss-scss": "4.0.6",
@ -83,6 +84,7 @@
"sass-loader": "13.0.2",
"stylelint": "14.16.1",
"stylelint-config-recommended-scss": "6.0.0",
"uuid": "9.0.0",
"webpack-bundle-analyzer": "4.7.0"
},
"scripts": {