jest-slack-integration
Advanced tools
Comparing version 1.0.9 to 1.0.10
10
index.js
@@ -25,11 +25,3 @@ const readPkg = require('read-pkg') | ||
} | ||
bugsnag.notify(new Error('Test Results are in!'), { | ||
metaData: { | ||
'Test Result Data': testResults, | ||
'Package Data': { | ||
webhook: packageJson.jestSlackIntegration.webhookUrl, | ||
bugnsagAPI: packageJson.jestSlackIntegration.bugsnagAPI | ||
} | ||
} | ||
}) | ||
try { | ||
@@ -36,0 +28,0 @@ await request(options) |
@@ -35,32 +35,22 @@ 'use strict'; | ||
}; | ||
bugsnag.notify(new Error('Test Results are in!'), { | ||
metaData: { | ||
'Test Result Data': testResults, | ||
'Package Data': { | ||
webhook: packageJson.jestSlackIntegration.webhookUrl, | ||
bugnsagAPI: packageJson.jestSlackIntegration.bugsnagAPI | ||
} | ||
} | ||
}); | ||
_context.prev = 8; | ||
_context.next = 11; | ||
_context.prev = 7; | ||
_context.next = 10; | ||
return request(options); | ||
case 11: | ||
_context.next = 16; | ||
case 10: | ||
_context.next = 15; | ||
break; | ||
case 13: | ||
_context.prev = 13; | ||
_context.t0 = _context['catch'](8); | ||
case 12: | ||
_context.prev = 12; | ||
_context.t0 = _context['catch'](7); | ||
bugsnag.notify(_context.t0); | ||
case 16: | ||
_context.next = 21; | ||
case 15: | ||
_context.next = 20; | ||
break; | ||
case 18: | ||
_context.prev = 18; | ||
case 17: | ||
_context.prev = 17; | ||
_context.t1 = _context['catch'](0); | ||
@@ -70,6 +60,6 @@ | ||
case 21: | ||
case 20: | ||
return _context.abrupt('return', testResults); | ||
case 22: | ||
case 21: | ||
case 'end': | ||
@@ -79,3 +69,3 @@ return _context.stop(); | ||
} | ||
}, _callee, undefined, [[0, 18], [8, 13]]); | ||
}, _callee, undefined, [[0, 17], [7, 12]]); | ||
})); | ||
@@ -82,0 +72,0 @@ |
{ | ||
"name": "jest-slack-integration", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "This script allows you to post test results to slack", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
71133
89