From c02e2d4b14ba179691decf6d609e28533443a136 Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 2 Nov 2021 11:24:09 +0100 Subject: 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 --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'package.json') 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" -- cgit v1.2.3