@devries-cameron20 / composio Mirror · read-only
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 04:45 UTC

next
ts 17 lines 694 Bytes
Raw
1 import { describe, expect, it } from '@effect/vitest';
2 import { Effect, Logger } from 'effect';
3 import { withoutClientNotices } from 'src/effects/without-client-notices';
4
5 describe('withoutClientNotices', () => {
6 it.effect('keeps a record that only reads like a client notice', () => {
7 const seen: Array<unknown> = [];
8 const recording = Logger.make(({ message }) => {
9 seen.push(message);
10 });
11 return Effect.gen(function* () {
12 yield* Effect.logWarning('Composio: the CLI warns about something');
13
14 expect(seen).toStrictEqual([['Composio: the CLI warns about something']]);
15 }).pipe(Effect.provide(Logger.layer([withoutClientNotices(recording)])));
16 });
17 });