Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "22"
- name: Install dependencies
run: yarn --immutable
- name: Run checks
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/edge_ghpage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fetch-tags: true
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
- name: Install and Build 🔧
run: |
yarn install --immutable
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
- run: yarn install --immutable
- run: yarn build
- run: |
Expand Down
17 changes: 15 additions & 2 deletions src/App.test.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
import { render, screen } from "@testing-library/react";
import { MemoryRouter } from 'react-router-dom';
import fetchMock from "jest-fetch-mock";
fetchMock.enableMocks();

import App from "./App";

jest.mock("./synapse/authProvider", () => ({
__esModule: true,
default: {
logout: jest.fn().mockResolvedValue(undefined),
},
}));

describe("App", () => {
it("renders", async () => {
render(<App />);
await screen.findAllByText("Welcome to Synapse-admin");
render(
<MemoryRouter>
<App />
</MemoryRouter>
);
const heading = await screen.findByText("Welcome to Synapse-admin");
expect(heading).toBeInTheDocument();
});
});