Context
Running bun test produces an unhandled error in telegram-guide.test.tsx:
Cannot find module 'react/jsx-dev-runtime' from
'app-prefixable/src/components/telegram-setup-guide.tsx'
This counts as "1 error" in the test summary separate from the 5 failures.
Root cause
The test file imports a SolidJS component (telegram-setup-guide.tsx) that uses JSX. Bun's test runner resolves JSX to React's runtime by default, but this is a SolidJS project. The test needs proper JSX transform configuration for SolidJS, or needs to be restructured to avoid importing JSX components directly.
Files to modify
app-prefixable/tests/telegram-guide.test.tsx — the failing test
- Possibly
bunfig.toml or tsconfig.json — JSX transform config for tests
Acceptance criteria
bun test app-prefixable/tests/telegram-guide.test.tsx runs without the react/jsx-dev-runtime error
- All existing assertions in the test still pass
Context
Running
bun testproduces an unhandled error intelegram-guide.test.tsx:This counts as "1 error" in the test summary separate from the 5 failures.
Root cause
The test file imports a SolidJS component (
telegram-setup-guide.tsx) that uses JSX. Bun's test runner resolves JSX to React's runtime by default, but this is a SolidJS project. The test needs proper JSX transform configuration for SolidJS, or needs to be restructured to avoid importing JSX components directly.Files to modify
app-prefixable/tests/telegram-guide.test.tsx— the failing testbunfig.tomlortsconfig.json— JSX transform config for testsAcceptance criteria
bun test app-prefixable/tests/telegram-guide.test.tsxruns without thereact/jsx-dev-runtimeerror