MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / mockWatcher

Function mockWatcher

lib/tasks/serve.js:14–18  ·  view source on GitHub ↗
(distDir)

Source from the content-addressed store, hash-verified

12const { default: pDefer } = require('p-defer');
13
14function mockWatcher(distDir) {
15 let watcher = Promise.resolve({ directory: distDir });
16 watcher.on = () => {};
17 return watcher;
18}
19
20function mockBuilder() {
21 return {

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…