aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-docs/config
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2019-04-15 11:19:06 +0200
committerSonarTech <sonartech@sonarsource.com>2019-04-25 20:21:05 +0200
commit15b6c5780c0a3d27a00e944d9770cf5197b115d2 (patch)
tree33a2086079eea4facfd86cc122487ac8e4348aa1 /server/sonar-docs/config
parent159d8427bd256d7bcc27d8329bcb4baa15131e4b (diff)
downloadsonarqube-15b6c5780c0a3d27a00e944d9770cf5197b115d2.tar.gz
sonarqube-15b6c5780c0a3d27a00e944d9770cf5197b115d2.zip
SONAR-11955 Allow more levels in documentation navigation
Diffstat (limited to 'server/sonar-docs/config')
-rw-r--r--server/sonar-docs/config/jest/SetupJest.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/server/sonar-docs/config/jest/SetupJest.ts b/server/sonar-docs/config/jest/SetupJest.ts
new file mode 100644
index 00000000000..0a0edeb4be2
--- /dev/null
+++ b/server/sonar-docs/config/jest/SetupJest.ts
@@ -0,0 +1,12 @@
+/*
+ * Copyright (C) 2017-2019 SonarSource SA
+ * All rights reserved
+ * mailto:info AT sonarsource DOT com
+ */
+import { GlobalWithFetchMock } from 'jest-fetch-mock';
+
+const customGlobal: GlobalWithFetchMock = global as GlobalWithFetchMock;
+
+customGlobal.fetch = require('jest-fetch-mock');
+
+customGlobal.fetchMock = customGlobal.fetch;