Skip to content

Commit

Permalink
Revert "fix: "detected no test modules" error in "foundation test --m…
Browse files Browse the repository at this point in the history
…odule""

This reverts commit cdc0959.
  • Loading branch information
florianow committed May 16, 2024
1 parent f3f196f commit d8b499a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/foundation/PlatformDeployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,8 @@ export class PlatformDeployer<T extends PlatformConfig> {
tenantModules: true,
};

// if we specifiy a single module and not a prefix path, pick a single file
const glob = relativeModulePath.endsWith(".test")
? `${relativeModulePath}/terragrunt.hcl`
: `${relativeModulePath}/${TEST_MODULE_GLOB}/terragrunt.hcl`;

const files = await this.repo.processFilesGlob(
glob,
`${relativeModulePath}/${TEST_MODULE_GLOB}/terragrunt.hcl`,
(file) => file,
excludes,
);
Expand Down

0 comments on commit d8b499a

Please sign in to comment.