Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2021-11-02 13:24:09 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-11-11 12:43:03 +0300
commitc02e2d4b14ba179691decf6d609e28533443a136 (patch)
tree92fde8156ffeaa43037adf94ff41f009259f2706 /package.json
parent11b7b2ace85ec4643037dbea981e92665c44f11b (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.json7
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"