Comments (2)
That was a tough one to figure out, but I think this is an issue unrelated to VTU.
If you change your vitest config to use the ESM build of the flatpickr library (as the app does when you run npm run dev
) instead of the UMB build (that Vitest uses), then the issue disappears. Well, it's replaced by a warning about a required props that makes sense):
export default mergeConfig(
viteConfig,
defineConfig({
test: {
environment: 'jsdom',
exclude: [...configDefaults.exclude, 'e2e/*'],
root: fileURLToPath(new URL('./', import.meta.url)),
alias: {
'vue-flatpickr-component': 'vue-flatpickr-component/dist/esm/index.js'
}
}
})
)
I'll close as there is nothing VTU can do about this.
from test-utils.
@cexbrayat thank you for your help! I never would have figured that out on my own. I'll let the vue-flatpickr-component devs know!
from test-utils.
Related Issues (20)
- Bug: References to objects are lost when emitting events from child component HOT 2
- Feature request: respect devtools definition HOT 6
- Return type confusing, generics not working HOT 2
- Bug: no exported member 'PublicProps' HOT 4
- Bug: Submit event from form does not get caught in unit test HOT 3
- Bug: Errors during $setup are hidden and cause the template to be rendered with undefined properties HOT 6
- Bug: incompatibility with latest nuxt HOT 1
- Vue Warn, Error Handlers HOT 5
- Feature request: setSlots - Updates component slots HOT 2
- Bug: type inference for components is not on par with `defineComponent` HOT 1
- Bug: Props in child component defined in mixin are missing with `shallowMount` on @vue/compat HOT 2
- Bug: execute imports code in a component's children despite being stubbed HOT 2
- Feature request: update teleport testing documentation HOT 1
- Bug: snapshots are mismatching on different platforms HOT 8
- Bug: wrapper.findComponent no longer working after upgrading to 2.4.2 HOT 6
- Bug: clicking button type submit doesn't trigger submit event HOT 2
- Bug: can't pass a prop to a stubbed custom element using a `.prop` modifier HOT 1
- chore(docs): translate the documentation to portuguese
- Bug: TypeError: $setup.mergeProps is not a function HOT 5
- Feature request: mount should accept a partial that describes local properties on component HOT 1
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 test-utils.