-
Notifications
You must be signed in to change notification settings - Fork 5
Feature: Tests generator tool #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…r-tool # Conflicts: # common/config/rush/npm-shrinkwrap.json # packages/ts-docs-gen/package.json # packages/ts-docs-gen/tests/scripts/tests-generator.ts
| .version(`Current version: ${GetVersion()}`) | ||
| .alias("v", "version") | ||
| // CLI options | ||
| .option("path", { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider renaming to "project".
| } | ||
|
|
||
| (async (argumentsObject: CLIArgumentsObject) => { | ||
| let cwd: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be replaced with:
const cwd = argumentObject.path || process.cwd();| return; | ||
| } | ||
|
|
||
| const casesDirPaths = await fastGlob([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reconsider formatting:
const casesDirPaths = await fastGlob(
[
`${testsCasesPath}/*`
],
{
onlyDirs: true,
ignore: [`**/${GENERATED_TESTS_DIR_NAME}/**`]
}
);or
const casesDirPaths = await fastGlob(
[`${testsCasesPath}/*`],
{
onlyDirs: true,
ignore: [`**/${GENERATED_TESTS_DIR_NAME}/**`]
}
);| return pathname.split(path.sep).join("/"); | ||
| } | ||
|
|
||
| export function Tab(size: number = 1): string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this helper still useful?
No description provided.