testing-library / dom-testing-library

🐙 Simple and complete DOM testing utilities that encourage good testing practices.
https://testing-library.com/dom
MIT License
3.26k stars 466 forks source link

can't run CodeSandbox tests (issue converting to devbox) #1303

Closed githorse closed 5 months ago

githorse commented 5 months ago

I tried to fork the suggested CodeSandbox starter template, but seems like I can't open a terminal any longer in CodeSandbox without first converting to a devbox. On forking and converting to a devbox, though, I get errors:

[plugin:vite:import-analysis] Failed to resolve import "react/jsx-dev-runtime" from "src/index.jsx". Does the file exist?

Maybe the starter sandbox needs updating for compatibility with devboxes (whatever that means)? Or, if I'm doing something wrong here, please let me know how I should be using it.

MatanBobi commented 5 months ago

Thanks @githorse. We're currently using https://testing-library.com/new-dtl or https://testing-library.com/new-rtl for reproduction environment, we probably missed updating the codesandbox link, where did you find that one?

githorse commented 5 months ago

@MatanBobi this is the one copied from the issue template when I hit the New Issue -> Bug Report button(s).

MatanBobi commented 5 months ago

Thanks, I missed it when we've migrated to stackblitz. I've created a PR to fix that now :)