---
title: "Discussion on \"Your Tests Pass Against Source — That Is Why the Published Package Lost an Export\" | Hashnode"
description: "Discussion on \"Your Tests Pass Against Source — That Is Why the Published Package Lost an Export\". The suite stayed green after a package rename, CI was green, and the changelog promised formatBudget as a public export. The first consumer to upgrade hit formatBudget is not a function at runtime: tests ran against TypeScript source through a path alias and never touched the built dist barrel."
url: "https://hashnode.com/posts/source-tests-pass-while-published-export-missing/6ada39b144292f526cdba433"
---

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

Discussion

# [Your Tests Pass Against Source — That Is Why the Published Package Lost an Export](https://blogs.powerduck.com/source-tests-pass-while-published-export-missing?utm_source=hashnode&utm_medium=feed)

The suite stayed green after a package rename, CI was green, and the changelog promised formatBudget as a public export. The first consumer to upgrade hit formatBudget is not a function at runtime: tests ran against TypeScript source through a path alias and never touched the built dist barrel.

Oct 22 · 4 min read · blogs.powerduck.com  
Read the article

-   [#aiagents](https://hashnode.com/tag/aiagents)
-   [#testing](https://hashnode.com/tag/testing)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#workflow](https://hashnode.com/tag/workflow)

## Written by

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

@powerduck · hon

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
