Skip to content

Commit

Permalink
nit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Jun 18, 2023
1 parent dec8aa9 commit 77e1383
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/test/suite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ const NYC = require('nyc');
let nyc: any = undefined;

export async function run(): Promise<void> {
const testsRoot = path.resolve(__dirname, '..');

// Setup coverage pre-test, including post-test hook to report

if (process.env['CODE_COVERAGE'] === '1') {
nyc = new NYC({
...baseConfig,
Expand All @@ -45,6 +41,8 @@ export async function run(): Promise<void> {
color: true
});

const testsRoot = path.resolve(__dirname, '..');

return new Promise((c, e) => {
glob('**/**.test.js', { cwd: testsRoot }, async (err, files) => {
if (err) {
Expand Down

0 comments on commit 77e1383

Please sign in to comment.