Skip to content

Commit efc7451

Browse files
committed
test(backend): set env before app build, fix import order
1 parent f5cb87c commit efc7451

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

apps/backend/src/__tests__/app.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
import { describe, it, expect, vi } from 'vitest';
2+
3+
import { buildApp } from '../app';
4+
15
process.env.NODE_ENV = 'test';
26
process.env.JWT_SECRET ||= 'test-jwt-secret';
37
process.env.ENCRYPTION_KEY ||= 'test-encryption-key';
48

5-
import { describe, it, expect, vi } from 'vitest';
6-
import { buildApp } from '../app';
7-
89
describe('GET /health', () => {
910
it('should return status ok', async () => {
1011
const app = await buildApp();

0 commit comments

Comments
 (0)