mirror of
https://github.com/podman-desktop/podman-desktop
synced 2026-05-24 10:18:53 +00:00
chore: make sure to run webview-preload init when running e2e tests (#6842)
* chore: webview-preload init not called on unit tests only Signed-off-by: Florent Benoit <fbenoit@redhat.com> --------- Signed-off-by: Ondrej Dockal <odockal@redhat.com>
This commit is contained in:
parent
f66a609dd3
commit
e7a0b8a4ef
1 changed files with 2 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ export const init = (): void => {
|
|||
webviewPreload.init().catch((error: unknown) => console.error('Error while initializing the exposure', error));
|
||||
};
|
||||
|
||||
// do not call init methd in case of testing
|
||||
if (!process.env.VITEST) {
|
||||
// do not call init method in case of testing
|
||||
if (import.meta.env.MODE !== 'test') {
|
||||
init();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue