From 32e10c9503eeea34aeb6bb6bc5019199a6f596ec Mon Sep 17 00:00:00 2001
From: Michael Behrisch <m.behrisch@uu.nl>
Date: Thu, 15 Dec 2022 16:01:06 +0100
Subject: [PATCH] fix: testing to fix ci issue with graph-layout

---
 .gitlab-ci.yml                             | 2 +-
 libs/shared/graph-layout/package.json      | 6 +-----
 libs/shared/graph-layout/src/setupTests.js | 1 +
 package.json                               | 5 ++++-
 4 files changed, 7 insertions(+), 7 deletions(-)
 create mode 100644 libs/shared/graph-layout/src/setupTests.js

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 647402e21..4ab8109ae 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -43,7 +43,7 @@ test:
   extends: .distributed
   script:
     - apk add --update git
-    - yarn nx affected --base=HEAD~1 --target=test --parallel --max-parallel=4
+    - yarn nx affected --base=HEAD~1 --target=test --parallel --max-parallel=12
 
 build:
   stage: build
diff --git a/libs/shared/graph-layout/package.json b/libs/shared/graph-layout/package.json
index 608983d81..a448b9c07 100644
--- a/libs/shared/graph-layout/package.json
+++ b/libs/shared/graph-layout/package.json
@@ -15,10 +15,6 @@
     "graphology-layout-forceatlas2": "^0.8.2",
     "graphology-layout-noverlap": "^0.4.2",
     "web-worker": "^1.2.0"
-  },
-  "devDependencies": {
-    "canvas": "^2.9.1",
-    "graphology-generators": "^0.11.2",
-    "jest-canvas-mock": "^2.4.0"
   }
+  
 }
diff --git a/libs/shared/graph-layout/src/setupTests.js b/libs/shared/graph-layout/src/setupTests.js
new file mode 100644
index 000000000..0f9973fbc
--- /dev/null
+++ b/libs/shared/graph-layout/src/setupTests.js
@@ -0,0 +1 @@
+import 'jest-canvas-mock';
\ No newline at end of file
diff --git a/package.json b/package.json
index 8f417b0ea..656c43ea2 100644
--- a/package.json
+++ b/package.json
@@ -84,6 +84,9 @@
     "react-test-renderer": "17.0.2",
     "ts-jest": "27.0.5",
     "typescript": "~4.5.2",
-    "url-loader": "^3.0.0"
+    "url-loader": "^3.0.0",
+    "canvas": "^2.9.1",
+    "graphology-generators": "^0.11.2",
+    "jest-canvas-mock": "^2.4.0"
   }
 }
-- 
GitLab