master-zapier-plan-draft/scripts/test-offline.sh
George Lambert 645a24909a Adjacent work: PDF receipts, encrypted blob+share mock, NATS tunnel, SHA256 Zapier action
Around remaining blockers (Zapier login, live Verae): generate PDF receipts
without extra deps; AES-256-GCM object store with tenant isolation and share
tokens; scripts/nats-tunnel.sh to NS1; SHA256 Hash Text local Zapier action;
scripts/test-offline.sh for the no-login suite.

Learned: other-tenant object GET is 403; share token is the mock unwrap path.
2026-09-09 02:59:06 -04:00

21 lines
602 B
Bash
Executable file

#!/usr/bin/env bash
# Tests that do not need Zapier login or live api.veraetime.net.
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT"
export MOCK_VERAE=true
npm run gate:0
npm run gate:1
npm run gate:2
npm run gate:3
npm run gate:4
npm run gate:5
npm run gate:6
npm run gate:10
npm run gate:11
npm --prefix packages/verae-zapier-middleware run test:hash
node --test packages/verae-zapier-middleware/test/integration/receipt.test.js
node --test packages/verae-zapier-middleware/test/integration/objects.test.js
npm run test:activate
npm run test:zappier
echo "OFFLINE SUITE PASSED"