File tree 1 file changed +2
-2
lines changed
packages/snapshot/src/port
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ export async function saveSnapshotFile(
152
152
153
153
const content = `${ environment . getHeader ( ) } \n\n${ snapshots . join ( '\n\n' ) } \n`
154
154
const oldContent = await environment . readSnapshotFile ( snapshotPath )
155
- const skipWriting = oldContent && oldContent === content
155
+ const skipWriting = oldContent != null && oldContent === content
156
156
157
157
if ( skipWriting )
158
158
return
@@ -170,7 +170,7 @@ export async function saveSnapshotFileRaw(
170
170
snapshotPath : string ,
171
171
) {
172
172
const oldContent = await environment . readSnapshotFile ( snapshotPath )
173
- const skipWriting = oldContent && oldContent === content
173
+ const skipWriting = oldContent != null && oldContent === content
174
174
175
175
if ( skipWriting )
176
176
return
You can’t perform that action at this time.
0 commit comments