@essential-apps/shopify-test-runner 1.0.4 → 1.0.5

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.
@@ -107,6 +107,31 @@ RUN wget -q -O /tmp/cloudflared.deb \
107
107
  && rm -f /tmp/cloudflared.deb \
108
108
  && rm -rf /var/lib/apt/lists/*
109
109
 
110
+ # function-runner — pre-baked into the image so the offline full-stack
111
+ # discount-function tests (ShopState.simulateCartLinesDiscount →
112
+ # runFunction) never need a test-time download. The VM has working
113
+ # DNS but no general outbound HTTPS egress (TSI relays npm/registry
114
+ # fine, but raw github/CDN connections time out), so the lazy
115
+ # `ensureFunctionRunner` download would fail inside the guest. We
116
+ # fetch it HERE at build time (host has internet, same as cloudflared
117
+ # above) and drop the decompressed binary at the EXACT cache path
118
+ # `ensureFunctionRunner` probes: `~/.cache/essential-apps-shopify-test/
119
+ # bin/function-runner-<version>` (HOME=/root in the guest). On a cache
120
+ # HIT it returns immediately — no network.
121
+ #
122
+ # Keep FUNCTION_RUNNER_VERSION in sync with the constant of the same
123
+ # name in packages/storefront/src/functions/runFunction.ts. The arch
124
+ # slug is `arm-linux` (this is the arm64 VM image); the sibling amd64
125
+ # Dockerfile would use `x86_64-linux`.
126
+ ARG FUNCTION_RUNNER_VERSION=v9.1.2
127
+ RUN FR_DIR="/root/.cache/essential-apps-shopify-test/bin" \
128
+ && mkdir -p "$FR_DIR" \
129
+ && wget -q -O "$FR_DIR/function-runner-${FUNCTION_RUNNER_VERSION}.gz" \
130
+ "https://github.com/Shopify/function-runner/releases/download/${FUNCTION_RUNNER_VERSION}/function-runner-arm-linux-${FUNCTION_RUNNER_VERSION}.gz" \
131
+ && gunzip "$FR_DIR/function-runner-${FUNCTION_RUNNER_VERSION}.gz" \
132
+ && chmod +x "$FR_DIR/function-runner-${FUNCTION_RUNNER_VERSION}" \
133
+ && "$FR_DIR/function-runner-${FUNCTION_RUNNER_VERSION}" --version
134
+
110
135
  # Native-addon build toolchain. Consuming apps may pull npm deps with
111
136
  # native bindings that lack a linux-arm64 / current-Node prebuild (e.g.
112
137
  # utf-8-validate, bufferutil — WebSocket accelerators). The in-VM
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@essential-apps/shopify-test-runner",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Orchestration scripts (container, auth capture, install) and Playwright config preset for Essential Apps' Shopify test suites. Internal use only.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -57,11 +57,11 @@
57
57
  "clean": "rm -rf dist"
58
58
  },
59
59
  "dependencies": {
60
- "@essential-apps/shopify-test-core": "^1.0.4",
61
- "@essential-apps/shopify-test-mock-admin": "^1.0.4",
62
- "@essential-apps/shopify-test-shopify-api": "^1.0.4",
63
- "@essential-apps/shopify-test-storefront": "^1.0.4",
64
- "@essential-apps/shopify-test-themes": "^1.0.4",
60
+ "@essential-apps/shopify-test-core": "^1.0.5",
61
+ "@essential-apps/shopify-test-mock-admin": "^1.0.5",
62
+ "@essential-apps/shopify-test-shopify-api": "^1.0.5",
63
+ "@essential-apps/shopify-test-storefront": "^1.0.5",
64
+ "@essential-apps/shopify-test-themes": "^1.0.5",
65
65
  "@playwright/test": "^1.49.0",
66
66
  "@types/node": "^20.19.40",
67
67
  "@types/tar-stream": "^3.1.4",