Skip to content

Commit

Permalink
fix: foo
Browse files Browse the repository at this point in the history
  • Loading branch information
dword-design committed Mar 13, 2021
1 parent 7a4f352 commit a3404f4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default {
})
`
)
await execa.command('mocha index.spec.js')
await execa.command('mocha --timeout 5000 index.spec.js')
const snapshot = await readFile(
P.join('__foo_image_snapshots__', 'index-spec-js-works-1-snap.png')
)
Expand Down Expand Up @@ -93,7 +93,7 @@ export default {
.toBuffer()
)
await expect(
execa.command('mocha index.spec.js', { all: true })
execa.command('mocha --timeout 5000 index.spec.js', { all: true })
).rejects.toThrow(
'Expected image to match or be a close match to snapshot but was 100% different from snapshot (2304 differing pixels).'
)
Expand Down Expand Up @@ -137,7 +137,7 @@ export default {
.png()
.toBuffer()
)
await execa.command('mocha index.spec.js')
await execa.command('mocha --timeout 5000 index.spec.js')
}),
'multiple snapshots per test': () =>
withLocalTmpDir(async () => {
Expand Down Expand Up @@ -176,7 +176,7 @@ export default {
})
`
)
await execa.command('mocha index.spec.js')
await execa.command('mocha --timeout 5000 index.spec.js')
expect(
await readFile(
P.join('__image_snapshots__', 'index-spec-js-works-1-snap.png')
Expand Down Expand Up @@ -236,7 +236,7 @@ export default {
})
`
)
await execa.command('mocha index.spec.js')
await execa.command('mocha --timeout 5000 index.spec.js')
expect(
await readFile(
P.join('__image_snapshots__', 'index-spec-js-works-1-snap.png')
Expand Down Expand Up @@ -293,7 +293,7 @@ export default {
.png()
.toBuffer()
)
await execa.command('mocha index.spec.js', {
await execa.command('mocha --timeout 5000 index.spec.js', {
env: { SNAPSHOT_UPDATE: true },
})
const snapshot = await readFile(
Expand Down

0 comments on commit a3404f4

Please sign in to comment.