Skip to content

chore: add dummy test script#4

Merged
bajtos merged 1 commit intomainfrom
add-dummy-test
Apr 22, 2025
Merged

chore: add dummy test script#4
bajtos merged 1 commit intomainfrom
add-dummy-test

Conversation

@bajtos
Copy link
Member

@bajtos bajtos commented Apr 22, 2025

Add npm test as an alias for npm run lint. With no tests, npx np fails with the following error:

  ✖ Running tests
    → Command failed with exit code 1: npm run test
    Bumping version

Alternative considered: update the instructions to npx np --no-tests. I decided against this option due to the extra friction it adds.

Add `npm test` as an alias for `npm run lint`. With no tests, `npx np`
fails with the following error:

```
  ✖ Running tests
    → Command failed with exit code 1: npm run test
    Bumping version
```

Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
@bajtos bajtos requested a review from juliangruber April 22, 2025 11:57
@bajtos
Copy link
Member Author

bajtos commented Apr 22, 2025

Discussion point: should I rework the CI workflow to run npm t instead of npm run lint?

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm ci
- run: npm run lint

@juliangruber
Copy link
Member

Discussion point: should I rework the CI workflow to run npm t instead of npm run lint?

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm ci
- run: npm run lint

Not necessary but nice

@bajtos bajtos merged commit e4d1f73 into main Apr 22, 2025
3 checks passed
@bajtos bajtos deleted the add-dummy-test branch April 22, 2025 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants