test: Add node tests with Mocha and Chai

This commit is contained in:
Lokesh Dhakar
2019-08-03 23:10:04 -07:00
parent 4b78380823
commit 3e992dc368
3 changed files with 597 additions and 2 deletions

View File

@@ -31,15 +31,20 @@
"build": "microbundle; node ./build/build.js",
"watch": "microbundle watch",
"dev": " ./node_modules/http-server/bin/http-server",
"test": "./node_modules/.bin/cypress open"
"test": "mocha; ./node_modules/.bin/cypress run --config video=false",
"test:browser": "./node_modules/.bin/cypress open",
"test:node": "mocha"
},
"devDependencies": {
"@node-minify/core": "^4.0.5",
"@node-minify/uglify-es": "^4.0.5",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"cypress": "^3.4.0",
"eslint": "^5.16.0",
"http-server": "^0.11.1",
"microbundle": "^0.11.0",
"mocha": "^6.2.0",
"mustache": "^3.0.1"
},
"dependencies": {