Skip to content

Commit

Permalink
test: update integration test to use new dotenv-expand opts
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Jan 17, 2025
1 parent a1225db commit 49c13fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/conditional.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class ConditionalModule {
const evaluation = condition(process.env);
if (evaluation) {
returnModule.imports.push(module);
returnModule.exports.push(module);
returnModule.exports.push(module as Exclude<typeof module, Promise<any>>);
} else {
if (debug) {
Logger.debug(
Expand Down
2 changes: 1 addition & 1 deletion tests/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class AppModule {
imports: [
ConfigModule.forRoot({
envFilePath: join(__dirname, '.env.expanded'),
expandVariables: { ignoreProcessEnv: true },
expandVariables: { processEnv: {} },
}),
],
};
Expand Down

0 comments on commit 49c13fc

Please sign in to comment.