# Mocking Dependencies for Local Development

DevFeed: [Mocking Dependencies for Local Development](<https://devfeed.tech/articles/mocking-dependencies-for-local-development-107479.md>)

Original publisher: [Read original article](<https://blog.postman.com/mocking-dependencies-for-local-development/>)

Author: Talia Kohan

Published: 2026-10-29T15:00:06Z

Content type: tutorial

Language: en

Sources: [Postman](<https://devfeed.tech/sources/postman-blog.md>)

Topics: [mock api](<https://devfeed.tech/topics/mock-api.md>), [Mocking](<https://devfeed.tech/topics/mocking.md>), [developer setup](<https://devfeed.tech/topics/developer-setup.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [api-discovery](<https://devfeed.tech/tags/api-discovery.md>), [api-mocking](<https://devfeed.tech/tags/api-mocking.md>), [api-testing](<https://devfeed.tech/tags/api-testing.md>), [calendar](<https://devfeed.tech/tags/calendar.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [collections](<https://devfeed.tech/tags/collections.md>), [context-graph](<https://devfeed.tech/tags/context-graph.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [dependency](<https://devfeed.tech/tags/dependency.md>), [development](<https://devfeed.tech/tags/development.md>), [general](<https://devfeed.tech/tags/general.md>), [local](<https://devfeed.tech/tags/local.md>), [local-development](<https://devfeed.tech/tags/local-development.md>), [mock](<https://devfeed.tech/tags/mock.md>), [mock-servers](<https://devfeed.tech/tags/mock-servers.md>), [mocking](<https://devfeed.tech/tags/mocking.md>), [postman](<https://devfeed.tech/tags/postman.md>), [repo](<https://devfeed.tech/tags/repo.md>)

## AI overview

The walkthrough shows how Postman's Context Graph and Claude Code plugin can set up local mocks across a service dependency chain. The api-discovery skill finds integrations, endpoints and schemas, including a service in another repository that a local code search would miss. The api-mocking skill creates Git-backed Local Mock Servers under `postman/mocks/`, with scenario configuration and JavaScript handlers; environment variables point each service to the mock's localhost port without gateway code changes. The api-testing skill checks responses and failure scenarios such as 401, 404 and 422. Discovery expanded the setup from five gateway integrations to seven mocks covering two additional services' call patterns. Committing the mock files and environment wiring makes the setup reproducible across clones and repositories. The article cautions that local mocks do not replace testing against real services before release.

## Source excerpt

Mock every dependency a service calls, even ones outside your repo, using Postman's Context Graph and Local Mock Servers. The post Mocking Dependencies for Local Development appeared first on Postman Blog.