We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
skipWriting
1 parent 311682a commit 5436c73Copy full SHA for 5436c73
1 file changed
packages/snapshot/src/port/utils.ts
@@ -152,7 +152,7 @@ export async function saveSnapshotFile(
152
153
const content = `${environment.getHeader()}\n\n${snapshots.join('\n\n')}\n`
154
const oldContent = await environment.readSnapshotFile(snapshotPath)
155
- const skipWriting = oldContent && oldContent === content
+ const skipWriting = oldContent != null && oldContent === content
156
157
if (skipWriting)
158
return
@@ -170,7 +170,7 @@ export async function saveSnapshotFileRaw(
170
snapshotPath: string,
171
) {
172
173
174
175
176
0 commit comments