Skip to content

Conversation

@DonatasBrazionis
Copy link
Contributor

No description provided.

@MartynasZilinskas MartynasZilinskas changed the title Feature/tests generator tool Feature: Tests generator tool Dec 12, 2017
.version(`Current version: ${GetVersion()}`)
.alias("v", "version")
// CLI options
.option("path", {
Copy link
Member

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;
Copy link
Member

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([
Copy link
Member

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 {
Copy link
Member

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?

@DonatasBrazionis DonatasBrazionis merged commit 970c953 into dev Dec 18, 2017
@DonatasBrazionis DonatasBrazionis deleted the feature/tests-generator-tool branch December 18, 2017 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants