Skip to content

CreateAction.test.ts: jest mock for cwd + snapshot for terminal output #150

@nick-pape

Description

@nick-pape

Follow-up from PR #149, per @iclanton's review comments.

Tasks

  • Line 96: Replace jest.spyOn(process, 'cwd') with a jest mock so it gets reset automatically between tests.
  • Line 44: Dump the terminal/console output from runCreate to a Jest snapshot so regressions in CLI output are caught automatically.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions