Skip to content

Commit

Permalink
remove mocked-env dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuspoehls committed May 7, 2024
1 parent 307a942 commit d5926a4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"@supercharge/view": "^4.0.0-alpha.2",
"c8": "~8.0.1",
"expect": "~29.7.0",
"mocked-env": "~1.3.5",
"sinon": "~17.0.1",
"supertest": "~6.3.3",
"typescript": "~5.4.5",
Expand Down
5 changes: 0 additions & 5 deletions packages/core/test/http-kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { test } from 'uvu'
import Path from 'node:path'
import { expect } from 'expect'
import Supertest from 'supertest'
import MockedEnv from 'mocked-env'
import { fileURLToPath } from 'node:url'
import { Server } from '@supercharge/http'
import { HttpKernel, Application, ErrorHandler } from '../dist/index.js'
Expand Down Expand Up @@ -67,8 +66,6 @@ test('fails to bootstrap the HTTP kernel when missing a .env file', async () =>
})

test('loads specific environment from .env.testing file because of NODE_ENV=testing', async () => {
const restoreEnv = MockedEnv({ restore: true })

const env = app.env().get('NODE_ENV')
app.env().set('NODE_ENV', 'testing')

Expand All @@ -78,8 +75,6 @@ test('loads specific environment from .env.testing file because of NODE_ENV=test
expect(app.env().get('OVERWRITE')).toEqual('1')

app.env().set('NODE_ENV', env)

restoreEnv()
})

test('registers and calls booted callbacks', async () => {
Expand Down

0 comments on commit d5926a4

Please sign in to comment.