MCPcopy Create free account
hub / github.com/effector/effector / exec

Method exec

tools/remoteDeviceTestRunner/browserstackTestRunner.js:258–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256 return result
257 }
258 const exec = cb =>
259 execFunc(`async () => {
260 await (${typeof cb === 'function' ? cb.toString() : cb})()
261 return domSnapshots
262 }`).then(result => {
263 if (Array.isArray(result)) {
264 const prettyHtml = require('../../src/fixtures/prettyHtml')
265 return result.map(prettyHtml)
266 }
267 return result
268 })
269 test.context.config = {
270 ...test.context.config,
271 globals: {

Callers

nothing calls this directly

Calls 2

execFuncFunction · 0.85
mapMethod · 0.65

Tested by

no test coverage detected