Skip to content

Commit 046faf1

Browse files
committed
chore(tests): remove unnecessary locations config and debug logs
1 parent 1db9f85 commit 046faf1

File tree

5 files changed

+0
-54
lines changed

5 files changed

+0
-54
lines changed

tests/adapter.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ test.group('Adapter | Redis', (group) => {
3838

3939
// Flush before test
4040
await connection.flushdb()
41-
console.log('[Redis Setup] Flushed DB 15, keys after flush:', await connection.keys('*'))
4241

4342
return async () => {
44-
console.log('[Redis Teardown] Keys before quit:', await connection.keys('*'))
4543
await connection.quit()
4644
}
4745
})

tests/job_dispatcher.spec.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ test.group('JobDispatcher', () => {
1111
const localConfig = {
1212
default: 'memory',
1313
adapters: { memory: () => sharedAdapter },
14-
locations: ['./jobs/**/*'],
1514
}
1615

1716
await QueueManager.init(localConfig)
@@ -35,7 +34,6 @@ test.group('JobDispatcher', () => {
3534
const localConfig = {
3635
default: 'memory',
3736
adapters: { memory: () => sharedAdapter },
38-
locations: ['./jobs/**/*'],
3937
}
4038

4139
await QueueManager.init(localConfig)
@@ -61,7 +59,6 @@ test.group('JobDispatcher', () => {
6159
const localConfig = {
6260
default: 'memory',
6361
adapters: { memory: () => memoryAdapter, anotherMemory: () => anotherMemoryAdapter },
64-
locations: ['./jobs/**/*'],
6562
}
6663

6764
await QueueManager.init(localConfig)
@@ -89,7 +86,6 @@ test.group('JobDispatcher', () => {
8986
const localConfig = {
9087
default: 'memory',
9188
adapters: { memory: () => memoryAdapter },
92-
locations: ['./jobs/**/*'],
9389
}
9490

9591
await QueueManager.init(localConfig)
@@ -116,7 +112,6 @@ test.group('JobDispatcher', () => {
116112
const localConfig = {
117113
default: 'memory',
118114
adapters: { memory: () => sharedAdapter },
119-
locations: ['./jobs/**/*'],
120115
}
121116

122117
await QueueManager.init(localConfig)
@@ -142,7 +137,6 @@ test.group('JobDispatcher', () => {
142137
const localConfig = {
143138
default: 'memory',
144139
adapters: { memory: () => sharedAdapter },
145-
locations: ['./jobs/**/*'],
146140
}
147141

148142
await QueueManager.init(localConfig)
@@ -170,7 +164,6 @@ test.group('JobDispatcher', () => {
170164
const localConfig = {
171165
default: 'memory',
172166
adapters: { memory: () => sharedAdapter },
173-
locations: ['./jobs/**/*'],
174167
}
175168

176169
await QueueManager.init(localConfig)
@@ -196,7 +189,6 @@ test.group('JobDispatcher | DispatchResult', () => {
196189
const localConfig = {
197190
default: 'memory',
198191
adapters: { memory: () => sharedAdapter },
199-
locations: ['./jobs/**/*'],
200192
}
201193

202194
await QueueManager.init(localConfig)
@@ -217,7 +209,6 @@ test.group('JobDispatcher | DispatchResult', () => {
217209
const localConfig = {
218210
default: 'memory',
219211
adapters: { memory: () => sharedAdapter },
220-
locations: ['./jobs/**/*'],
221212
}
222213

223214
await QueueManager.init(localConfig)

tests/queue_manager.spec.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ test.group('QueueManager', () => {
1313
await QueueManager.init({
1414
default: 'sync',
1515
adapters: {},
16-
locations: ['./jobs/**/*'],
1716
})
1817
} catch (error) {
1918
assert.instanceOf(error, errors.E_CONFIGURATION_ERROR)
@@ -31,7 +30,6 @@ test.group('QueueManager', () => {
3130
await QueueManager.init({
3231
default: '',
3332
adapters: { sync: sync() },
34-
locations: ['./jobs/**/*'],
3533
})
3634
} catch (error) {
3735
assert.instanceOf(error, errors.E_CONFIGURATION_ERROR)
@@ -46,7 +44,6 @@ test.group('QueueManager', () => {
4644
await QueueManager.init({
4745
default: 'sync',
4846
adapters: { sync: 'not-a-function' as any },
49-
locations: ['./jobs/**/*'],
5047
})
5148
} catch (error) {
5249
assert.instanceOf(error, errors.E_CONFIGURATION_ERROR)
@@ -64,7 +61,6 @@ test.group('QueueManager', () => {
6461
await QueueManager.init({
6562
default: 'missing',
6663
adapters: { sync: sync() },
67-
locations: ['./jobs/**/*'],
6864
})
6965
} catch (error) {
7066
assert.instanceOf(error, errors.E_CONFIGURATION_ERROR)

tests/schedule.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ test.group('ScheduleBuilder', (group) => {
1414
await QueueManager.init({
1515
default: 'memory',
1616
adapters: { memory: () => sharedAdapter },
17-
locations: ['./jobs/**/*'],
1817
})
1918

2019
return () => QueueManager.destroy()
@@ -228,7 +227,6 @@ test.group('Schedule', (group) => {
228227
await QueueManager.init({
229228
default: 'memory',
230229
adapters: { memory: () => sharedAdapter },
231-
locations: ['./jobs/**/*'],
232230
})
233231

234232
return () => QueueManager.destroy()

0 commit comments

Comments
 (0)