MCPcopy Index your code
hub / github.com/bugy/script-server / createScriptServerTestVue

Function createScriptServerTestVue

web-src/tests/unit/test_utils.js:126–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124export const flushPromises = () => new Promise(resolve => setTimeout(resolve));
125
126export const createScriptServerTestVue = () => {
127 const vue = createLocalVue()
128 forEachKeyValue(vueDirectives, (id, definition) => {
129 vue.directive(id, definition)
130 })
131 return vue
132}
133
134export const attachToDocument = () => {
135 const element = document.createElement('div')

Calls 1

forEachKeyValueFunction · 0.90

Tested by

no test coverage detected