How to Provide a Live `Clock` to a Test Using the `layer` Helper Function in @effect/vitest

Hey! I have a question on how to provide live Clock to a test that is using layer helper function from @effect/vitest to share Layer between multiple tests. I’m writing an integration test for MQTT consumer&producer that needs actual delay to let client subscribe, so using TestClock is not an option. Also I’d like to share the MQTT test container layer between all the test so each test doesn’t spin up a separate container
Was this page helpful?