-
-
Notifications
You must be signed in to change notification settings - Fork 165
Labels
Description
Related plugins
Describe the bug
After running simple Hello World app it is giving error -$RefreshReg$ is not defined and test case is failing. It is working fine with plugin-react
.
FAIL src/App.test.tsx [ src/App.test.tsx ]
ReferenceError:
❯ src/App.tsx:9:1
3| export default function App() {
4| return <>Hello World</>;
5| }
| ^
6|
❯ src/App.test.tsx:2:1
The App is running fine
Also there is warning while running test -
Both esbuild and oxc options were set. oxc options will be used and esbuild options will be ignored.
Please feel free to close this bug if there is mistake in bug report
Reproduction
https://stackblitz.com/edit/vitejs-vite-uqmfm78m?file=src%2FApp.test.tsx&view=editor
Steps to reproduce
Run npm install
followed by npm t
System Info
NA
Used Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.