mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-19 22:12:15 +01:00
✅ Add tests for env validation
This commit is contained in:
11
src/env.spec.ts
Normal file
11
src/env.spec.ts
Normal 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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user