Skip to content

test:snapshot path is incorrect #5

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__'
  );

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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