---
title: "Discussion on \"Contract Testing Without Pact: Using Shared Zod Schemas as a Source of Truth\n\" | Hashnode"
description: "Discussion on \"Contract Testing Without Pact: Using Shared Zod Schemas as a Source of Truth\n\". TL;DR\nContract testing prevents frontend and backend drift. Tools like Pact automate this but introduce additional complexity and duplicate definitions. Shared Zod schemas offer a simpler alternative"
url: "https://hashnode.com/posts/contract-testing-without-pact-using-shared-zod-schemas-as-a-source-of-truth/69efbeb3330a1ad7f71fa68e"
---

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

Discussion

# [Contract Testing Without Pact: Using Shared Zod Schemas as a Source of Truth](https://qualitystack.hashnode.dev/contract-testing-without-pact-using-shared-zod-schemas-as-a-source-of-truth?utm_source=hashnode&utm_medium=feed)

TL;DR Contract testing prevents frontend and backend drift. Tools like Pact automate this but introduce additional complexity and duplicate definitions. Shared Zod schemas offer a simpler alternative

Apr 27 · 5 min read · qualitystack.hashnode.dev  
Read the article

-   [#contract-testing](https://hashnode.com/tag/contract-testing)
-   [#zod](https://hashnode.com/tag/zod)

## Written by

[Tripthi Shetty](https://hashnode.com/@tripthishetty)

@tripthishetty

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
