Sha256: 04331b9e09c8dbd0fe7dfdf842f25d8fb522f493db9013c384460f9fe016473e

Contents?: true

Size: 872 Bytes

Versions: 136

Compression:

Stored size: 872 Bytes

Contents

// Setup file for enzyme
// See http://airbnb.io/enzyme/docs/installation/react-16.html
import 'core-js/shim';
import 'regenerator-runtime/runtime';

import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import MutationObserver from '@sheerun/mutationobserver-shim';
import * as Services from './services/api';

configure({ adapter: new Adapter() });

// Mocking translation function
global.__ = text => text; // eslint-disable-line
Services.orgId = () => 1;

// Mocking locales to prevent unnecessary fallback messages
window.locales = { en: { domain: 'app', locale_data: { app: { '': {} } } } };

// see https://github.com/testing-library/dom-testing-library/releases/tag/v7.0.0
window.MutationObserver = MutationObserver;

// This will return undefined in test environments and is expected in some helper functions.
window.URL_PREFIX = '';

Version data entries

136 entries across 136 versions & 1 rubygems

Version Path
katello-4.4.0.2 webpack/test_setup.js
katello-4.4.0.1 webpack/test_setup.js
katello-4.3.1 webpack/test_setup.js
katello-4.4.0 webpack/test_setup.js
katello-4.4.0.rc2 webpack/test_setup.js
katello-4.4.0.rc1 webpack/test_setup.js
katello-4.2.2 webpack/test_setup.js
katello-4.3.0 webpack/test_setup.js
katello-4.3.0.rc4 webpack/test_setup.js
katello-4.3.0.rc3 webpack/test_setup.js
katello-4.3.0.rc2.1 webpack/test_setup.js
katello-4.3.0.rc2 webpack/test_setup.js
katello-4.3.0.rc1 webpack/test_setup.js
katello-4.2.1 webpack/test_setup.js
katello-4.2.0.1 webpack/test_setup.js
katello-4.1.4 webpack/test_setup.js
katello-4.0.3 webpack/test_setup.js
katello-4.2.0.1.rc3 webpack/test_setup.js
katello-3.18.5 webpack/test_setup.js
katello-4.2.0.1.rc2 webpack/test_setup.js