MCPcopy
hub / github.com/tsedio/tsed / TestConfigSource

Class TestConfigSource

packages/config/core/test/validation.integration.spec.ts:19–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 afterEach(() => DITest.reset());
18 it("should validate the loaded configuration", async () => {
19 class TestConfigSource implements ConfigSource {
20 options: {};
21
22 getAll() {
23 return Promise.resolve({
24 test: "string",
25 test2: "3",
26 bool: "true",
27 extraValue: "true",
28 ...this.options
29 });
30 }
31 }
32
33 configuration().set("extends", [
34 withOptions(TestConfigSource, {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected