Skip to content

Commit

Permalink
Add test environment with jest
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwofford committed Dec 28, 2019
1 parent e3047a0 commit ffd008b
Show file tree
Hide file tree
Showing 6 changed files with 1,843 additions and 139 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,3 +1,4 @@
node_modules
build
.env
.env
*.log
12 changes: 10 additions & 2 deletions package.json
Expand Up @@ -8,7 +8,7 @@
"start": "node build/index.js",
"build": "babel src -d build",
"heroku-postbuild": "npm run build",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "jest"
},
"keywords": [],
"author": "Max Wofford <max@maxwofford.com>",
Expand All @@ -31,6 +31,14 @@
"@babel/plugin-transform-runtime": "^7.7.6",
"@babel/preset-env": "^7.6.3",
"dotenv": "^8.1.0",
"nodemon": "^1.19.3"
"jest": "^24.9.0",
"nodemon": "^1.19.3",
"supertest": "^4.0.2"
},
"jest": {
"testEnvironment": "node",
"coveragePathIgnorePatterns": [
"/node_modules/"
]
}
}

0 comments on commit ffd008b

Please sign in to comment.