Skip to content

softspiders/rest-client-jest-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SOFTSPIDERS

rest-client-jest-starter


Feature tags

  • browser
  • cross-fetch
  • jest
  • isomorphic
  • rest
  • starter
  • template

Authors


Direct ancestors


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.