From bbad9b9c9d943505174e4ed60f36716f9aa3a4d4 Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Fri, 8 Jul 2022 11:36:31 +0100 Subject: [PATCH] Add test:pro command --- package.json | 3 ++- scripts/pro/test.sh | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 scripts/pro/test.sh diff --git a/package.json b/package.json index 014cafcfc1..6544670cd0 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,8 @@ "dev": "yarn run kill-all && lerna link && lerna run --parallel dev:builder --concurrency 1", "dev:noserver": "yarn run kill-builder && lerna link && lerna run dev:stack:up && lerna run --parallel dev:builder --concurrency 1 --ignore @budibase/backend-core --ignore @budibase/server --ignore @budibase/worker", "dev:server": "yarn run kill-server && lerna run --parallel dev:builder --concurrency 1 --scope @budibase/backend-core --scope @budibase/worker --scope @budibase/server", - "test": "lerna run test", + "test": "lerna run test && yarn test:pro", + "test:pro": "bash scripts/pro/test.sh", "lint:eslint": "eslint packages", "lint:prettier": "prettier --check \"packages/**/*.{js,ts,svelte}\"", "lint": "yarn run lint:eslint && yarn run lint:prettier", diff --git a/scripts/pro/test.sh b/scripts/pro/test.sh new file mode 100755 index 0000000000..f4252265c2 --- /dev/null +++ b/scripts/pro/test.sh @@ -0,0 +1,7 @@ +#!/bin/bash +cd ../ +if [[ -d "budibase-pro" ]]; then + cd budibase-pro + yarn test + cd ../budibase +fi \ No newline at end of file