Skip to content

Commit

Permalink
test config module
Browse files Browse the repository at this point in the history
  • Loading branch information
siwonpada committed Mar 9, 2024
1 parent 6f748e5 commit c612978
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ lerna-debug.log*

# dotenv environment variable files
.env
.env.test
.env.development.local
.env.test.local
.env.production.local
Expand Down
12 changes: 12 additions & 0 deletions test/config/testConfig.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';

@Module({
imports: [
ConfigModule.forRoot({
isGlobal: true,
envFilePath: '.env.test',
}),
],
})
export class testConfigModule {}

0 comments on commit c612978

Please sign in to comment.