Skip to content

[BUG] Docker tests fail after turbo prune: missing shared jest.config.base #1813

@Harsh16gupta

Description

@Harsh16gupta

Describe the bug.

When running tests via Docker, test execution fails for the
@asyncapi/generator-helpers package because a shared Jest configuration
file (jest.config.base) cannot be resolved at runtime.

This appears to be caused by turbo prune --docker excluding shared test
configuration files that are required by package-level Jest configs.

Expected behavior

Docker-based test execution should include all required shared Jest
configuration files referenced by individual packages, and tests
should run successfully inside the container.

Screenshots

Image

How to Reproduce

  1. Clone the repository
  2. Navigate to the generator directory
  3. Run docker compose up
  4. Observe test execution fail for @asyncapi/generator-helpers

Note: This reproduces consistently in Docker. Tests pass when run locally
without Docker.

🖥️ Device Information [optional]

  • Operating System (OS): Windows 11
  • Browser:
  • Browser Version:

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions