Skip to content

Commit 25ff13b

Browse files
committed
fix(api): ensure proper cleanup in InfoResolver integration tests
- Added a null check for the `module` before calling `close()` in the `afterEach` hook to prevent potential errors during test teardown.
1 parent 6930bb0 commit 25ff13b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

api/src/unraid-api/graph/resolvers/info/info.resolver.integration.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ describe('InfoResolver Integration Tests', () => {
6868
});
6969

7070
afterEach(async () => {
71-
await module.close();
71+
if (module) {
72+
await module.close();
73+
}
7274
});
7375

7476
describe('InfoResolver ResolveFields', () => {

0 commit comments

Comments
 (0)