rhizome-node/__tests__/jest-setup.ts

15 lines
497 B
TypeScript

// Set up environment variables for tests
// DEBUG handling examples:
// npm test // will set DEBUG=rz:* by default
// NO_DEBUG=true npm test // will not set DEBUG
// DEBUG=other npm test // will set DEBUG=other
if (!process.env.DEBUG && !process.env.NO_DEBUG) {
process.env.DEBUG = 'rz:*';
}
// This is a placeholder test to satisfy Jest's requirement for at least one test
describe('Test Setup', () => {
it('should pass', () => {
expect(true).toBe(true);
});
});