mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 22:37:04 +08:00
test(server): add MockJobQueue (#11032)
This commit is contained in:
@@ -68,6 +68,10 @@ test.before(async () => {
|
||||
JobModule.forRoot(),
|
||||
],
|
||||
providers: [JobHandlers],
|
||||
tapModule: builder => {
|
||||
// use real JobQueue for testing
|
||||
builder.overrideProvider(JobQueue).useClass(JobQueue);
|
||||
},
|
||||
});
|
||||
|
||||
queue = module.get(JobQueue);
|
||||
|
||||
Reference in New Issue
Block a user