Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Upgrade Jest packages to latest versions in /ui (#4980)
This is preparatory work to upgrade msw, which proved out to be impossible to do (at least for me) with older versions of Jest. Notes about the changes: - The syntax for Jest transformers has changed, updated cssTransform.js accordingly - By default, we don't transform files in node_modules, but we now need to transform a couple dependencies, so we need to un-ignore them in `transformIgnorePatterns` in the Jest config: - @elastic/eui uses CSS keywords not understood by Jest - uuid is an ECMAScript module and needs to be transpiled to CommonJS to be understood by Jest - The transitive nwsapi dependency needs to be pinned to an older version in package.json since the newest versions fail to parse some CSS class names that Elastic UI generates. This workaround was suggested in dperini/nwsapi#139 (comment) Signed-off-by: Harri Lehtola <peruukki@hotmail.com>
- Loading branch information