Repository navigation
Description
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