Skip to content

[cli] missing tests for cwd argument in cli #997

Open
@armano2

Description

@armano2

currently cli argument --cwd is not tested, we should add some tests to ensure that its working.

Affected packages

  • all

Context

After this refactoring to typescript there can be some side effect of how cwd is handled in some of modules, i found it while doing refactoring of cli in #978

const input = await (fromStdin
? stdin()
: read({
to: flags.to,
from: flags.from,
edit: flags.edit,
cwd: flags.cwd
}));

const range = pick(flags, 'edit', 'from', 'to');
const input = await (fromStdin ? stdin() : read(range, {cwd: flags.cwd}));

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions