Comments (3)
Hi @TheJaredWilcurt. Thanks for reporting this issue.
jest-preview
can work on any framework based on jsdom
, so it doesn't matter if it's @vue/test-utils
or @testing-library/vue
. The example here uses @testing-library/vue
just for demonstration purpose.
Did you try to integrate jest-preview
with @vue/test-utils
? If yes, can you share the outcome/ behaviors, it would help a lot. If not, can you help to try it? (Just run jest-preview
CLI and execute debug()
in your tests)
from jest-preview.
Yes, after doing the dev.to setup I linked, I swapped @testing-library/vue
out for @vue/test-utils
. And changed from render
to shallowMount
(or mount
, tried both).
Then added expect(2).toEqual(3)
to for a test to fail (this worked before to show the component in the browser, in the same test). But it doesn't work, the browser refreshes, but the <body>
is empty (except for the same <script>
tag that was there before). Same thing with debug()
.
from jest-preview.
Here I made a reproduction:
It works with Testing Library, but not Vue Test Utils
If you can figure out how to make it work with Vue Test Utils, then that PR could be changed to npm uninstall @testing-library/vue
and remove it from the import in that testing file. Then it would be read to be merged, retaining the testing-library example you already had, but also replacing it with Vue-Test-Utils as the default Vue implementation reference.
from jest-preview.
Related Issues (20)
- Cannot process CSS modules in CRA
- Don't use hard-coded localhost for websocket HOT 6
- Importing @tailwindcss/utilities in CSS file causes ENOBUFS error HOT 3
- For a CRA app after following the instructions I got "sass not found. please install sass and try again." HOT 2
- No console.log or debugger HOT 2
- Having dependabot alerts: Got allows a redirect to a UNIX socket HOT 2
- Cannot bundle `update-notifier@6` (ESM only) to CommonJS using RollupJS
- Usage with React Native Web? HOT 5
- Can we save the "debug" preview as an image snapshot? HOT 1
- Add sass-resources-loader type functionality for loading SASS files HOT 11
- Auto previewing does not work when running a single test with WebStorm/IntelliJ HOT 4
- Make autoimporting `debug` recognized by vscode
- Tailwind arbitrary classes are not rendered properly
- Support VSCode extensions
- TS2694: Namespace 'Config' has no exported member 'PrettyFormatOptions'.
- Make a new release HOT 2
- Error 'Can't find stylesheet to import' with CSS Modules with SCSS
- Multiple CSS variables as inline style
- Errors reported as recorded video to be used in CI
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 jest-preview.