Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit af79632

Browse files
authored
Update plugins.js
1 parent ded15df commit af79632

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/tests/plugins.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ module.exports = (on, config) => {
99
viteConfig.logLevel = 'error'
1010

1111
on('task', {
12+
// This command is required to store snapshots,
13+
// but running it within `cy:open` causes unnecessary slowness.
14+
// TODO: conditionally run snapshots depending on an env var
1215
readFileMaybe(filename) {
1316
if (fs.existsSync(filename)) {
1417
return fs.readFileSync(filename, 'utf8')

0 commit comments

Comments
 (0)