|
1 | | -import { createTestingPinia } from '@pinia/testing' |
2 | 1 | import { cleanup, render, screen, waitFor } from '@testing-library/vue' |
3 | 2 | import userEvent from '@testing-library/user-event' |
4 | | -import { setActivePinia } from 'pinia' |
5 | 3 | import PrimeVue from 'primevue/config' |
6 | | -import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' |
| 4 | +import { afterEach, describe, expect, it, vi } from 'vitest' |
7 | 5 | import { defineComponent, h, nextTick } from 'vue' |
8 | 6 | import { createI18n } from 'vue-i18n' |
9 | 7 |
|
@@ -105,10 +103,6 @@ function mountDialog() { |
105 | 103 | } |
106 | 104 |
|
107 | 105 | describe('GlobalDialog renderer branching', () => { |
108 | | - beforeEach(() => { |
109 | | - setActivePinia(createTestingPinia({ stubActions: false })) |
110 | | - }) |
111 | | - |
112 | 106 | afterEach(() => { |
113 | 107 | cleanup() |
114 | 108 | }) |
@@ -177,10 +171,6 @@ describe('GlobalDialog renderer branching', () => { |
177 | 171 | }) |
178 | 172 |
|
179 | 173 | describe('GlobalDialog Reka parity with PrimeVue', () => { |
180 | | - beforeEach(() => { |
181 | | - setActivePinia(createTestingPinia({ stubActions: false })) |
182 | | - }) |
183 | | - |
184 | 174 | afterEach(() => { |
185 | 175 | cleanup() |
186 | 176 | }) |
@@ -368,10 +358,6 @@ describe('GlobalDialog Reka parity with PrimeVue', () => { |
368 | 358 | }) |
369 | 359 |
|
370 | 360 | describe('GlobalDialog Reka overlay scrim', () => { |
371 | | - beforeEach(() => { |
372 | | - setActivePinia(createTestingPinia({ stubActions: false })) |
373 | | - }) |
374 | | - |
375 | 361 | afterEach(() => { |
376 | 362 | cleanup() |
377 | 363 | }) |
@@ -490,10 +476,6 @@ describe('GlobalDialog Reka overlay scrim', () => { |
490 | 476 | }) |
491 | 477 |
|
492 | 478 | describe('GlobalDialog Reka focus-outside binding', () => { |
493 | | - beforeEach(() => { |
494 | | - setActivePinia(createTestingPinia({ stubActions: false })) |
495 | | - }) |
496 | | - |
497 | 479 | afterEach(() => { |
498 | 480 | cleanup() |
499 | 481 | }) |
|
0 commit comments