Skip to content

Commit a91667f

Browse files
committed
Testing ...
1 parent 9eb1de8 commit a91667f

3 files changed

Lines changed: 28 additions & 9 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
"postcss": "^8.5.6",
9393
"prettier": "3.6.2",
9494
"prettier-plugin-tailwindcss": "^0.7.1",
95+
"puppeteer": "^24.38.0",
9596
"react": "^19.2.3",
9697
"react-docgen-typescript": "^2.4.0",
9798
"react-dom": "^19.2.3",

pnpm-lock.yaml

Lines changed: 9 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/compile-search-index.ts

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
11
import { compileSearchIndex } from "react-lib-tools/scripts/compile-search-index.ts";
2+
import puppeteer from "puppeteer";
23

34
// Detect and disable CI environment for now; I can't get GitHub and Puppeteer to play nicely together
45
const executablePath = process.env.CHROME_PATH;
56
console.log(`Chromium install path: ${executablePath}`);
6-
if (executablePath) {
7-
process.exit(0);
8-
}
7+
// if (executablePath) {
8+
// process.exit(0);
9+
// }
10+
11+
// TESTING ...
12+
const browser = await puppeteer.launch({
13+
args: ["--no-sandbox", "--disable-setuid-sandbox"],
14+
executablePath: executablePath!,
15+
headless: true
16+
});
17+
const page = await browser.newPage();
18+
console.log("Opening page...");
19+
await page.goto("http://localhost:3000");
20+
await page.waitForSelector("main");
21+
const textContent = await page.evaluate(() => document.body.textContent);
22+
console.log("TESTING:", textContent);
23+
// TESTING ...
924

1025
await compileSearchIndex({
1126
filterSelector: "[data-group]"

0 commit comments

Comments
 (0)