Simplify Studio test command to bare bun test and prune legacy postgres tests
This commit is contained in:
parent
39f6f1fdfe
commit
e7230e398e
38 changed files with 17 additions and 16216 deletions
|
|
@ -14,7 +14,7 @@ describe('Queue Utils', () => {
|
|||
process.env = originalEnv;
|
||||
});
|
||||
|
||||
it('should return test connection in test environment', () => {
|
||||
it('should preserve explicit endpoint in test environment', () => {
|
||||
process.env.NODE_ENV = 'test';
|
||||
|
||||
const config: RedisConfig = {
|
||||
|
|
@ -25,12 +25,12 @@ describe('Queue Utils', () => {
|
|||
|
||||
const connection = getRedisConnection(config);
|
||||
|
||||
expect(connection.host).toBe('localhost');
|
||||
expect(connection.port).toBe(6379);
|
||||
expect(connection.password).toBeUndefined();
|
||||
expect(connection.host).toBe('production.redis.com');
|
||||
expect(connection.port).toBe(6380);
|
||||
expect(connection.password).toBe('secret');
|
||||
});
|
||||
|
||||
it('should return test connection when BUNIT is set', () => {
|
||||
it('should preserve explicit endpoint when BUNIT is set', () => {
|
||||
process.env.BUNIT = '1';
|
||||
|
||||
const config: RedisConfig = {
|
||||
|
|
@ -40,8 +40,8 @@ describe('Queue Utils', () => {
|
|||
|
||||
const connection = getRedisConnection(config);
|
||||
|
||||
expect(connection.host).toBe('localhost');
|
||||
expect(connection.port).toBe(6379);
|
||||
expect(connection.host).toBe('production.redis.com');
|
||||
expect(connection.port).toBe(6380);
|
||||
});
|
||||
|
||||
it('should return actual config in non-test environment', () => {
|
||||
|
|
@ -66,7 +66,7 @@ describe('Queue Utils', () => {
|
|||
expect(connection.enableReadyCheck).toBe(false);
|
||||
expect(connection.connectTimeout).toBe(3000);
|
||||
expect(connection.lazyConnect).toBe(false);
|
||||
expect(connection.keepAlive).toBe(true);
|
||||
expect(connection.keepAlive).toBe(10000);
|
||||
expect(typeof connection.retryStrategy).toBe('function');
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue