deno.land / x / oauth4webapi@v1.2.2 / tap / .browsers.sh
1234567891011121314151617181920#!/bin/bash./node_modules/.bin/esbuild --format=esm --bundle --target=esnext tap/run-browser.ts > tap/run-browser.js
HOSTNAME="localhost"SSL=""
if [[ -z $CI ]]; then BROWSER="chrome:headless"else if [[ "$BROWSER" == "browserstack"* ]]; then if [[ "$BROWSER" != "browserstack:android"* ]]; then HOSTNAME="oauth4webapi.panva.me" SSL="key=./letsencrypt/config/live/oauth4webapi.panva.me/privkey.pem;cert=./letsencrypt/config/live/oauth4webapi.panva.me/cert.pem;rejectUnauthorized=true;" fi BROWSER=$(node ./tap/browserstack.mjs $BROWSER) fifi
./node_modules/.bin/testcafe "$BROWSER" --skip-js-errors --ssl "$SSL" --hostname "$HOSTNAME" tap/.browser.ts
Version Info