testeranto 0.79.50 → 0.79.52

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,11 +1,13 @@
1
1
  FROM node:18.18.0
2
-
3
2
  RUN apt-get update && \
4
3
  apt-get install -y --no-install-recommends \
5
4
  python3 \
6
5
  make \
7
6
  g++ && \
8
7
  rm -rf /var/lib/apt/lists/*
8
+ # FROM shivjm/node-chromium:node18-chromium81-alpine
9
+
10
+
9
11
 
10
12
  RUN yarn global add node-gyp
11
13
 
@@ -20,8 +22,13 @@ COPY ./testeranto.mts /usr/src/app/testeranto.mts
20
22
  COPY ./tsconfig.json /usr/src/app/tsconfig.json
21
23
  COPY ./init.mts /usr/src/app/init.mts
22
24
  COPY ./bundle.mts /usr/src/app/bundle.mts
25
+ COPY ./test.mts /usr/src/app/test.mts
23
26
 
24
27
  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
+
25
32
  RUN yarn bundle
26
33
  # COPY ./docs/ /usr/src/app/docs
27
34
  # # COPY ./testeranto.json /usr/src/app/testeranto.json
@@ -41,4 +48,4 @@ RUN yarn bundle
41
48
  # EXPOSE 27017
42
49
  # ENV MONGO_HOST=host.docker.internal
43
50
  # # # CMD ['yarn', 'testeranto-testrun', '&', 'yarn', 'testeranto-taskman']
44
- CMD ["node", "./Puppeteer.mjs"]
51
+ CMD ["yarn", "test"]
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.50",
4
+ "version": "0.79.52",
5
5
  "engines": {
6
6
  "node": "18.18.0"
7
7
  },
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: [
package/tsconfig.json CHANGED
@@ -39,7 +39,6 @@
39
39
  "src/**/*.*ts",
40
40
  "src/**/*.*tsx",
41
41
  "index.d.ts",
42
- "electronBuild.ts"
43
42
  ],
44
43
  "exclude": [
45
44
  "node_modules",
File without changes
File without changes