Comments (3)
I am getting a very similar issue specifically when testing React components following the same example. In this case, react-hook-form seems to be the offender.
I can post more details if that is helpful
Maybe more related to #11 though now that I read through it
Edit: for clarification this is using npm v7.19.0
from vite-jest.
I think this is a Yarn 2 specific problem, and to be more specific this is because Yarn 2 cannot currently run ES Modules.
When I try to run the example with pnpm it works, but not using yarn
from vite-jest.
@mijamo The error in my screenshot was with npm v7.19.0. I have not tried pnpm, although I did observe the same issue with Yarn 2 as you indicated as well.
from vite-jest.
Related Issues (20)
- Jest is not defined in examples/react-app-ts HOT 6
- Specifying vite config
- Cannot find module '../node_modules/.vite/@testing-library_react.js' from 'src/__tests__/unit/App.test.tsx' HOT 7
- Cannot use jest.mock HOT 2
- Unexpected token '??='
- react-app-ts example is broken
- TypeError: (0 , _loadBabelConfig.loadPartialConfigAsync) is not a function when loading test suites HOT 1
- Validation error when running vite-jest HOT 1
- A way to include dependencies for dev server in optimizeDeps to find everything first run
- Alias config HOT 1
- Watch mode with `vite-jest --watch` HOT 8
- Jest did not exit one second after the test run has completed HOT 3
- testing in `jest-environment-node`
- Is there any solution to use vite-jest for an application which using Vite + Vue2 + Composition API? HOT 6
- Coverage report generates fingerprints in filenames
- Refactor to make use of async resolver in Jest 28 HOT 1
- Module "stream" has been externalized for browser compatibility and cannot be accessed in client code.
- Multiple issues when running vite-jest: fsevents .node, jest-pnp-resolver defaultResolver, ReferenceError: __DEFINES__
- still maintained? HOT 4
- peer dependency on jest@"^27.0.0"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vite-jest.