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, 03:37 UTC
| 1 | import { afterAll, expect, test } from 'bun:test'; |
| 2 | import { run } from '../scripts/sdk-release/runtime'; |
| 3 | import { resolvePath, runRelease, temporaryDirectories, writeText } from './sdk-release-harness'; |
| 4 | |
| 5 | const changelogs = temporaryDirectories('sdk-changelog-filter-'); |
| 6 | afterAll(() => changelogs.cleanup()); |
| 7 | |
| 8 | test('only the SDK frontmatter marker suppresses ordinary changelog automation', async () => { |
| 9 | const directory = await changelogs.create(); |
| 10 | const ordinary = `${directory}/ordinary.mdx`; |
| 11 | const release = `${directory}/release.mdx`; |
| 12 | await writeText( |
| 13 | ordinary, |
| 14 | '---\ntitle: Ordinary\ndate: "2026-11-03"\n---\nsdkRelease: in prose\n' |
| 15 | ); |
| 16 | await writeText(release, '---\ntitle: Release\nsdkRelease: "51"\n---\nChanges\n'); |
| 17 | const kept = await runRelease( |
| 18 | run('bash', [ |
| 19 | '-c', |
| 20 | `printf '%s\\n' "$0" "$1" | bash "$2"`, |
| 21 | ordinary, |
| 22 | release, |
| 23 | await resolvePath('scripts/sdk-release/changelog-filter.sh'), |
| 24 | ]) |
| 25 | ); |
| 26 | expect(kept).toBe(`${ordinary}\n`); |
| 27 | }); |