mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-08 16:37:15 +00:00
Add global mocks for $primevue config on test
This commit is contained in:
parent
f6b5ca26ab
commit
ed9af4cfb3
13 changed files with 19 additions and 134 deletions
|
@ -1,16 +1,7 @@
|
|||
import { config, mount } from '@vue/test-utils';
|
||||
import { mount } from '@vue/test-utils';
|
||||
import { beforeEach, expect } from 'vitest';
|
||||
import BlockUI from './BlockUI.vue';
|
||||
|
||||
config.global.mocks = {
|
||||
$primevue: {
|
||||
config: {
|
||||
zIndex: {
|
||||
modal: 1100
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
vi.mock('primevue/utils');
|
||||
let wrapper = null;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue