From fa31e44e13af643d3251564e85cb4945ef5829b5 Mon Sep 17 00:00:00 2001 From: Daiki Ihara Date: Fri, 21 Dec 2018 17:34:07 -0800 Subject: [PATCH] Fix test ci reporter (#22749) Summary: Hi Team! This PR fixes #22741 Thanks for labeling as Good First Issue! Changelog: ---------- [General] [Fixed] - fix deprecation warning of testResultsProcessor flag in test-ci Pull Request resolved: https://github.com/facebook/react-native/pull/22749 Differential Revision: D13542419 Pulled By: hramos fbshipit-source-id: 84f33329a6b9431ed1db843a99e7db7dbeda5361 --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 10b32f0a6..de234e578 100644 --- a/package.json +++ b/package.json @@ -98,6 +98,10 @@ "/Libraries/react-native/" ] }, + "jest-junit": { + "outputDirectory": "reports/junit", + "outputName": "js-test-results.xml" + }, "main": "Libraries/react-native/react-native-implementation.js", "files": [ ".flowconfig", @@ -129,7 +133,7 @@ "scripts": { "start": "node cli.js start", "test": "jest", - "test-ci": "JEST_JUNIT_OUTPUT=\"reports/junit/js-test-results.xml\" jest --maxWorkers=2 --ci --testResultsProcessor=\"jest-junit\"", + "test-ci": "jest --maxWorkers=2 --ci --reporters=\"default\" --reporters=\"jest-junit\"", "flow": "flow", "flow-check-ios": "flow check", "flow-check-android": "flow check --flowconfig-name .flowconfig.android",