jest-teamcity
Advanced tools
Comparing version 1.9.0 to 1.10.0
@@ -56,6 +56,2 @@ const consoleOutput = [ | ||
afterAll(() => { | ||
console.log = consoleFn; | ||
}); | ||
describe("module", () => { | ||
@@ -62,0 +58,0 @@ it("enabled (with TEAMCITY_VERSION)", () => { |
@@ -127,3 +127,3 @@ "use strict"; | ||
if (testFile.testExecError && testFile.testResults.length === 0) { | ||
if (testFile.testExecError) { | ||
suites[filename] = suites[filename] || {}; | ||
@@ -130,0 +130,0 @@ suites[filename]['_tests_'] = [{ |
{ | ||
"name": "jest-teamcity", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"description": "Teamcity Reporter for Jest Testing framework", | ||
@@ -9,4 +9,4 @@ "homepage": "https://github.com/itereshchenkov/jest-teamcity", | ||
"devDependencies": { | ||
"jest": "^26.4.2", | ||
"prettier": "^2.1.2" | ||
"jest": "^27.0.6", | ||
"prettier": "^2.3.2" | ||
}, | ||
@@ -13,0 +13,0 @@ "scripts": { |
@@ -19,10 +19,8 @@ # jest-teamcity | ||
Put this into jest configuration file or package.json | ||
Add this into the jest configuration file: | ||
```javascript | ||
"jest": { | ||
"reporters": ["default", "jest-teamcity"] | ||
} | ||
"reporters": ["default", "jest-teamcity"] | ||
``` | ||
The reporter is enabled only if `TEAMCITY_VERSION` variable is set. It should work in TeamCity by default. | ||
The reporter is enabled only if `TEAMCITY_VERSION` environment variable is set. It should work in TeamCity by default. | ||
@@ -42,4 +40,6 @@ To be able to run the tests with the reporter locally, environment variable should be set: | ||
With this configuration, you can run the tests with `npm test`. If the `TEAMCITY_VERSION` environment variable is set, it produces the output in TeamCity's format. Otherwise, standard jest output is produced. | ||
### License | ||
MIT © [Ivan Tereshchenkov] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23097
396