diff options
author | Azul <azul@riseup.net> | 2021-11-02 13:24:09 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-11-11 12:43:03 +0300 |
commit | c02e2d4b14ba179691decf6d609e28533443a136 (patch) | |
tree | 92fde8156ffeaa43037adf94ff41f009259f2706 /package.json | |
parent | 11b7b2ace85ec4643037dbea981e92665c44f11b (diff) |
tests: fix dependencies for tests
Tests were failing but we did not notice because they did not run in ci.
In particular:
* jest-environment-jsdom-fourteen is outdated with node 12.
Use `jest-environment-jsdom` instead.
* `jest-vue` used `babel-core` 6.x instead of babel 7.
Install `babel-core@bridge` wo make sure babel 7 is available as `babel-core`.
* TipTap wants `prosemirror-tables` > 1.0 but prosemirror usils provides 0.9.6:
https://github.com/ueberdosis/tiptap/issues/316#issuecomment-801775786
Fixed by `npm i -S prosemirror-utils@^1.0.0-0`.
Tests are still failing for other reasons.
Signed-off-by: Azul <azul@riseup.net>
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/package.json b/package.json index b7f9c3edd..aa1f4d435 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "prosemirror-schema-list": "^1.1.6", "prosemirror-state": "^1.3.4", "prosemirror-transform": "^1.3.3", - "prosemirror-utils": "^0.9.6", + "prosemirror-utils": "^1.0.0-0", "prosemirror-view": "^1.21.0", "proxy-polyfill": "^0.3.2", "tiptap": "^1.32.2", @@ -71,15 +71,16 @@ "@nextcloud/stylelint-config": "^1.0.0-beta.0", "@nextcloud/webpack-vue-config": "^4.1.0", "@vue/test-utils": "^1.2.2", + "babel-core": "^7.0.0-bridge.0", "cypress": "^8.7.0", "jest": "^27.3.1", - "jest-environment-jsdom-fourteen": "^1.0.1", + "jest-environment-jsdom": "^27.3.1", "jest-serializer-vue": "^2.0.2", "vue-jest": "^3.0.7" }, "jest": { "verbose": true, - "testEnvironment": "jest-environment-jsdom-fourteen", + "testEnvironment": "jest-environment-jsdom", "moduleFileExtensions": [ "js", "vue" |