diff options
author | Jeremy Davis <jeremy.davis@sonarsource.com> | 2021-11-16 18:15:09 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-11-17 20:03:38 +0000 |
commit | f5394b18b6361d8c95cc5a5977fa6d8f3f8121f4 (patch) | |
tree | 0481b58d4b5d596ce3c941faa31c457995d87913 /server/sonar-web/config | |
parent | 6506e4f66e888860d3ab205d016ec4b48783f0ff (diff) | |
download | sonarqube-f5394b18b6361d8c95cc5a5977fa6d8f3f8121f4.tar.gz sonarqube-f5394b18b6361d8c95cc5a5977fa6d8f3f8121f4.zip |
SONAR-15633 Fix test reporting for extensions
Diffstat (limited to 'server/sonar-web/config')
-rw-r--r-- | server/sonar-web/config/jest/ElasticSearchReporter.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/sonar-web/config/jest/ElasticSearchReporter.js b/server/sonar-web/config/jest/ElasticSearchReporter.js index 6610879ae0d..4e49b29f213 100644 --- a/server/sonar-web/config/jest/ElasticSearchReporter.js +++ b/server/sonar-web/config/jest/ElasticSearchReporter.js @@ -19,9 +19,7 @@ */ /* eslint-disable no-console */ - -const fse = require('fs-extra'); -const { tokenToString } = require('typescript'); +const fs = require('fs'); const ES_ITEM_CATEGORY = 'Validate-UT-Frontend'; const ES_ITEM_KIND = 'testcase'; @@ -40,7 +38,7 @@ module.exports = class ElasticSearchReporter { writeToFile(data) { try { - fse.writeJsonSync(this.outputFilepath, data); + fs.writeFileSync(this.outputFilepath, JSON.stringify(data)); } catch (e) { console.error(e); } |