Skip to content

Commit

Permalink
[_]: Change testing path for Mocha
Browse files Browse the repository at this point in the history
  • Loading branch information
PixoDev committed Feb 13, 2024
1 parent f875642 commit 9c62c23
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/commands-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
# Install dependencies, build and run tests
- run: yarn install --network-timeout 600000
- run: yarn build
- run: yarn test:commands:unit
- run: yarn test:unit
2 changes: 1 addition & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
# Install dependencies, build and run tests
- run: yarn install --network-timeout 600000
- run: yarn build
- run: yarn test:commands:unit
- run: yarn test:unit
# Analyze with SonarCloud
- name: Analyze with SonarCloud
uses: SonarSource/sonarcloud-github-action@master
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn run test:commands:unit
yarn run test:unit
yarn run lint
yarn lint-staged
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"posttest": "yarn lint",
"prepack": "yarn build && oclif manifest && oclif readme",
"prepare": "husky",
"test:commands:unit": "nyc --reporter=lcov --reporter=text mocha --forbid-only \"test/commands/**/*.test.ts\"",
"test:unit": "nyc --reporter=lcov --reporter=text mocha --forbid-only \"test/**/*.test.ts\"",
"version": "oclif readme && git add README.md"
},
"homepage": "https://github.com/internxt/cli",
Expand Down

0 comments on commit 9c62c23

Please sign in to comment.