forked from baron/baron-sso
fix: align local Ory cookie domain rendering
This commit is contained in:
22
test/orgfront_org_context_chart_package_test.sh
Normal file
22
test/orgfront_org_context_chart_package_test.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$ROOT_DIR"
|
||||
|
||||
fail() {
|
||||
echo "[org-context-chart-package] $*" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
assert_contains() {
|
||||
local file="$1"
|
||||
local needle="$2"
|
||||
grep -Fq "$needle" "$file" || fail "$file must contain: $needle"
|
||||
}
|
||||
|
||||
assert_contains orgfront/package.json "build:org-context-chart:min"
|
||||
assert_contains orgfront/vite.org-context-chart.config.ts "ORG_CONTEXT_CHART_MINIFY"
|
||||
assert_contains orgfront/vite.org-context-chart.config.ts ".min"
|
||||
|
||||
echo "OK: OrgContext chart package emits explicit minified bundles"
|
||||
Reference in New Issue
Block a user