0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00

Added command to run browser tests from project root

This commit is contained in:
Chris Raible 2024-10-24 12:31:12 -07:00
parent af0f26c75f
commit feca626dfa
2 changed files with 3 additions and 2 deletions

View file

@ -355,7 +355,7 @@ jobs:
run: yarn nx run ghost-admin:build:dev
- name: Run Playwright tests locally
run: yarn test:browser
run: yarn test:browser:ci
env:
CI: true
STRIPE_PUBLISHABLE_KEY: ${{ secrets.STRIPE_PUBLISHABLE_KEY }}

View file

@ -40,7 +40,8 @@
"lint": "nx run-many -t lint",
"test": "nx run-many -t test",
"test:unit": "nx run-many -t test:unit",
"test:browser": "node .github/scripts/dev.js --browser-tests --all",
"test:browser:ci": "node .github/scripts/dev.js --browser-tests --all",
"test:browser": "yarn nx run ghost:test:browser",
"main": "yarn main:monorepo && yarn main:submodules",
"main:monorepo": "git checkout main && git pull ${GHOST_UPSTREAM:-origin} main && yarn",
"main:submodules": "git submodule sync && git submodule update && git submodule foreach \"git checkout main && git pull ${GHOST_UPSTREAM:-origin} main\"",