Skip to content

Commit

Permalink
fix: move default to defaults (#453)
Browse files Browse the repository at this point in the history
Put the default in the defaults.
  • Loading branch information
achingbrain committed Jun 16, 2022
1 parent ac9c4d9 commit 0334717
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const defaultOptions = {
before: undefined,
sw: undefined,
cov: false,
reportDir: '.nyc_output',
extensions: 'js,cjs,mjs,ts,tsx',
buildConfig: {},
buildSWConfig: {},
Expand Down Expand Up @@ -301,7 +302,7 @@ export class Runner {
this,
await page.coverage.stopJSCoverage(),
outName,
this.options.reportDir ?? '.nyc_output'
this.options.reportDir
)
}

Expand Down
2 changes: 1 addition & 1 deletion src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface RunnerOptions {
before?: string
sw?: string
cov: false
reportDir?: string
reportDir: string
extensions: string
buildConfig: BuildOptions
buildSWConfig: BuildOptions
Expand Down

0 comments on commit 0334717

Please sign in to comment.