Skip to content

Commit ad2a5cc

Browse files
committed
test(notifications): Update various api and web component tests
1 parent 9ed71e5 commit ad2a5cc

File tree

16 files changed

+1345
-68
lines changed

16 files changed

+1345
-68
lines changed

api/src/unraid-api/graph/resolvers/vms/vms.service.spec.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const isQemuAvailable = () => {
158158
}
159159
};
160160

161-
describe('VmsService', () => {
161+
describe.skipIf(!isQemuAvailable())('VmsService', () => {
162162
let service: VmsService;
163163
let hypervisor: Hypervisor;
164164
let testVm: VmDomain | null = null;
@@ -184,14 +184,6 @@ describe('VmsService', () => {
184184
</domain>
185185
`;
186186

187-
beforeAll(() => {
188-
if (!isQemuAvailable()) {
189-
throw new Error(
190-
'QEMU not available - skipping VM integration tests. Please install QEMU to run these tests.'
191-
);
192-
}
193-
});
194-
195187
beforeAll(async () => {
196188
// Override the LIBVIRT_URI environment variable for testing
197189
process.env.LIBVIRT_URI = LIBVIRT_URI;

0 commit comments

Comments
 (0)