1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-07 14:55:27 +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 +0,0 @@
export function loadProgressBar() {}

View file

@ -2,7 +2,6 @@ import toastr from 'toastr';
import { notifyError, notifySuccess, notifyWarning } from './notifications';
vi.mock('toastr');
vi.spyOn(console, 'error').mockImplementation(() => vi.fn());
afterEach(() => {

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