Skip to content

Commit

Permalink
ci: run test "in band"
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpedemonte committed Jul 24, 2024
1 parent a1f341f commit 0314624
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Build Apps
run: yarn run build:apps
- name: Test
run: yarn run test
run: yarn run test:ci
env:
DEBUG_PRINT_LIMIT: 50000
- name: Archive test artifacts
Expand Down
4 changes: 3 additions & 1 deletion examples/discovery-search-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
"start": "yarn setup && cross-env SKIP_PREFLIGHT_CHECK=true SASS_PATH=${PWD}/src react-scripts start",
"lint": "yarn run g:eslint --quiet '{src,cypress}/**/*.{js,jsx,ts,tsx}' './*.{js,jsx,ts,tsx}'",
"test:e2e": "cross-env REACT_APP_CYPRESS_MODE=true BROWSER=none CYPRESS_baseUrl=http://localhost:3000 start-server-and-test start http://localhost:3000 'cypress run'",
"test:unit": "cross-env SKIP_PREFLIGHT_CHECK=true CI=1 react-scripts test --env=jsdom",
"test:unit": "cross-env SKIP_PREFLIGHT_CHECK=true react-scripts test --env=jsdom",
"test:unit:ci": "yarn run test:unit --runInBand",
"test": "yarn test:unit && yarn test:e2e",
"test:ci": "yarn test:unit:ci && yarn test:e2e",
"cypress": "cross-env REACT_APP_CYPRESS_MODE=true cypress open --e2e --browser chrome",
"server": "yarn server:setup && yarn server:run",
"server:run": "node ./server.js",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"build:pkgs": "yarn workspaces foreach -Av --parallel --include '@ibm-watson/*' run build",
"build:apps": "yarn workspaces foreach -Av --parallel run build:app",
"test": "yarn workspaces foreach -Av --parallel run test",
"test:ci": "yarn workspaces foreach -Av run test:ci",
"g:analyze": "cd $INIT_CWD && source-map-explorer",
"g:eslint": "cd $INIT_CWD && eslint"
},
Expand Down
7 changes: 4 additions & 3 deletions packages/discovery-react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
"scripts": {
"prepack": "yarn run build",
"prepublish": "yarn run build",
"test": "cross-env SKIP_PREFLIGHT_CHECK=true CI=1 react-scripts test --env ./src/fixedJSDOMEnvironment.js",
"test:coverage": "cross-env CI=1 SKIP_PREFLIGHT_CHECK=true react-scripts test --env ./src/fixedJSDOMEnvironment.js --coverage",
"test:watch": "cross-env SKIP_PREFLIGHT_CHECK=true react-scripts test --env ./src/fixedJSDOMEnvironment.js --watch",
"test": "cross-env SKIP_PREFLIGHT_CHECK=true react-scripts test --env ./src/fixedJSDOMEnvironment.js",
"test:ci": "yarn run test --runInBand",
"test:coverage": "yarn run test --coverage",
"test:watch": "yarn run test --watch",
"test:debug": "cross-env SKIP_PREFLIGHT_CHECK=true react-scripts --inspect-brk test --env ./src/fixedJSDOMEnvironment.js --runInBand --no-cache",
"circular": "madge --circular src/*",
"build": "tsc && vite build",
Expand Down

0 comments on commit 0314624

Please sign in to comment.