Mocking Config for Tests in Effect Typescript

Hi all, how to properly mock Config for tests?

import { Config } from "effect";

export const AppConfigLive = Config.all({
  port: Config.number("PORT").pipe(Config.withDefault(8080)),
  connectionString: Config.string("MONGODB_CONNECTION_STRING"),
});


the docs seem to use ConfigProvider.fromMap. I can't seem to put two and two together
Was this page helpful?