https://github.com/softspiders/rest-client-jest-starter
Jest-tested rest client starter
https://github.com/softspiders/rest-client-jest-starter
client cross-fetch fetch jest rest softspiders ss starter template test under-development
Last synced: about 2 months ago
JSON representation
Jest-tested rest client starter
- Host: GitHub
- URL: https://github.com/softspiders/rest-client-jest-starter
- Owner: softspiders
- License: mit
- Created: 2020-01-22T10:27:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-13T05:28:45.000Z (over 6 years ago)
- Last Synced: 2025-10-19T14:13:14.875Z (8 months ago)
- Topics: client, cross-fetch, fetch, jest, rest, softspiders, ss, starter, template, test, under-development
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[SOFTSPIDERS](https://github.com/softspiders/softspiders)
# rest-client-jest-starter
---
## Feature tags
- browser
- cross-fetch
- jest
- isomorphic
- rest
- starter
- template
---
## Authors
- [Danila Asoyan](https://github.com/Danilkashtan)
- [Alexander Lapygin ](https://github.com/AlexanderLapygin)
---
## Direct ancestors
- [Test example in JavaScript in Jest](https://github.com/softspiders/jest)
---
## Install
```
npm i
```
---
## Run
```
Open index.html with your browser.
In browser console: getRequest('https://jsonplaceholder.typicode.com/posts/1'), postRequest('https://jsonplaceholder.typicode.com/posts'), putRequest('https://jsonplaceholder.typicode.com/posts/1') or deleteRequest('https://jsonplaceholder.typicode.com/posts/1')
```
## Running test
```
In first command prompt run server: npm start
In second command prompt run tests: npm run test
```
---
### License
Licensed under the [MIT license](./LICENSE).