Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
fix: Updated mocha.opts generator for mocha v6
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Feb 19, 2019
1 parent 17b1ef2 commit 73b8a00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
9 changes: 3 additions & 6 deletions src/lib/init/00_test.ts
Expand Up @@ -16,13 +16,10 @@ export function handle(): void {
'--full-trace',
'-r ts-node/register',
'-r source-map-support/register',
'-t 10000',
'--trace-deprecation',
'--trace-warnings',
'--throw-deprecation',
'-t 20000',
'--recursive',
'--watch-extensions ts',
'test/**/*.ts'
'--extension ts',
'test'
].join('\n') + '\n';
fs.writeFileSync(Paths.MOCHA_OPTS, contents);
Git.add(Paths.MOCHA_OPTS);
Expand Down
9 changes: 3 additions & 6 deletions test/commands/init.ts
Expand Up @@ -231,13 +231,10 @@ generateNotes:
'--full-trace',
'-r ts-node/register',
'-r source-map-support/register',
'-t 10000',
'--trace-deprecation',
'--trace-warnings',
'--throw-deprecation',
'-t 20000',
'--recursive',
'--watch-extensions ts',
'test/**/*.ts'
'--extension ts',
'test'
].join('\n') + '\n',
file: 'mocha.opts'
},
Expand Down

0 comments on commit 73b8a00

Please sign in to comment.