Skip to content

Commit

Permalink
use kebab-case
Browse files Browse the repository at this point in the history
  • Loading branch information
vhdirk committed Oct 17, 2022
1 parent 781db46 commit 473bbba
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/JestProcessManagement/JestProcess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,30 +112,30 @@ export class JestProcess implements JestProcessInfo {

switch (this.request.type) {
case 'all-tests':
args.push('--watchAll=false');
args.push('--watch-all=false');
if (this.request.updateSnapshot) {
args.push('--updateSnapshot');
args.push('--update-snapshot');
}
break;
case 'by-file': {
const fileName = this.quoteFileName(this.request.testFileName);
args.push('--watchAll=false');
args.push('--watch-all=false');
if (this.request.notTestFile) {
args.push('--findRelatedTests', fileName);
} else {
options.testFileNamePattern = fileName;
args.push('--runTestsByPath');
args.push('--run-tests-by-path');
}
if (this.request.updateSnapshot) {
args.push('--updateSnapshot');
args.push('--update-snapshot');
}
break;
}
case 'by-file-pattern': {
const regex = this.quoteFilePattern(escapeRegExp(this.request.testFileNamePattern));
args.push('--watchAll=false', '--testPathPattern', regex);
args.push('--watch-all=false', '--test-path-pattern', regex);
if (this.request.updateSnapshot) {
args.push('--updateSnapshot');
args.push('--update-snapshot');
}
break;
}
Expand All @@ -146,9 +146,9 @@ export class JestProcess implements JestProcessInfo {
escapeRegExp(this.request.testNamePattern),
this.extContext.settings.shell
);
args.push('--runTestsByPath', '--watchAll=false');
args.push('--run-tests-by-path', '--watch-all=false');
if (this.request.updateSnapshot) {
args.push('--updateSnapshot');
args.push('--update-snapshot');
}
break;
}
Expand All @@ -158,9 +158,9 @@ export class JestProcess implements JestProcessInfo {
escapeRegExp(this.request.testNamePattern),
this.extContext.settings.shell
);
args.push('--watchAll=false', '--testPathPattern', regex);
args.push('--watch-all=false', '--test-path-pattern', regex);
if (this.request.updateSnapshot) {
args.push('--updateSnapshot');
args.push('--update-snapshot');
}
break;
}
Expand Down

0 comments on commit 473bbba

Please sign in to comment.