diff --git a/.gitignore b/.gitignore index 4b56acf..d1b3524 100644 --- a/.gitignore +++ b/.gitignore @@ -37,6 +37,7 @@ lerna-debug.log* # dotenv environment variable files .env +.env.test .env.development.local .env.test.local .env.production.local diff --git a/test/config/testConfig.module.ts b/test/config/testConfig.module.ts new file mode 100644 index 0000000..f572c49 --- /dev/null +++ b/test/config/testConfig.module.ts @@ -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 {}