14 lines
510 B
TypeScript
14 lines
510 B
TypeScript
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);
|
|
});
|