Skip to content

chore: replace placeholder failing test scripts (#555)#568

Open
Shinyaigeek wants to merge 2 commits into
thesysdev:mainfrom
Shinyaigeek:fix/555-placeholder-test-scripts
Open

chore: replace placeholder failing test scripts (#555)#568
Shinyaigeek wants to merge 2 commits into
thesysdev:mainfrom
Shinyaigeek:fix/555-placeholder-test-scripts

Conversation

@Shinyaigeek
Copy link
Copy Markdown

@Shinyaigeek Shinyaigeek commented May 24, 2026

Summary

Closes #555.

  • Root test script → pnpm -r run test, so pnpm test exits 0 and runs the real suites in lang-core / react-headless / svelte-lang / vue-lang.
  • Drop the echo "Error: no test specified" && exit 1 placeholder from packages/react-ui so contributors don't get pointed at a script that fails by design.
  • Add --passWithNoTests to packages/react-lang's test. The renderer package already had vitest wired up but no *.test.ts files, so the recursive run would still exit 1 on it. This flag is a no-op once Add tests for the React OpenUI Lang renderer #549 lands real renderer tests.

Verification

$ pnpm install --frozen-lockfile && pnpm test
…
packages/lang-core test       4 files, 68 tests passed
packages/react-headless test  4 files, 70 tests passed
packages/react-lang test      0 files (passWithNoTests)
packages/svelte-lang test     3 files, 30 tests passed
packages/vue-lang test        3 files, 30 tests passed
exit 0

- root `test` → `pnpm -r run test` so `pnpm test` runs the real
  test suites in lang-core / react-headless / svelte-lang / vue-lang
  (and skips packages without a `test` script).
- drop the `echo "Error: no test specified" && exit 1` placeholder
  from `packages/react-ui`.
- add `--passWithNoTests` to `packages/react-lang`'s `test` so the
  empty-suite case exits 0 instead of failing the recursive run.
  The renderer test suite (thesysdev#549) can land on top without further
  changes.

Closes thesysdev#555.
Use the same `vitest run --passWithNoTests` placeholder in
@openuidev/react-ui as in @openuidev/react-lang, so:

- `pnpm --filter @openuidev/react-ui test` exits 0 instead of
  "No script named 'test'" (review feedback)
- the package is drop-in ready when a real test suite lands
  (Storybook smoke tests, helper unit tests, etc.)

Requires adding `vitest` to react-ui's devDependencies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace placeholder failing test scripts

1 participant