Skip to content

Commit

Permalink
Fix argument parsing and update dependencies
Browse files Browse the repository at this point in the history
- Resolved argument parsing issues with `--config` and `--label` options, ensuring proper handling of command-line arguments.
- Applied Prettier formatting across the codebase for consistent coding styles.
- Updated project dependencies to their latest versions for improved security and performance.

These changes enhance the tool's reliability, maintainability, and user experience.

Ref: #31
  • Loading branch information
jacobwi committed Mar 17, 2024
1 parent 4c9aa5a commit 0e6891a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,25 @@
},
"homepage": "https://github.com/Microsoft/vscode-test-cli#readme",
"devDependencies": {
"@types/node": "^18.18.4",
"@types/yargs": "^17.0.28",
"@vscode/test-electron": ">=2",
"@vscode/test-web": ">=0.0.46",
"prettier": "^3.0.3",
"typescript": "^5.4.0-beta"
"@types/node": "^20.11.28",
"@types/yargs": "^17.0.32",
"@vscode/test-electron": "2.3.9",
"@vscode/test-web": ">=0.0.52",
"prettier": "^3.2.5",
"typescript": "^5.4.2"
},
"prettier": {
"printWidth": 100,
"singleQuote": true
},
"dependencies": {
"@types/mocha": "^10.0.2",
"@types/mocha": "^10.0.6",
"c8": "^9.1.0",
"chokidar": "^3.5.3",
"enhanced-resolve": "^5.15.0",
"chokidar": "^3.6.0",
"enhanced-resolve": "^5.16.0",
"glob": "^10.3.10",
"minimatch": "^9.0.3",
"mocha": "^10.2.0",
"mocha": "^10.3.0",
"supports-color": "^9.4.0",
"yargs": "^17.7.2"
}
Expand Down
1 change: 0 additions & 1 deletion src/bin.mts
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,3 @@ async function runConfigs(config: ResolvedTestConfiguration, enabledTests: Set<T

return runPreparedConfigs(config, prepared);
}

1 change: 0 additions & 1 deletion src/cli/args.mts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ export const cliArgs = yargs(process.argv)
});
//#endregion


cliArgs.wrap(Math.min(120, cliArgs.terminalWidth()));

export type CliArgs = ReturnType<(typeof cliArgs)['parseSync']>;
4 changes: 2 additions & 2 deletions src/fullJsonStreamReporter.cts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const clean = (test: Mocha.Test) => {
!test.duration || test.duration < test.slow() / 2
? ('fast' as const)
: test.duration > test.slow()
? ('slow' as const)
: ('medium' as const),
? ('slow' as const)
: ('medium' as const),
};
};

0 comments on commit 0e6891a

Please sign in to comment.