Skip to content

Make view test snapshot deterministic #1623

Closed
@isaacs

Description

@isaacs

https://github.com/npm/cli/pull/1622/checks?check_run_id=951548971#step:5:469

Probably a good idea to replace any published .*? ago with a specific known string. Something like this:

t.cleanSnapshot = str => str.replace(/published .*? ago/g, 'published {TIME} ago'))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Enhancementnew feature or improvementRelease 7.xwork is associated with a specific npm 7 releasepr: needs testsrequires tests before merging

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions