MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / constructor

Method constructor

tests/helpers/mock-process.js:6–25  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

4
5module.exports = class MockProcess extends EventEmitter {
6 constructor(options) {
7 super();
8
9 options = options || {};
10
11 this.platform = 'MockOS';
12
13 const stdin = Object.assign(
14 new EventEmitter(),
15 {
16 isRaw: process.stdin.isRaw,
17 setRawMode: (flag) => {
18 stdin.isRaw = flag;
19 },
20 },
21 options.stdin || {}
22 );
23
24 Object.assign(this, options, { stdin });
25 }
26
27 getSignalListenerCounts() {
28 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected