84539f5798
* all: fix missing Vue.use(Router) * multinode: having same state and module names is not allowed * multinode: simplify store definition * storagenode: add or fix any annotations Change-Id: If8a63ae46049fc77fc6cd7a7ad912d4ad74d23ac
13 lines
495 B
TypeScript
13 lines
495 B
TypeScript
// Copyright (C) 2019 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
import { GlobalWithFetchMock } from 'jest-fetch-mock';
|
|
|
|
const customGlobal: GlobalWithFetchMock = global as GlobalWithFetchMock;
|
|
|
|
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); }; |