Skip to content

test: pass packages without tests #477

Closed

Description

@uniqueg

Problem

Test checks fail on every PR. npm run test runs turbo run test, which runs each package's test script. Most packages have a test script (wtr --coverage, or web-test-runner --group default ... in @elixir-cloud/design) but no test files, and Web Test Runner exits with an error when it finds none:

Error: Could not find any test files with pattern(s): src/**/**/*.test.ts
npm error workspace @elixir-cloud/[email protected]

The CI log names @elixir-cloud/trs and @elixir-cloud/wes, because turbo stops at the first failures. The same error occurs in every package that has a test script and no tests: cloud-registry, drs-filer, trs-filer, drs, service-registry, trs, wes and design.

Web Test Runner (0.19) has no option to pass when no tests are found (nothing like --passWithNoTests).

Proposed fix

Remove the test script from packages that have no tests, as @elixir-cloud/ro-crate and @elixir-cloud/tes already do. Turbo skips packages without the script. A package gets its test script back together with its first test file.

#446 has the same fix, together with unrelated theming work (and new tests for wes and design). #446 is on hold, so this issue splits out only the test-script fix so that it can be merged first and PRs against dev go green again.

Out of scope

@elixir-cloud/tes has test files but no test script, so CI doesn't run them. That should be a separate issue.

Activity

  1. added
    priority: high
    status: in progress
    type: ci / cd
    type: testing
    workload: minutes
    on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: highstatus: in progresstype: ci / cdtype: testingworkload: minutes

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions