Skip to content

Commit 576a851

Browse files
authored
chore(integ-tests-alpha): integ tests link is incorrect (#26402)
This PR corrects integ tests link in an integ-runner doc and an error message. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 3944f31 commit 576a851

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

packages/@aws-cdk/integ-runner/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ publishing this tool so that it can be used by the community and we would love t
2525
on use cases that the tool should support, or issues that prevent the tool from being used in your
2626
library.
2727

28-
This tool is meant to be used with the [integ-tests](https://github.com/aws/aws-cdk/tree/main/packages/%40aws-cdk/integ-tests) library.
28+
This tool is meant to be used with the [integ-tests](https://github.com/aws/aws-cdk/tree/main/packages/%40aws-cdk/integ-tests-alpha) library.
2929

3030
## Usage
3131

packages/@aws-cdk/integ-runner/lib/runner/integ-test-runner.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ export class IntegTestRunner extends IntegRunner {
7777
// test then point the user to the new `IntegTest` construct
7878
if (!this.hasSnapshot() && this.isLegacyTest) {
7979
throw new Error(`${this.testName} is a new test. Please use the IntegTest construct ` +
80-
'to configure the test\n' +
81-
'https://github.com/aws/aws-cdk/tree/main/packages/%40aws-cdk/integ-tests',
80+
'to configure the test\n' +
81+
'https://github.com/aws/aws-cdk/tree/main/packages/%40aws-cdk/integ-tests-alpha',
8282
);
8383
}
8484
}

packages/@aws-cdk/integ-runner/test/runner/integ-test-runner.test.ts

+14
Original file line numberDiff line numberDiff line change
@@ -675,4 +675,18 @@ describe('IntegTest watchIntegTest', () => {
675675
verbose: undefined,
676676
}));
677677
});
678+
679+
test('with error', () => {
680+
expect(() => {
681+
// WHEN
682+
new IntegTestRunner({
683+
cdk: cdkMock.cdk,
684+
test: new IntegTest({
685+
fileName: 'test/test-data/xxxxx.test-with-error.js',
686+
discoveryRoot: 'test/test-data',
687+
}),
688+
});
689+
// THEN
690+
}).toThrowError('xxxxx.test-with-error is a new test. Please use the IntegTest construct to configure the test\nhttps://github.com/aws/aws-cdk/tree/main/packages/%40aws-cdk/integ-tests-alpha');
691+
});
678692
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// !cdk-integ test-stack

0 commit comments

Comments
 (0)