@cevek/screentest 0.2.5 → 0.3.1
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/README.md +52 -36
- package/dist/global-setup.js +7 -0
- package/dist/index.js +334 -182
- package/dist/runner.js +20 -15
- package/dist/templates/Dockerfile.firefox-server +25 -0
- package/dist/templates/launch-server.mjs +22 -0
- package/dist/web/assets/{index-DMJ0v7v-.css → index-Bi-jx470.css} +1 -1
- package/dist/web/assets/{index-DIlEhyib.js → index-nQ8FCC_F.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +3 -2
- package/dist/templates/Dockerfile.npm.tests +0 -16
- package/dist/templates/Dockerfile.pnpm.tests +0 -27
- package/dist/templates/Dockerfile.yarn.tests +0 -20
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
FROM mcr.microsoft.com/playwright:v1.60.0-noble
|
|
2
|
-
|
|
3
|
-
WORKDIR /work
|
|
4
|
-
|
|
5
|
-
# Install dependencies. --ignore-scripts skips your project's postinstall
|
|
6
|
-
# hooks (which usually scan src/ — not needed for the test image).
|
|
7
|
-
COPY package.json package-lock.json ./
|
|
8
|
-
RUN npm ci --ignore-scripts
|
|
9
|
-
|
|
10
|
-
# tests/, vitest.screentest.config.ts, tsconfig.json, and snapshot.json are
|
|
11
|
-
# bind-mounted by `screentest test` at run-time — no rebuild needed for test
|
|
12
|
-
# or config edits. Rebuild only when package.json/package-lock.json change.
|
|
13
|
-
|
|
14
|
-
# Run vitest directly (skipping `npm exec`) — keeps the test image simple
|
|
15
|
-
# and matches how the host orchestrator invokes it.
|
|
16
|
-
CMD ["./node_modules/.bin/vitest", "--config", "vitest.screentest.config.ts", "run"]
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
FROM mcr.microsoft.com/playwright:v1.60.0-noble
|
|
2
|
-
|
|
3
|
-
WORKDIR /work
|
|
4
|
-
|
|
5
|
-
# corepack lets us use whatever pnpm version your project's `packageManager`
|
|
6
|
-
# field pins (pnpm 11 by default in modern projects). If your project uses
|
|
7
|
-
# npm or yarn instead, swap the install commands accordingly.
|
|
8
|
-
RUN corepack enable
|
|
9
|
-
|
|
10
|
-
# Install dependencies. Flags:
|
|
11
|
-
# --ignore-scripts skips your project's postinstall hooks (which
|
|
12
|
-
# usually scan src/ — not needed for the test image).
|
|
13
|
-
# --config.minimumReleaseAge=0 bypass pnpm 11's supply-chain policy for
|
|
14
|
-
# freshly-published packages (the test image is
|
|
15
|
-
# ephemeral, runs only what's already in lockfile).
|
|
16
|
-
COPY package.json pnpm-lock.yaml ./
|
|
17
|
-
COPY pnpm-workspace.yaml* ./
|
|
18
|
-
RUN pnpm install --frozen-lockfile --ignore-scripts --config.minimumReleaseAge=0
|
|
19
|
-
|
|
20
|
-
# tests/, vitest.screentest.config.ts, tsconfig.json, and snapshot.json are
|
|
21
|
-
# bind-mounted by `screentest test` at run-time — no rebuild needed for test
|
|
22
|
-
# or config edits. Rebuild only when package.json/pnpm-lock.yaml change.
|
|
23
|
-
|
|
24
|
-
# Run vitest directly (not via pnpm exec) — pnpm 11 re-runs its supply-chain
|
|
25
|
-
# policy on every exec, which would re-fail freshly-published packages
|
|
26
|
-
# even after install succeeded.
|
|
27
|
-
CMD ["./node_modules/.bin/vitest", "--config", "vitest.screentest.config.ts", "run"]
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
FROM mcr.microsoft.com/playwright:v1.60.0-noble
|
|
2
|
-
|
|
3
|
-
WORKDIR /work
|
|
4
|
-
|
|
5
|
-
# corepack lets yarn 2+/berry self-install from your project's
|
|
6
|
-
# `packageManager` field. For yarn 1 it's a no-op (yarn is bundled in newer
|
|
7
|
-
# Node images anyway).
|
|
8
|
-
RUN corepack enable
|
|
9
|
-
|
|
10
|
-
# Install dependencies. --ignore-scripts skips your project's postinstall
|
|
11
|
-
# hooks (which usually scan src/ — not needed for the test image).
|
|
12
|
-
COPY package.json yarn.lock ./
|
|
13
|
-
COPY .yarnrc.yml* ./
|
|
14
|
-
RUN yarn install --frozen-lockfile --ignore-scripts
|
|
15
|
-
|
|
16
|
-
# tests/, vitest.screentest.config.ts, tsconfig.json, and snapshot.json are
|
|
17
|
-
# bind-mounted by `screentest test` at run-time — no rebuild needed for test
|
|
18
|
-
# or config edits. Rebuild only when package.json/yarn.lock change.
|
|
19
|
-
|
|
20
|
-
CMD ["./node_modules/.bin/vitest", "--config", "vitest.screentest.config.ts", "run"]
|