You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow create-playwright to generate the boilerplate code of the common Vue mount options. These APIs are also in Vue Test Utils and Testing Library, but it's not that obvious that this is also possible through the hooksConfig in one way or the other.
Providing those mount options directly inside the hooksConfig depends on #30269 tho and is desired for Angular as well: #27783 (comment).
// component.test.tsimport{router}from'./router';// note: `router` is not defined in a .vue fileimport{Component}from'./Component.vue';import{Provide}from'./provide';// note: `Provide` is not defined in a .vue fileimport{Directive}from'./directive';// note: `Directive` is not defined in a .vue fileawaitmount(App,{hooksConfig: {plugins: [router],components: { Component },mixins: [Mixin],provide: { Provide },directives: { Directive },},});
Motivation
These are not documented anywhere, even though most users needs this
The text was updated successfully, but these errors were encountered:
🚀 Feature Request
Allow
create-playwright
to generate the boilerplate code of the common Vue mount options. These APIs are also in Vue Test Utils and Testing Library, but it's not that obvious that this is also possible through thehooksConfig
in one way or the other.Providing those mount options directly inside the hooksConfig depends on #30269 tho and is desired for Angular as well: #27783 (comment).
Example
Motivation
These are not documented anywhere, even though most users needs this
The text was updated successfully, but these errors were encountered: