Skip to content

test:snapshot path is incorrect #5

@GlenOttley

Description

@GlenOttley

Running the test:snapshot command as instructed at the end of module 1 creates a nested 'packages/component/src/card/snapshot directory inside the packages/component directory.

change from:

const snapshotPath = join(
    'packages',
    'component',
    dirname(fileName),
    '__snapshots__'
  );

to:

const snapshotPath = join(
    dirname(fileName),
    '__snapshots__'
  );

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThe issue needs to be reproduced and requires a proposed fix.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions