testeranto 0.79.59 → 0.79.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Bundle.Dockerfile CHANGED
@@ -29,6 +29,7 @@ RUN yarn run init
29
29
  RUN apt-get update && apt-get install -y chromium
30
30
  RUN /usr/bin/chromium --no-sandbox --version > /etc/chromium-version
31
31
 
32
+ ENV CHROMIUM_PATH=/usr/bin/chromium
32
33
  RUN yarn bundle
33
34
  # COPY ./docs/ /usr/src/app/docs
34
35
  # # COPY ./testeranto.json /usr/src/app/testeranto.json
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "testeranto",
3
3
  "description": "teeny tiny tightly-typed typescript tests",
4
- "version": "0.79.59",
4
+ "version": "0.79.60",
5
5
  "engines": {
6
6
  "node": "18.18.0"
7
7
  },
@@ -253,4 +253,4 @@
253
253
  "uuid": "^10.0.0",
254
254
  "ws": "^8.16.0"
255
255
  }
256
- }
256
+ }
package/src/Puppeteer.ts CHANGED
@@ -18,6 +18,8 @@ const childProcesses: Record<string, "loaded" | "running" | "done"> = {};
18
18
  readline.emitKeypressEvents(process.stdin);
19
19
  if (process.stdin.isTTY) process.stdin.setRawMode(true);
20
20
 
21
+ console.log("hello Puppeteer", process.env);
22
+
21
23
  console.log("\n Puppeteer is running. Press 'q' to quit\n");
22
24
  process.stdin.on("keypress", (str, key) => {
23
25
  if (key.name === "q") {
@@ -48,7 +50,7 @@ export default async (partialConfig) => {
48
50
  await pm.startPuppeteer(
49
51
  {
50
52
  waitForInitialPage: false,
51
- executablePath: "/opt/homebrew/bin/chromium",
53
+ executablePath: process.env.CHROMIUM_PATH || "/opt/homebrew/bin/chromium", //"/opt/homebrew/bin/chromium",
52
54
  headless: true,
53
55
  // dumpio: true,
54
56
  args: [