Skip to content

Commit

Permalink
Add logs to snapshotting
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeelaudibert committed Feb 25, 2025
1 parent fda75b5 commit 44317f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/storybook/.storybook/test-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const LOADER_SELECTORS = [
]

const customSnapshotsDir = path.resolve(__dirname, '../../../../frontend/__snapshots__')
console.log('customSnapshotsDir', customSnapshotsDir)

const JEST_TIMEOUT_MS = 15000
const PLAYWRIGHT_TIMEOUT_MS = 10000 // Must be shorter than JEST_TIMEOUT_MS
Expand Down Expand Up @@ -247,6 +248,8 @@ async function expectLocatorToMatchStorySnapshot(
if (browser !== 'chromium') {
customSnapshotIdentifier += `--${browser}`
}

console.log('Snapshotting', customSnapshotIdentifier, 'to', customSnapshotsDir)
expect(image).toMatchImageSnapshot({
customSnapshotsDir,
customSnapshotIdentifier,
Expand Down

0 comments on commit 44317f1

Please sign in to comment.