mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
fix(ui): stub unused modules [EE-6583] (#11006)
This commit is contained in:
parent
69c06bc756
commit
8f0f9d7aaa
6 changed files with 13 additions and 35 deletions
|
@ -1,5 +0,0 @@
|
|||
import 'regenerator-runtime/runtime';
|
||||
|
||||
export default function setupTests() {
|
||||
// pass
|
||||
}
|
8
app/setup-tests/stub-modules.ts
Normal file
8
app/setup-tests/stub-modules.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
// this file takes care of stubbing modules that are not tested, like
|
||||
// axios-progress-bar
|
||||
// toastr
|
||||
|
||||
vi.mock('toastr');
|
||||
vi.mock('axios-progress-bar', () => ({
|
||||
loadProgressBar() {},
|
||||
}));
|
Loading…
Add table
Add a link
Reference in a new issue