Skip to content

Commit 181ed40

Browse files
committed
feat(axios, tests): upgrades to latest version of axios (v1 over v0)
also updates a lot of the tests and switches from jest to vitest
1 parent d36c969 commit 181ed40

32 files changed

+6290
-6328
lines changed

.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ module.exports = {
77
env: {
88
es2020: true,
99
node: true,
10-
jest: true,
1110
},
1211
plugins: ['@typescript-eslint'],
1312
extends: [

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
.husky
66
.github
77

8-
jest.*.js
98
tsconfig.json
109

1110
src

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Thanks for taking the time to contribute!
66

77
## Testing
88

9-
We are using the [Jest][jest] framework for testing. Imgur API mocking is configured via [msw][msw]. This makes it simple to mock API responses. Simply add a new handler for an endpoint to `mocks/handlers.js` and that's it. These mocks are automatically configured to work for all new and existing tests.
9+
We are using the [Vitest][vitest] framework for testing. Imgur API mocking is configured via [msw][msw]. This makes it simple to mock API responses. Simply add a new handler for an endpoint to `mocks/handlers.js` and that's it. These mocks are automatically configured to work for all new and existing tests.
1010

1111
Here's an example that mocks a response when making a `POST` request to `https://api.imgur.com/3/image`:
1212

@@ -45,7 +45,7 @@ If you prefer not to install the `commitizen` command globally, alternatively yo
4545

4646
- Prettier is ran and applied automatically as part of a precommit hook, so you don't have to worry about semicolons or trailing commas
4747

48-
[jest]: https://jestjs.io/
48+
[vitest]: https://vitest.dev/
4949
[msw]: https://mswjs.io/
5050
[commitizen]: https://github.com/commitizen/cz-cli
5151
[conventional commits]: https://www.conventionalcommits.org/

jest.config.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)