b23b3e02e6
This change updates VButton with composition API, updates .eslintrc.js to ignore resulting import errors, and fix resulting test failures. see: https://github.com/storj/storj/issues/5114 Change-Id: Iaf9e8323333c797936d3acb38dd32f6e27d1ed08
15 lines
529 B
TypeScript
15 lines
529 B
TypeScript
// Copyright (C) 2019 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
import { GlobalWithFetchMock } from 'jest-fetch-mock';
|
|
|
|
const customGlobal = (global as unknown) as
|
|
(GlobalWithFetchMock & { console: Record<any,unknown> });
|
|
|
|
customGlobal.fetch = require('jest-fetch-mock');
|
|
customGlobal.fetchMock = customGlobal.fetch;
|
|
|
|
// Disallow warnings and errors from console.
|
|
customGlobal.console.warn = (message) => { throw new Error(message); };
|
|
customGlobal.console.error = (message) => { throw new Error(message); };
|