MCPcopy
hub / github.com/loopbackio/loopback-next / TestBooter

Class TestBooter

packages/boot/src/__tests__/unit/bootstrapper.unit.ts:121–138  ·  view source on GitHub ↗

* A TestBooter for testing purposes. Implements configure and load.

Source from the content-addressed store, hash-verified

119 * A TestBooter for testing purposes. Implements configure and load.
120 */
121 class TestBooter implements Booter {
122 private configureCalled = false;
123 private loadCalled = false;
124 async configure() {
125 this.configureCalled = true;
126 }
127
128 async load() {
129 this.loadCalled = true;
130 }
131
132 get phasesCalled() {
133 const result = [];
134 if (this.configureCalled) result.push('TestBooter:configure');
135 if (this.loadCalled) result.push('TestBooter:load');
136 return result;
137 }
138 }
139
140 /**
141 * A TestBooter for testing purposes. Implements configure.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected