Skip to content

Commit

Permalink
update tests/suite/index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
lazToum committed Dec 2, 2024
1 parent 1987680 commit 8dc2394
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/test/suite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,21 @@ import { glob } from 'glob';
import Mocha from 'mocha';
import path from 'path';

const isWIndows = process.platform === 'win32';

function setupCoverage() {
// eslint-disable-next-line @typescript-eslint/no-require-imports
const NYC = require('nyc');
const nyc = new NYC({
cwd: path.resolve(__dirname, '..', '..', '..'),
include: ['dist'],
exclude: ['!**/node_modules/', '!**/test/', '!**/coverage/'],
reporter: ['text', 'text-summary', 'lcov'],
// on windows we get:
// Error: Path contains invalid characters:
// d:\a\vscode\vscode\coverage\lcov-report\dist\webpack:\waldiez-vscode...
reporter: isWIndows
? ['text', 'text-summary']
: ['text', 'text-summary', 'lcov'],
all: true,
// sourceMap: false,
sourceMap: true,
Expand Down

0 comments on commit 8dc2394

Please sign in to comment.