Skip to content
No description, website, or topics provided.
JavaScript HTML CSS TSQL
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
database
server
test
.gitignore
LICENSE
README.md

README.md

js-test-fullstack-sandbox

This project builds on top of (and is a fork of) js-fullstack-sandbox, a simple full stack JavaScript application using PostgreSQL, Express.js and React

This project is a working example of adding fast full integration tests to a full stack JavaScript project using Mocha, Chai, Jest and Polly. You can create your own project from scratch by following the guide.

initial setup

# test database
# configure a PostgreSQL instance, e.g. on elephantsql.com
# create server/.env.test from .env-sample and set DATABASE 

# node.js dependencies
cd app
npm install
cd ../server
npm install

database

# run `recreate.sql` on the test database instance

run tests

Use two terminals:

1:

cd server
npm test

2:

cd app
npm test
You can’t perform that action at this time.