0.6.3 • Published 8 years ago
backpack-examples-with-jest-yarn-workspaces v0.6.3
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-jestInstall it and run the tests:
npm install
npm tIdea behind the example
This is an example of how to use the Jest test framework with Backpack.
Points of Interest:
- New
.babelrcfile withpresets: ["backpack-core/babel"] - Add
babel-jestandjest-clito devDependencies inpackage.json - Add
"jest"section topackage.jsonto manage Jest configuration - Demonstrate how to write HTTP test with
supertest-as-promised