aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/package.json
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-08-22 17:07:33 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-08-25 11:05:36 +0200
commitdb6ad16520b210083bd9026a3648bb5211c10c28 (patch)
treed2455fde919bf6f154f64753683b1d6f4d491e15 /server/sonar-web/package.json
parentf6276b3b6fecce2b160ed8bdc62a3e87439249e4 (diff)
downloadsonarqube-db6ad16520b210083bd9026a3648bb5211c10c28.tar.gz
sonarqube-db6ad16520b210083bd9026a3648bb5211c10c28.zip
Use date parsing function from date-fns instead of new Date()
Diffstat (limited to 'server/sonar-web/package.json')
-rw-r--r--server/sonar-web/package.json18
1 files changed, 5 insertions, 13 deletions
diff --git a/server/sonar-web/package.json b/server/sonar-web/package.json
index d95aba437bc..679b0c8538a 100644
--- a/server/sonar-web/package.json
+++ b/server/sonar-web/package.json
@@ -17,6 +17,7 @@
"d3-scale": "1.0.5",
"d3-selection": "1.0.5",
"d3-shape": "1.0.6",
+ "date-fns": "1.28.5",
"escape-html": "1.0.3",
"handlebars": "2.0.0",
"history": "3.3.0",
@@ -44,6 +45,7 @@
},
"devDependencies": {
"@types/classnames": "2.2.0",
+ "@types/date-fns": "2.6.0",
"@types/enzyme": "2.8.6",
"@types/escape-html": "0.0.19",
"@types/jest": "20.0.7",
@@ -129,16 +131,8 @@
],
"jest": {
"coverageDirectory": "<rootDir>/target/coverage",
- "coveragePathIgnorePatterns": [
- "<rootDir>/node_modules",
- "<rootDir>/tests"
- ],
- "moduleFileExtensions": [
- "ts",
- "tsx",
- "js",
- "json"
- ],
+ "coveragePathIgnorePatterns": ["<rootDir>/node_modules", "<rootDir>/tests"],
+ "moduleFileExtensions": ["ts", "tsx", "js", "json"],
"moduleNameMapper": {
"^.+\\.(hbs|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/config/jest/FileStub.js",
"^.+\\.css$": "<rootDir>/config/jest/CSSStub.js"
@@ -147,9 +141,7 @@
"<rootDir>/config/polyfills.js",
"<rootDir>/config/jest/SetupTestEnvironment.js"
],
- "snapshotSerializers": [
- "enzyme-to-json/serializer"
- ],
+ "snapshotSerializers": ["enzyme-to-json/serializer"],
"testPathIgnorePatterns": [
"<rootDir>/node_modules",
"<rootDir>/src/main/webapp",