Skip to content

Commit

Permalink
Tests are running in frontends root - remove global: scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkafton committed Apr 26, 2024
1 parent e1ba86d commit d3ba581
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,6 @@ jobs:
- name: Setup environment
run: sudo apt-get install libelf1

- name: Set yarn version
run: |
yarn -v
yarn set version 4.1.1
yarn -v
- name: Install dependencies
run: yarn install --immutable

Expand Down
6 changes: 2 additions & 4 deletions frontends/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,14 @@
"lint-fix": "yarn lint-check --fix",
"fmt-check": "prettier --check .",
"fmt-fix": "prettier --write .",
"test": "yarn global:test",
"test-watch": "yarn global:test-watch",
"test": "NODE_ENV=test jest",
"test-watch": "NODE_ENV=test jest --watch",
"style-lint": "yarn in-workspaces run global:style-lint",
"style-lint-fix": "yarn in-workspaces run global:style-lint-fix",
"typecheck": "yarn in-workspaces run global:typecheck",
"global:style-lint": "cd $INIT_CWD && stylelint '**/*.{css,scss,ts,tsx}' --allow-empty-input",
"global:style-lint-fix": "cd $INIT_CWD && stylelint '**/*.{css,scss,ts,tsx}' --allow-empty-input --fix",
"global:test": "cd $INIT_CWD && NODE_ENV=test jest",
"global:typecheck": "cd $INIT_CWD && tsc --noEmit",
"global:test-watch": "cd $INIT_CWD && NODE_ENV=test jest --watch",
"create-package": "yarn workspace ol-template plop package",
"build-github-pages": "yarn workspace github-pages build",
"storybook": "yarn workspace mit-open storybook",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"scripts": {
"build": "yarn workspace mit-open run build",
"style-lint": "yarn workspace frontends run style-lint",
"test": "yarn workspace frontends global:test",
"test": "yarn workspace frontends run test",
"lint-check": "yarn workspace frontends run lint-check",
"typecheck": "yarn workspace frontends run typecheck"
},
Expand Down

0 comments on commit d3ba581

Please sign in to comment.