Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Expose sinon assertions.
sinon.assert.expose(assert, { prefix: null });
// Configure Enzyme for UI tests.
require('preact/debug');
import { patchPropTypes } from './frontend_apps/utils/prop-types';
import propTypes from 'prop-types';
patchPropTypes(propTypes);
import { configure } from 'enzyme';
import { Adapter } from 'enzyme-adapter-preact-pure';
configure({ adapter: new Adapter() });
// Register the same set of icons that is available in the app.
import { registerIcons } from './frontend_apps/components/SvgIcon';
import iconSet from './frontend_apps/icons';
registerIcons(iconSet);