mapbox / mapbox/mapbox-gl-js

npm install breaks tests

Open
#6,774 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

  • #10948 by @ryanhamley — closed without merging
workflow :nail_care:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

**mapbox-gl-js version**: 0.45.0

### Steps to Trigger Behavior

1. `npm install`
2. `yarn test`

### Expected Behavior

`npm install` and `yarn install` will produce the same output so that all tests will pass correctly

### Actual Behavior

`npm install` bypasses the `yarn.lock` file and installs a newer version of `@mapbox/batfish` that breaks some tests.

### Possible solution

set up `npm install` to fallback to yarn with the [`use-yarn` node module](https://www.npmjs.com/package/use-yarn)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running `npm install` followed by `yarn test`, then compare the result with `yarn install` followed by `yarn test`. Read the package-manager setup and the `use-yarn` module documentation mentioned in the issue. Done means npm installation follows the project’s locked dependency behavior and the tests pass consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
build-system, testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.