-
Notifications
You must be signed in to change notification settings - Fork 113
chore: drop sinon as devDep: all mocks are now through nock. #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
9dea8bd
chore: drop sinon as devDep: all mocks are now through nock.
markstos e73b93c
chore: update contributors and README test command
wesleyschlenker 6edfcff
test: Start mocking all calls in test/client.js
markstos 0284c1f
fixup: setting the env var was not required here.
markstos 060b3ff
fix: ensure the rejection test cannot false-pass
wesleyschlenker dfa805d
fix: ensure the rejection test cannot false-pass
wesleyschlenker 1fd376e
fix: update sportType to sport_type in activities test
wesleyschlenker f56a5b8
fix: duplicate line typo
wesleyschlenker ba91c85
lint: fs was loaded but not used.
markstos c859fe3
chore: remove dead code for deprecated "/running_races" endpoint.
markstos 273e5dc
compate: There is no /athlete/routes endpoint
markstos 719a737
compate: remove dead athletes/ endpoint
markstos 5234340
compat: align stream endpoints with current API
markstos 705e5f7
lint: lib/uploads.js
markstos 555cb5a
bugFix: Quit attempting to parse non-JSON responses as JSON
markstos 9a96489
bugFix: axios handling of "simple" option should now match what we di…
markstos d5ca3b1
chore: Update all tests to use mocks.
markstos 319d82d
fixup: lint lib/stream.js
markstos 4cfb1da
chore: simplify JSON parsing logic.
markstos a95ed10
fixup: simplify CI with basic testing, no annotations
markstos 4ff744c
chore: slim deps by not requiring two devDeps for a script.
markstos 2a32993
chire: remove dead es6-promise dep.
markstos adbd33f
deps: update mocha to address dependabot vuln
markstos d9296cf
chore: more test robust against parallel runs by using a tempdir for …
markstos c005ba6
fixup: linting
markstos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| name: Test Suite | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| matrix: | ||
| node-version: [20.x, 22.x] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Use Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| cache: yarn | ||
|
|
||
| - name: Install dependencies | ||
| run: yarn install --frozen-lockfile | ||
|
|
||
| - name: Run test suite | ||
| run: yarn test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,8 @@ | |
| ], | ||
| "author": "austin brown <[email protected]> (http://austinjamesbrown.com/)", | ||
| "contributors": [ | ||
| "Mark Stosberg <[email protected]>" | ||
| "Mark Stosberg <[email protected]>", | ||
| "Wesley Schlenker <[email protected]>" | ||
| ], | ||
| "license": "MIT", | ||
| "bugs": { | ||
|
|
@@ -31,27 +32,18 @@ | |
| "json-bigint": "^1.0.0" | ||
| }, | ||
| "devDependencies": { | ||
| "env-restorer": "^1.0.0", | ||
| "es6-promise": "^3.3.1", | ||
| "eslint": "^8.57.1", | ||
| "eslint-config-standard": "^12.0.0", | ||
| "eslint-plugin-import": "^2.32.0", | ||
| "eslint-plugin-node": "^9.2.0", | ||
| "eslint-plugin-promise": "^4.3.1", | ||
| "eslint-plugin-standard": "^4.1.0", | ||
| "inquirer": "^7.3.3", | ||
| "mocha": "^9.2.2", | ||
| "mock-fs": "^4.14.0", | ||
| "mocha": "11.7.4", | ||
| "nock": "^11.9.1", | ||
| "should": "^13.2.3", | ||
| "sinon": "^1.17.7", | ||
| "yargs": "^17.7.2" | ||
| "tmp": "^0.2.5" | ||
| }, | ||
| "mocha": { | ||
| "globals": [ | ||
| "should" | ||
| ], | ||
| "timeout": 20000, | ||
| "timeout": 5000, | ||
| "checkLeaks": true, | ||
| "ui": "bdd", | ||
| "reporter": "spec" | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.