Skip to content

Fix telegram-guide.test.tsx: Cannot find module react/jsx-dev-runtime #397

@hsteude

Description

@hsteude

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingin-progressCurrently being worked onpriority:mediumNormal priority (default)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions