testeranto 0.79.52 → 0.79.53

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
@@ -1,13 +1,11 @@
1
1
  FROM node:18.18.0
2
+
2
3
  RUN apt-get update && \
3
4
  apt-get install -y --no-install-recommends \
4
5
  python3 \
5
6
  make \
6
7
  g++ && \
7
8
  rm -rf /var/lib/apt/lists/*
8
- # FROM shivjm/node-chromium:node18-chromium81-alpine
9
-
10
-
11
9
 
12
10
  RUN yarn global add node-gyp
13
11
 
@@ -25,10 +23,6 @@ COPY ./bundle.mts /usr/src/app/bundle.mts
25
23
  COPY ./test.mts /usr/src/app/test.mts
26
24
 
27
25
  RUN yarn run init
28
-
29
- RUN apt-get update && apt-get install -y chromium
30
- RUN /usr/bin/chromium --no-sandbox --version > /etc/chromium-version
31
-
32
26
  RUN yarn bundle
33
27
  # COPY ./docs/ /usr/src/app/docs
34
28
  # # COPY ./testeranto.json /usr/src/app/testeranto.json
@@ -48,4 +42,4 @@ RUN yarn bundle
48
42
  # EXPOSE 27017
49
43
  # ENV MONGO_HOST=host.docker.internal
50
44
  # # # CMD ['yarn', 'testeranto-testrun', '&', 'yarn', 'testeranto-taskman']
51
- CMD ["yarn", "test"]
45
+ CMD ["node", "test.mts"]
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.52",
4
+ "version": "0.79.53",
5
5
  "engines": {
6
6
  "node": "18.18.0"
7
7
  },
package/src/Puppeteer.ts CHANGED
@@ -18,8 +18,6 @@ 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
-
23
21
  console.log("\n Puppeteer is running. Press 'q' to quit\n");
24
22
  process.stdin.on("keypress", (str, key) => {
25
23
  if (key.name === "q") {
@@ -50,7 +48,7 @@ export default async (partialConfig) => {
50
48
  await pm.startPuppeteer(
51
49
  {
52
50
  waitForInitialPage: false,
53
- // executablePath: process.env.CHROMIUM_PATH || "/opt/homebrew/bin/chromium", //"/opt/homebrew/bin/chromium",
51
+ executablePath: "/opt/homebrew/bin/chromium",
54
52
  headless: true,
55
53
  // dumpio: true,
56
54
  args: [