Socket
Socket
Sign inDemoInstall

jest-teamcity

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-teamcity - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

.github/workflows/package.yml

3

__tests__/data.json

@@ -13,5 +13,6 @@ [

{ "ancestorTitles": ["path2", "to", "test3"], "title": "title3", "status": "passed", "duration": 123 },
{ "ancestorTitles": ["path2", "to", "test4"], "title": "title4", "status": "failed", "duration": 123 }
{ "ancestorTitles": ["path2", "to", "test4"], "title": "title4", "status": "failed", "duration": 123 },
{ "ancestorTitles": ["path2", "to", "test5"], "title": "title5", "status": "failed", "failureMessages": ["Unexpected exception\n at path/to/file1.js:1\n at path/to/file2.js:2"], "duration": 123 }
]
}
]

@@ -35,2 +35,7 @@ "use strict";

["##teamcity[testSuiteFinished name='test4' flowId='12345']"],
["##teamcity[testSuiteStarted name='test5' flowId='12345']"],
["##teamcity[testStarted name='title5' flowId='12345']"],
["##teamcity[testFailed name='title5' message='Unexpected exception' details='at path/to/file1.js:1|n at path/to/file2.js:2' flowId='12345']"],
["##teamcity[testFinished name='title5' duration='123' flowId='12345']"],
["##teamcity[testSuiteFinished name='test5' flowId='12345']"],
["##teamcity[testSuiteFinished name='to' flowId='12345']"],

@@ -37,0 +42,0 @@ ["##teamcity[testSuiteFinished name='path2' flowId='12345']"],

@@ -30,2 +30,7 @@ const consoleOutput = [

["##teamcity[testSuiteFinished name='test4' flowId='12345']"],
["##teamcity[testSuiteStarted name='test5' flowId='12345']"],
["##teamcity[testStarted name='title5' flowId='12345']"],
["##teamcity[testFailed name='title5' message='Unexpected exception' details='at path/to/file1.js:1|n at path/to/file2.js:2' flowId='12345']"],
["##teamcity[testFinished name='title5' duration='123' flowId='12345']"],
["##teamcity[testSuiteFinished name='test5' flowId='12345']"],
["##teamcity[testSuiteFinished name='to' flowId='12345']"],

@@ -32,0 +37,0 @@ ["##teamcity[testSuiteFinished name='path2' flowId='12345']"],

@@ -46,7 +46,8 @@ "use strict";

test.failureMessages.forEach(error => {
const [message, stack] = error.split("\n ");
const separator = "\n ";
const [message, ...stack] = error.split(separator);
this.log(
`##teamcity[testFailed name='${this.escape(test.title)}' message='${this.escape(
message
)}' details='${this.escape(stack)}' flowId='${flowId}']`
)}' details='${this.escape(stack.join(separator))}' flowId='${flowId}']`
);

@@ -53,0 +54,0 @@ });

{
"name": "jest-teamcity",
"version": "1.5.0",
"version": "1.6.0",
"description": "Teamcity Reporter for Jest Testing framework",

@@ -12,3 +12,3 @@ "homepage": "https://github.com/itereshchenkov/jest-teamcity",

"jest": "^24.9.0",
"prettier": "^1.18.2"
"prettier": "^1.19.1"
},

@@ -15,0 +15,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc