Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react';
import {createMount, mount} from '@shopify/react-testing';
import translations from '../../locales/en.json';
import {
PolarisTestProvider,
WithPolarisTestProviderOptions,
} from '../components';
export {mount};
export const mountWithApp = createMount<
WithPolarisTestProviderOptions,
WithPolarisTestProviderOptions
>({
context(options) {
return options;
},
render(element, context) {
return (
{element}
);
},
});