added initial integration tests with bun

This commit is contained in:
Bojan Kucera 2025-06-04 12:26:55 -04:00
parent 3e451558ac
commit fb22815450
52 changed files with 7588 additions and 364 deletions

View file

@ -0,0 +1,14 @@
import { test, expect } from 'bun:test';
test('check NODE_ENV', () => {
expect(process.env.NODE_ENV).toBeDefined();
console.log('NODE_ENV:', process.env.NODE_ENV);
});
test('check getEnvironment function', async () => {
const { getEnvironment, Environment } = await import('../src/core');
const currentEnv = getEnvironment();
console.log('getEnvironment() returns:', currentEnv);
console.log('Environment.Testing value:', Environment.Testing);
expect(currentEnv).toBe(Environment.Testing);
});