Skip to content

Commit b562c68

Browse files
committed
rm skip
1 parent 1963c85 commit b562c68

5 files changed

Lines changed: 19 additions & 19 deletions

File tree

jest.setup.mongo-repl-set.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ beforeAll(async () => {
1515
let status = await admin.command({ replSetGetStatus: 1 }).catch(() => null);
1616

1717
if (status && status.ok) {
18-
console.log('✅ Replica set already initialized');
18+
// console.log('✅ Replica set already initialized');
1919
} else {
2020
await admin.command({ replSetInitiate: {} });
21-
console.log('✅ Replica set initiated');
21+
// console.log('✅ Replica set initiated');
2222
}
2323

2424
const startTime = Date.now();
@@ -39,7 +39,7 @@ beforeAll(async () => {
3939
await new Promise(resolve => setTimeout(resolve, 1000));
4040
} while (Date.now() - startTime < timeout);
4141

42-
console.log('✅ Replica set is stable');
42+
// console.log('✅ Replica set is stable');
4343
} catch (err) {
4444
console.error('❌ Failed to initiate replica set:', err);
4545
}

jest.setup.redis-mock.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ let redisTestContainer;
66
* Create test container with Redis, which could be used in tests
77
*/
88
beforeAll(async () => {
9-
// redisTestContainer = await new GenericContainer('redis')
10-
// .withExposedPorts(6379)
11-
// .start();
9+
redisTestContainer = await new GenericContainer('redis')
10+
.withExposedPorts(6379)
11+
.start();
1212

13-
// const port = redisTestContainer.getMappedPort(6379);
14-
// const host = redisTestContainer.getHost();
13+
const port = redisTestContainer.getMappedPort(6379);
14+
const host = redisTestContainer.getHost();
1515

16-
// /**
17-
// * Set environment variable for redisHelper to connect to redis container
18-
// */
19-
// process.env.REDIS_URL = `redis://${host}:${port}`;
16+
/**
17+
* Set environment variable for redisHelper to connect to redis container
18+
*/
19+
process.env.REDIS_URL = `redis://${host}:${port}`;
2020
}
2121
);
2222

2323
afterAll(async () => {
24-
// await redisTestContainer.stop();
24+
await redisTestContainer.stop();
2525
});

workers/javascript/src/utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export function getFunctionContext(sourceCode: string, line: number, sourcePath?
211211
*/
212212
ClassDeclaration(path) {
213213
if (path.node.loc && path.node.loc.start.line <= targetLine && path.node.loc.end.line >= targetLine) {
214-
console.log(`class declaration: loc: ${path.node.loc}, targetLine: ${targetLine}, node.start.line: ${path.node.loc.start.line}, node.end.line: ${path.node.loc.end.line}`);
214+
// console.log(`class declaration: loc: ${path.node.loc}, targetLine: ${targetLine}, node.start.line: ${path.node.loc.start.line}, node.end.line: ${path.node.loc.end.line}`);
215215

216216
className = path.node.id.name || null;
217217
}
@@ -224,7 +224,7 @@ export function getFunctionContext(sourceCode: string, line: number, sourcePath?
224224
*/
225225
ClassMethod(path) {
226226
if (path.node.loc && path.node.loc.start.line <= targetLine && path.node.loc.end.line >= targetLine) {
227-
console.log(`class declaration: loc: ${path.node.loc}, targetLine: ${targetLine}, node.start.line: ${path.node.loc.start.line}, node.end.line: ${path.node.loc.end.line}`);
227+
// console.log(`class declaration: loc: ${path.node.loc}, targetLine: ${targetLine}, node.start.line: ${path.node.loc.start.line}, node.end.line: ${path.node.loc.end.line}`);
228228

229229
// Handle different key types
230230
if (path.node.key.type === 'Identifier') {
@@ -240,7 +240,7 @@ export function getFunctionContext(sourceCode: string, line: number, sourcePath?
240240
*/
241241
FunctionDeclaration(path) {
242242
if (path.node.loc && path.node.loc.start.line <= targetLine && path.node.loc.end.line >= targetLine) {
243-
console.log(`function declaration: loc: ${path.node.loc}, targetLine: ${targetLine}, node.start.line: ${path.node.loc.start.line}, node.end.line: ${path.node.loc.end.line}`);
243+
// console.log(`function declaration: loc: ${path.node.loc}, targetLine: ${targetLine}, node.start.line: ${path.node.loc.start.line}, node.end.line: ${path.node.loc.end.line}`);
244244

245245
functionName = path.node.id.name || null;
246246
isAsync = path.node.async;
@@ -259,7 +259,7 @@ export function getFunctionContext(sourceCode: string, line: number, sourcePath?
259259
path.node.loc.start.line <= targetLine &&
260260
path.node.loc.end.line >= targetLine
261261
) {
262-
console.log(`variable declaration: node.type: ${path.node.init.type}, targetLine: ${targetLine}, `);
262+
// console.log(`variable declaration: node.type: ${path.node.init.type}, targetLine: ${targetLine}, `);
263263

264264
// Handle different id types
265265
if (path.node.id.type === 'Identifier') {

workers/notifier/tests/redisHelper.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import RedisHelper from '../src/redisHelper';
22
import { createClient, RedisClientType } from 'redis';
33

4-
describe.skip('RedisHelper', () => {
4+
describe('RedisHelper', () => {
55
let redisHelper: RedisHelper;
66
let redisClientMock: jest.Mocked<ReturnType<typeof createClient>>;
77
let redisClient: RedisClientType;

workers/notifier/tests/worker.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class MockDBController {
135135
}
136136
}
137137

138-
describe.skip('NotifierWorker', () => {
138+
describe('NotifierWorker', () => {
139139
// eslint-disable-next-line @typescript-eslint/no-var-requires
140140
const NotifierWorker = require('../src').default;
141141
let redisClient: RedisClientType;

0 commit comments

Comments
 (0)