hunk.code_window: async function run() {
     let packageJson = require("../package.json");
     try {
       await require("remix/magic").installMagicExports(
         path.resolve(__dirname, "..", "magicExports"),
         { [packageJson.name]: packageJson.version }
       );
     } catch (error) {
       if (error.code === "MODULE_NOT_FOUND") {
  
hunk.labels: keep keep keep keep keep replace replace keep keep keep
hunk.after_edit:       { [packageJson.name]: packageJson.version },
         path.resolve(__dirname, "..", "magicExports")
  
hunk.file_path: packages/remix-react/scripts/postinstall.ts
hunk.type: replace
file: import type { Browser, Page } from "puppeteer";
  import puppeteer from "puppeteer";
  
  import { collectResponses } from "./utils";
  
  const testPort = 3000;
  const testServer = `http://localhost:${testPort}`;
  
  describe("route headers", () => {
    let browser: Browser;
    let page: Page;
    beforeEach(async () => {
      browser = await puppeteer.launch();
      page = await browser.newPage();
    });
  
    afterEach(() => browser.close());
  
    describe("from a JavaScript route", () => {
      it("are correct", async () => {
        let responses = collectResponses(page, url => url.pathname === "/gists");
  
        await page.goto(`${testServer}/gists`);
  
        expect(responses).toHaveLength(1);
        expect(responses[0].headers()["cache-control"]).toEqual(
          "public, max-age=60"
        );
      });
    });
  
    describe("from a JavaScript child route", () => {
      it("overrides the parent header of the same name", async () => {
        let responses = collectResponses(
          page,
          url => url.pathname === "/gists/mjackson"
        );
  
        await page.goto(`${testServer}/gists/mjackson`);
  
        expect(responses).toHaveLength(1);
        expect(responses[0].headers()["cache-control"]).toEqual(
          "public, max-age=300"
        );
      });
    });
  });
  