---
title: "Discussion on \"The Snapshot Test That Fails on Every Harmless Timestamp Change\" | Hashnode"
description: "Discussion on \"The Snapshot Test That Fails on Every Harmless Timestamp Change\". Snapshot tests fail on harmless timestamps and ids when they capture whole responses, so freeze time and strip volatile fields before comparing."
url: "https://hashnode.com/posts/snapshot-tests-timestamps-brittle/6ae74461749bf3122bfdacbf"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The Snapshot Test That Fails on Every Harmless Timestamp Change](https://blogs.powerduck.com/snapshot-tests-timestamps-brittle?utm_source=hashnode&utm_medium=feed)

Snapshot tests fail on harmless timestamps and ids when they capture whole responses, so freeze time and strip volatile fields before comparing.

Nov 1 · 5 min read · blogs.powerduck.com  
Read the article

-   [#testing](https://hashnode.com/tag/testing)
-   [#api](https://hashnode.com/tag/api)
-   [#developers](https://hashnode.com/tag/developers)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
