Skip to content

Commit 1d40887

Browse files
committed
chore: fix html coverage report
- istanbuljs/istanbuljs#581
1 parent acc81ef commit 1d40887

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/cli/install-tool/install-tool.service.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import path from 'node:path';
12
import { deleteAsync } from 'del';
23
import { inject, injectable, multiInject, optional } from 'inversify';
34
import { initializeTools, prepareTools } from '../prepare-tool';
@@ -144,8 +145,8 @@ export class InstallToolService {
144145
logger.debug('cleaning user caches');
145146
await deleteAsync(
146147
[
147-
`${this.pathSvc.cachePath}/.cache/**`,
148-
`${this.pathSvc.cachePath}/.local/share/virtualenv`,
148+
path.join(this.pathSvc.cachePath, '.cache/**'),
149+
path.join(this.pathSvc.cachePath, '.local/share/virtualenv'),
149150
],
150151
{
151152
force: true,

src/cli/utils/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export async function cleanTmpFiles(
120120
tmp: string,
121121
dryRun = false,
122122
): Promise<void> {
123-
await deleteAsync([`**`, `!containerbase/**`], {
123+
await deleteAsync(['**', '!containerbase/**'], {
124124
dot: true,
125125
dryRun,
126126
force: true,

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default defineConfig({
99
test: {
1010
coverage: {
1111
provider: 'v8',
12-
reporter: ci ? ['lcovonly', 'text'] : ['html', 'text'],
12+
reporter: ci ? ['lcovonly', 'text'] : ['html-spa', 'text'],
1313
include: ['src/cli/**/*.ts', '!**/__mocks__/**', '!**/types.ts'],
1414
},
1515
reporters: ci ? ['default', 'github-actions'] : ['default', 'html'],

0 commit comments

Comments
 (0)