diff options
Diffstat (limited to 'packages/anastasis-webui/tests')
4 files changed, 0 insertions, 33 deletions
diff --git a/packages/anastasis-webui/tests/__mocks__/browserMocks.ts b/packages/anastasis-webui/tests/__mocks__/browserMocks.ts deleted file mode 100644 index 5be8c3ce6..000000000 --- a/packages/anastasis-webui/tests/__mocks__/browserMocks.ts +++ /dev/null @@ -1,21 +0,0 @@ -// Mock Browser API's which are not supported by JSDOM, e.g. ServiceWorker, LocalStorage -/** - * An example how to mock localStorage is given below 👇 - */ - -/* -// Mocks localStorage -const localStorageMock = (function() { - let store = {}; - - return { - getItem: (key) => store[key] || null, - setItem: (key, value) => store[key] = value.toString(), - clear: () => store = {} - }; - -})(); - -Object.defineProperty(window, 'localStorage', { - value: localStorageMock -}); */ diff --git a/packages/anastasis-webui/tests/__mocks__/fileMocks.ts b/packages/anastasis-webui/tests/__mocks__/fileMocks.ts deleted file mode 100644 index 87109e355..000000000 --- a/packages/anastasis-webui/tests/__mocks__/fileMocks.ts +++ /dev/null @@ -1,3 +0,0 @@ -// This fixed an error related to the CSS and loading gif breaking my Jest test -// See https://facebook.github.io/jest/docs/en/webpack.html#handling-static-assets -export default 'test-file-stub'; diff --git a/packages/anastasis-webui/tests/__mocks__/setupTests.ts b/packages/anastasis-webui/tests/__mocks__/setupTests.ts deleted file mode 100644 index 01dc92a29..000000000 --- a/packages/anastasis-webui/tests/__mocks__/setupTests.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { configure } from 'enzyme'; -import Adapter from 'enzyme-adapter-preact-pure'; - -configure({ - adapter: new Adapter() -}); diff --git a/packages/anastasis-webui/tests/declarations.d.ts b/packages/anastasis-webui/tests/declarations.d.ts deleted file mode 100644 index 67e940277..000000000 --- a/packages/anastasis-webui/tests/declarations.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// Enable enzyme adapter's integration with TypeScript -// See: https://github.com/preactjs/enzyme-adapter-preact-pure#usage-with-typescript -/// <reference types="enzyme-adapter-preact-pure" /> |