rtk: Add base to url and fix mock handler

This commit is contained in:
Ondrej Ezr 2024-07-18 12:47:57 +02:00 committed by Klara Simickova
parent 797ceddcd1
commit a1a49806e1
9 changed files with 3670 additions and 5233 deletions

View file

@ -1,10 +1,10 @@
import { configure } from '@testing-library/react';
import nodeFetch, { Request, Response } from 'node-fetch';
// import nodeFetch, { Request, Response } from 'node-fetch';
import { server } from './mocks/server';
import 'vitest-canvas-mock';
Object.assign(global, { fetch: nodeFetch, Request, Response });
// Object.assign(global, { fetch: nodeFetch, Request, Response });
// scrollTo is not defined in jsdom - needed for the navigation to the wizard
window.HTMLElement.prototype.scrollTo = function () {};