Commit 9147cdf2 authored by jcunanan05's avatar jcunanan05

Add Jest

parent d1cca7a3
This diff is collapsed.
...@@ -19,14 +19,28 @@ ...@@ -19,14 +19,28 @@
"@babel/core": "^7.8.4", "@babel/core": "^7.8.4",
"@babel/preset-env": "^7.8.4" "@babel/preset-env": "^7.8.4"
}, },
"devDependencies": {
"jest": "^25.1.0"
},
"nodemonConfig": { "nodemonConfig": {
"exec": "npm run dev", "exec": "npm run dev",
"watch": ["server/*", "public/*"], "watch": [
"ignore": ["**/__tests__/**", "*.test.js", "*.spec.js"] "server/*",
"public/*"
],
"ignore": [
"**/__tests__/**",
"*.test.js",
"*.spec.js"
]
}, },
"babel": { "babel": {
"presets": ["@babel/preset-env"], "presets": [
"ignore": ["**/__tests__/**", "*.test.js", "*.spec.js"] "@babel/preset-env"
]
},
"jest": {
"testEnvironment": "node"
}, },
"scripts": { "scripts": {
"start": "npm run prod", "start": "npm run prod",
...@@ -36,6 +50,7 @@ ...@@ -36,6 +50,7 @@
"prod": "NODE_ENV=production npm-run-all build server", "prod": "NODE_ENV=production npm-run-all build server",
"transpile": "babel ./server --out-dir dist-server", "transpile": "babel ./server --out-dir dist-server",
"clean": "rimraf dist-server", "clean": "rimraf dist-server",
"watch:dev": "nodemon" "watch:dev": "nodemon",
"test": "jest"
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment