Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .c8rc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"clover": {"file": "coverage.clover.xml"},
"html": {"subdir": "coverage.html"}
},
"reports-dir": "./reports",
"reports-dir": "./reports/coverage",
"temp-directory": "./.c8.cache"
}
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ jobs:
- name: collect coverage
if: ${{ failure() || success() }}
run: >
npx c8 report
--reporter clover
npx c8 report
--reporter clover
--reports-dir '${{ env.REPORTS_DIR }}/coverage/${{ matrix.os }}_node${{ matrix.node-version }}'
- name: artifact test reports
if: ${{ ! cancelled() }}
Expand Down
2 changes: 2 additions & 0 deletions src/serialize/json/normalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,11 @@ export class LicenseNormalizer extends BaseJsonNormalizer<Models.License> {
return this.#normalizeSpdxLicense(data as Models.SpdxLicense, options)
case data instanceof Models.LicenseExpression:
return this.#normalizeLicenseExpression(data as Models.LicenseExpression)
/* c8 ignore start */
default:
// this case is not expected to happen - and therefore is undocumented
throw new TypeError('Unexpected LicenseChoice')
/* c8 ignore end */
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/serialize/xml/normalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,11 @@ export class LicenseNormalizer extends BaseXmlNormalizer<Models.License> {
return this.#normalizeSpdxLicense(data as Models.SpdxLicense, options)
case data instanceof Models.LicenseExpression:
return this.#normalizeLicenseExpression(data as Models.LicenseExpression)
/* c8 ignore start */
default:
// this case is not expected to happen - and therefore is undocumented
throw new TypeError('Unexpected LicenseChoice')
/* c8 ignore end */
}
}

Expand Down