Skip to content

Commit

Permalink
feat: run integ tests for integ-runner
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgrain committed Jan 5, 2023
1 parent f40bd8f commit d3cb979
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/@aws-cdk/cdk-build-tools/lib/package-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ export async function unitTestFiles(): Promise<File[]> {
}

export async function hasIntegTests(): Promise<boolean> {
if (currentPackageJson().name === '@aws-cdk/integ-runner') return false;
if (currentPackageJson().name === '@aws-cdk/integ-runner') {
// integ-runner has special non-js integ tests
return true;
}

const files = await listFiles('test', f => f.filename.startsWith('integ.') && f.filename.endsWith('.js'));
return files.length > 0;
}
Expand Down

0 comments on commit d3cb979

Please sign in to comment.