]> source.dussan.org Git - sonarqube.git/commitdiff
Bump to sonar-ui-common@1.0.2
authorPhilippe Perrin <philippe.perrin@sonarsource.com>
Fri, 15 May 2020 16:02:23 +0000 (18:02 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 27 May 2020 20:05:47 +0000 (20:05 +0000)
server/sonar-docs/package.json
server/sonar-docs/yarn.lock
server/sonar-web/config/jest/SetupTestEnvironment.ts
server/sonar-web/jest.config.js
server/sonar-web/package.json
server/sonar-web/yarn.lock

index cfdcbc2fa757e48a733bf9f491d6fbfa8297141b..7995c79a0661a24e86154f11e2388d13a278173e 100644 (file)
@@ -21,7 +21,7 @@
     "react-dom": "16.13.0",
     "react-helmet": "5.2.1",
     "react-typography": "0.16.19",
-    "sonar-ui-common": "1.0.0",
+    "sonar-ui-common": "1.0.2",
     "typography": "0.16.19"
   },
   "devDependencies": {
     "singleQuote": true
   },
   "jest": {
-    "globals": {
-      "ts-jest": {
-        "diagnostics": {
-          "ignoreCodes": [
-            151001
-          ]
-        }
-      }
-    },
     "moduleFileExtensions": [
       "ts",
       "tsx",
index 66034d357049a4bba0085d6522ec4b0f7c9303dd..31bb6c836933228f46447b0b33a9a0e49dd71bcf 100644 (file)
@@ -12736,10 +12736,10 @@ sockjs@0.3.19:
     faye-websocket "^0.10.0"
     uuid "^3.0.1"
 
-sonar-ui-common@1.0.0:
-  version "1.0.0"
-  resolved "https://repox.jfrog.io/repox/api/npm/npm/sonar-ui-common/-/sonar-ui-common-1.0.0.tgz#060bce001925fcce1b86696058819941d3883c63"
-  integrity sha1-BgvOABkl/M4bhmlgWIGZQdOIPGM=
+sonar-ui-common@1.0.2:
+  version "1.0.2"
+  resolved "https://repox.jfrog.io/repox/api/npm/npm/sonar-ui-common/-/sonar-ui-common-1.0.2.tgz#a2ae3310e70898696b236e2e53c6a8e3f7e235af"
+  integrity sha1-oq4zEOcImGlrI24uU8ao4/fiNa8=
   dependencies:
     "@types/react-select" "1.2.6"
     classnames "2.2.6"
index e60b3048b4cb80e87276c6c30af84a419ae6ee59..afee3317208b2db74e4ac231c47e62042cbc0fc8 100644 (file)
@@ -18,7 +18,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 
+import ThemeContext from 'sonar-ui-common/components/theme';
 import SonarUiCommonInitializer, { DEFAULT_LOCALE } from 'sonar-ui-common/helpers/init';
+import * as theme from '../../src/main/js/app/theme';
 
 const content = document.createElement('div');
 content.id = 'content';
@@ -29,3 +31,8 @@ const baseUrl = '';
 SonarUiCommonInitializer.setLocale(DEFAULT_LOCALE)
   .setMessages({})
   .setUrlContext(baseUrl);
+
+// Hack : override the default value of the context used for theme by emotion
+// This allows tests to get the theme value without specifiying a theme provider
+ThemeContext['_currentValue'] = theme;
+ThemeContext['_currentValue2'] = theme;
index 37a3d45c5ad6b9c4eb7c3675df10e8e9221b022d..6b1d649224e89cb225ffa75eb1447c05aa05f23d 100644 (file)
@@ -4,9 +4,7 @@ module.exports = {
   coverageReporters: ['lcovonly', 'text'],
   globals: {
     'ts-jest': {
-      diagnostics: {
-        ignoreCodes: [151001]
-      }
+      diagnostics: false
     }
   },
   moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
index 43696825ec1493438f3710623f33daca7c38910f..16f87f3472ed45b2b394ffbad7d286a7fd6e1b87 100644 (file)
@@ -38,7 +38,7 @@
     "rehype-slug": "3.0.0",
     "remark-custom-blocks": "2.5.0",
     "remark-rehype": "6.0.0",
-    "sonar-ui-common": "1.0.0",
+    "sonar-ui-common": "1.0.2",
     "unist-util-visit": "2.0.2",
     "valid-url": "1.0.9",
     "whatwg-fetch": "3.0.0"
index 65dfc107c1067c2e056402d684bc2f9098d36adb..25f74125affab25311366511835603887599fb7f 100644 (file)
@@ -10522,10 +10522,10 @@ sockjs@0.3.19:
     faye-websocket "^0.10.0"
     uuid "^3.0.1"
 
-sonar-ui-common@1.0.0:
-  version "1.0.0"
-  resolved "https://repox.jfrog.io/repox/api/npm/npm/sonar-ui-common/-/sonar-ui-common-1.0.0.tgz#060bce001925fcce1b86696058819941d3883c63"
-  integrity sha1-BgvOABkl/M4bhmlgWIGZQdOIPGM=
+sonar-ui-common@1.0.2:
+  version "1.0.2"
+  resolved "https://repox.jfrog.io/repox/api/npm/npm/sonar-ui-common/-/sonar-ui-common-1.0.2.tgz#a2ae3310e70898696b236e2e53c6a8e3f7e235af"
+  integrity sha1-oq4zEOcImGlrI24uU8ao4/fiNa8=
   dependencies:
     "@types/react-select" "1.2.6"
     classnames "2.2.6"