added initial integration tests with bun
This commit is contained in:
parent
3e451558ac
commit
fb22815450
52 changed files with 7588 additions and 364 deletions
14
libs/config/test/debug.test.ts
Normal file
14
libs/config/test/debug.test.ts
Normal 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);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue