@lucid-softworks/config-testkit
v0.1.0
Published
Mutable sources and framework-neutral assertions for configuration tests.
Maintainers
Readme
@lucid-softworks/config-testkit
Framework-neutral configuration assertions and a mutable source for precedence, failure, and reload tests.
const remote = new MutableConfigSource("remote", { feature: false });
remote.set({ feature: true });
remote.fail(new Error("offline"));
assertConfigOrigin(loaded.layer, ["feature"], "remote");
assertConfigValue(loaded.layer, ["feature"], true);