backpack-examples-with-jest-babel-7

0.6.1 • Public • Published

Example with Jest

How to use

Download the example or clone the whole project:

curl https://codeload.github.com/palmerhq/backpack/tar.gz/master | tar -xz --strip=2 backpack-master/examples/with-jest
cd with-jest

Install it and run the tests:

npm install
npm t

Idea behind the example

This is an example of how to use the Jest test framework with Backpack.

Points of Interest:

  • New .babelrc file with presets: ["backpack-core/babel"]
  • Add babel-jest and jest-cli to devDependencies in package.json
  • Add "jest" section to package.json to manage Jest configuration
  • Demonstrate how to write HTTP test with supertest-as-promised

Readme

Keywords

none

Package Sidebar

Install

npm i backpack-examples-with-jest-babel-7

Weekly Downloads

0

Version

0.6.1

License

MIT

Unpacked Size

2.69 kB

Total Files

9

Last publish

Collaborators

  • jacopkane