@aws-cdk-testing/cli-integ
Version:
Integration tests for the AWS CDK CLI
14 lines (10 loc) • 474 B
text/typescript
import { integTest, withDefaultFixture } from '../../lib';
jest.setTimeout(2 * 60 * 60_000); // Includes the time to acquire locks, worst-case single-threaded runtime
integTest(
'cdk diff --security-only --fail exits when security diff for sso-assignment',
withDefaultFixture(async (fixture) => {
await expect(
fixture.cdk(['diff', '--security-only', '--fail', fixture.fullStackName('sso-assignment')]),
).rejects.toThrow('exited with error');
}),
);