Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Mar 25, 2024
2 parents cf8e3c5 + 7b37307 commit 15dcdfa
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 36 deletions.
56 changes: 28 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
"devDependencies": {
"@commitlint/cli": "19.2.1",
"@commitlint/config-angular": "19.1.0",
"@nestjs/common": "10.3.4",
"@nestjs/core": "10.3.4",
"@nestjs/platform-express": "10.3.4",
"@nestjs/testing": "10.3.4",
"@nestjs/common": "10.3.5",
"@nestjs/core": "10.3.5",
"@nestjs/platform-express": "10.3.5",
"@nestjs/testing": "10.3.5",
"@types/jest": "29.5.12",
"@types/lodash": "4.17.0",
"@types/node": "20.11.30",
Expand Down
8 changes: 6 additions & 2 deletions tests/e2e/cache.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ describe('Cache', () => {
let app: INestApplication;
let envBackup: NodeJS.ProcessEnv;
beforeAll(() => {
envBackup = process.env;
envBackup = {
...process.env,
};
});
describe('without cache', () => {
beforeAll(async () => {
Expand Down Expand Up @@ -56,7 +58,9 @@ describe('Cache', () => {
});

afterEach(async () => {
process.env = envBackup;
process.env = {
...envBackup,
};
await app.close();
});
});
8 changes: 6 additions & 2 deletions tests/e2e/load-priority.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ describe('Environment variables and .env files', () => {
let app: INestApplication;
let envBackup: NodeJS.ProcessEnv;
beforeAll(() => {
envBackup = process.env;
envBackup = {
...process.env,
};
});
describe('without conflicts', () => {
beforeAll(async () => {
Expand Down Expand Up @@ -65,7 +67,9 @@ describe('Environment variables and .env files', () => {
});

afterEach(async () => {
process.env = envBackup;
process.env = {
...envBackup,
};
await app.close();
});
});

0 comments on commit 15dcdfa

Please sign in to comment.