Skip to content

Commit

Permalink
Fix tests for Next
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingItWrong committed Apr 30, 2024
1 parent df872db commit 6140c2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,16 +359,16 @@ function initializeNext(answers) {
});
group('Add sample RTL test', () => {
writeFile(
'pages/index.spec.js',
'app/page.spec.js',
dedent`
import {render, screen} from '@testing-library/react';
import Home from './index'
import Home from './page'
describe('Home', () => {
it('renders', () => {
render(<Home />);
expect(screen.getByText('Next.js!')).toBeInTheDocument();
expect(screen.getByText('app/page.js')).toBeInTheDocument();
});
});
`
Expand Down

0 comments on commit 6140c2b

Please sign in to comment.