Skip to content

Commit

Permalink
chore: fix tests that check package versions in the Pipeline
Browse files Browse the repository at this point in the history
They execute correctly locally and in a PR build, but not in the
Pipeline because the `framework-integ` package gets an `-alpha.999`
suffix (whereas the actual constructs get an `-rc.0` suffix).
  • Loading branch information
rix0rrr committed Aug 30, 2023
1 parent fe930a5 commit de51b9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class TestConstruct extends Construct {
function localCdkVersion(): string {
if (!_cdkVersion) {
// eslint-disable-next-line @typescript-eslint/no-require-imports
const pkgJson = findParentPkgJson(__dirname);
const pkgJson = findParentPkgJson(require.resolve('aws-cdk-lib'));
_cdkVersion = pkgJson.version;
if (!_cdkVersion) {
throw new Error('Unable to determine CDK version');
Expand Down

0 comments on commit de51b9d

Please sign in to comment.