testcafe-vue-selectors
testcafe-vue-selectors copied to clipboard
[FR] Typings
Having typings would be great :) The getVue method cannot be found and there are some problems with Selector vs SelectorPromise types.
+1, I write my tests in TS and it would be really neat if tc.getVue()
would not complain all the time
This might help get you started,
declare module 'testcafe-vue-selectors' {
import { Selector } from 'testcafe'
export interface VueSelector extends Selector {
getVue: () => {
props: any
state: any
computed: any
ref: any
}
}
export default function VueSelector (name: string): VueSelector
}