test: Remove unnecessary jsdom environment declarations (#2616)
This commit is contained in:
@@ -53,7 +53,6 @@ import { GENERATED_ACTION } from '../../../src/config/schema/actions/custom/gene
|
||||
import { INTERNAL_CALLBACK_ACTION } from '../../../src/config/schema/actions/custom/internal';
|
||||
import type { ActionConfig } from '../../../src/config/schema/actions/types';
|
||||
|
||||
// @vitest-environment jsdom
|
||||
describe('ActionFactory', () => {
|
||||
it('should return null for mismatched card-id', () => {
|
||||
const factory = new ActionFactory();
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// @vitest-environment jsdom
|
||||
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
||||
import { mock } from 'vitest-mock-extended';
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@ import { createCardAPI, createConfig, createHASS } from '../test-utils';
|
||||
vi.mock('../../src/localize/localize.js');
|
||||
vi.mock('../../src/ha/side-load-ha-elements.js');
|
||||
|
||||
// @vitest-environment jsdom
|
||||
describe('InitializationManager', () => {
|
||||
beforeEach(async () => {
|
||||
vi.resetAllMocks();
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// @vitest-environment jsdom
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
import { createRetryControl } from '../../../src/card-controller/issues/retry-control';
|
||||
|
||||
Reference in New Issue
Block a user