Skip to content

Commit 99b5756

Browse files
committed
fix: default TestingLibraryTemplate to drop 'extend-expect' from the @testing-library import path
1 parent 8edbe90 commit 99b5756

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/templates/component/componentTestTestingLibraryTemplate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
export default `import React from 'react';
22
import { render, screen } from '@testing-library/react';
3-
import '@testing-library/jest-dom/extend-expect';
3+
import '@testing-library/jest-dom';
44
import TemplateName from './TemplateName';
55
66
describe('<TemplateName />', () => {
77
test('it should mount', () => {
88
render(<TemplateName />);
9-
9+
1010
const templateName = screen.getByTestId('TemplateName');
1111
1212
expect(templateName).toBeInTheDocument();

0 commit comments

Comments
 (0)