1
0
Fork 0
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:
Chaim Lev-Ari 2024-01-23 15:22:56 +02:00 committed by GitHub
parent 69c06bc756
commit 8f0f9d7aaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 13 additions and 35 deletions

View file

@ -1,5 +0,0 @@
import 'regenerator-runtime/runtime';
export default function setupTests() {
// pass
}

View 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() {},
}));