e6959004c9
Migrated webpack to vite. Replaced jest with vitest (because I couldn't resolve 'import.meta' issue) Replaced legacy vue-svg-loader with vite-svg-loader Replaced bip39 dep with bip39-english (it includes only english wordlist) Replaced aws-sdk v2 with aws-sdk V3 (because v2 was throwing some weird error in console. Ref: https://stackoverflow.com/questions/75107933/aws-sdk-contributes-to-build-error-uncaught-typeerror-e-is-not-a-constructor) Renamed VUE_APP_ENDPOINT_URL env variable to VITE_ENDPOINT_URL Removed a ton of dependencies (like babel and jest-related stuff). Tested in Chrome, Safari, Brave, Firefox and Opera browsers. Additionally fixed logout errors from buckets and object browser routes. TODO: try to remove util and stream-browserify dependencies and see if it works Change-Id: I4562649a59eb0ba80c1a672d55c59fceb8c80b23
10 lines
228 B
TypeScript
10 lines
228 B
TypeScript
// Copyright (C) 2023 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
import createFetchMock from 'vitest-fetch-mock';
|
|
import { vi } from 'vitest';
|
|
|
|
const fetchMocker = createFetchMock(vi);
|
|
|
|
fetchMocker.enableMocks();
|