Add tests for env validation

This commit is contained in:
Manuel
2023-09-07 22:00:55 +02:00
parent 7b2c0d63f3
commit 9b0f01afc2

11
src/env.spec.ts Normal file
View File

@@ -0,0 +1,11 @@
import { describe, expect, it, vi } from 'vitest';
import { env } from './env';
describe('environment validation', () => {
it('test', () => {
vi.stubEnv('PORT', '9876')
expect(env.NEXT_PUBLIC_PORT).toBe(9876);
});
});