Skip to content

Commit

Permalink
Merge branch 'master' into create-react-admin-ci-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
slax57 committed Jan 24, 2025
2 parents 3e09f19 + 69307a1 commit f114b93
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/create-react-admin/src/generateAppTestFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@ export const generateAppTestFile = (
path.join(projectDirectory, 'src', 'App.spec.tsx'),
`
import { fireEvent, render, screen } from "@testing-library/react";
import { MemoryRouter } from "react-router";
import { App } from "./App";
test("should pass", async () => {
vi.spyOn(window, "scrollTo").mockImplementation(() => { /* do nothing */ });
render(<App />);
render(
<MemoryRouter>
<App />
</MemoryRouter>,
);
${
state.authProvider !== 'none'
? `
Expand Down

0 comments on commit f114b93

Please sign in to comment.