diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b56c2906349..4c3942eaa5f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,5 +8,6 @@ jobs: - uses: actions/setup-node@v2 with: node-version: '14' + - run: rm -rf build - run: yarn install - run: yarn test diff --git a/package.json b/package.json index ae7562ce11a..89c3dbf6c26 100644 --- a/package.json +++ b/package.json @@ -19,12 +19,12 @@ "test:lint": "eslint src --ext .ts", "test:prettier": "prettier \"src/**/*.ts\" --list-different", "test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.ts}\"", - "test:unit": "jest", + "test:unit": "jest src", "check-cli": "run-s test diff-integration-tests check-integration-tests", "check-integration-tests": "run-s check-integration-test:*", "diff-integration-tests": "mkdir -p diff && rm -rf diff/test && cp -r test diff/test && rm -rf diff/test/test-*/.git && cd diff && git init --quiet && git add -A && git commit --quiet --no-verify --allow-empty -m 'WIP' && echo '\\n\\nCommitted most recent integration test output in the \"diff\" directory. Review the changes with \"cd diff && git diff HEAD\" or your preferred git diff viewer.'", "watch:build": "tsc -p tsconfig.json -w", - "watch:test": "jest --watch", + "watch:test": "jest src --watch", "cov": "run-s build test:unit cov:html cov:lcov && open-cli coverage/index.html", "cov:html": "nyc report --reporter=html", "cov:lcov": "nyc report --reporter=lcov",