diff --git a/apps/zui/src/app/release-notes/test.tsx b/apps/zui/src/app/release-notes/test.tsx index 5639a701e4..aa9df9c774 100644 --- a/apps/zui/src/app/release-notes/test.tsx +++ b/apps/zui/src/app/release-notes/test.tsx @@ -7,16 +7,17 @@ import {rest} from "msw" import {SystemTest} from "src/test/system" import ReleaseNotes from "./release-notes" import {screen} from "@testing-library/react" +import pkg from "../../../package.json" const system = new SystemTest("release-notes") +const url = + pkg.repository.replace("github.com", "api.github.com/repos") + + "/releases/tags/v0.0.0" system.network.use( - rest.get( - "https://api.github.com/repos/brimdata/zui/releases/tags/v0.0.0", - (req, res, ctx) => { - return res(ctx.status(200), ctx.json({body: "Testing Release Notes"})) - } - ) + rest.get(url, (req, res, ctx) => { + return res(ctx.status(200), ctx.json({body: "Testing Release Notes"})) + }) ) test("fetches the release notes", async () => {