danger-plugin-coverage
Advanced tools
Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "danger-plugin-coverage", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A Danger plugin to report code coverage.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -405,2 +405,10 @@ import path from 'path'; | ||
}); | ||
it('does not report anything if no coverage reported for the files changed', async () => { | ||
mockFs(); | ||
await coverage(); | ||
expect(getMarkdownReport()).toBeUndefined(); | ||
}); | ||
}); |
@@ -39,3 +39,3 @@ import path from 'path'; | ||
export const getMarkdownReport = () => markdown.mock.calls[0][0]; | ||
export const getMarkdownReport = () => markdown.mock.calls?.[0]?.[0]; | ||
@@ -42,0 +42,0 @@ export const translateMetric = (metric) => ({ |
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
47151
1136