Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
547 Bytes
import React from 'react';
import renderer from 'react-test-renderer';
import { Router, Route } from 'react-router-dom/cjs/react-router-dom.min';
import { createMemoryHistory } from 'history';
import App from './App';
const history = createMemoryHistory('/');
describe('react-router recipe', () => {
it('App renders without crashing', () => {
const component = renderer.create(
<Router history={history}>
<Route path="/" component={App} />
</Router>
);
expect(component.toJSON()).toMatchSnapshot();
});
});