mirror of
https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
synced 2024-12-26 00:49:10 +00:00
try nyc
This commit is contained in:
parent
aad4f70304
commit
6d8dc93543
4
.github/workflows/js-unittest.yml
vendored
4
.github/workflows/js-unittest.yml
vendored
@ -25,5 +25,5 @@ jobs:
|
|||||||
run: sudo npm install
|
run: sudo npm install
|
||||||
- name: Start local http server
|
- name: Start local http server
|
||||||
run: sudo npm run http-server &
|
run: sudo npm run http-server &
|
||||||
- name: Run tests
|
- name: Run tests with coverage
|
||||||
run: sudo npm test
|
run: sudo npm run coverage
|
||||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
**/.devcontainer/*
|
**/.devcontainer/*
|
||||||
**/node_modules/*
|
**/node_modules/*
|
||||||
**/package-lock.json
|
**/package-lock.json
|
||||||
**/*.vscode/*
|
**/.vscode/*
|
||||||
|
**/.nyc_output/*
|
@ -4,6 +4,7 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha --recursive --require mock-local-storage './{,!(node_modules)/**}/*.test.js'",
|
"test": "mocha --recursive --require mock-local-storage './{,!(node_modules)/**}/*.test.js'",
|
||||||
|
"coverage": "nyc --all npm run test",
|
||||||
"lint-js": "eslint **/*.js",
|
"lint-js": "eslint **/*.js",
|
||||||
"fix-js": "eslint --fix **/*.js",
|
"fix-js": "eslint --fix **/*.js",
|
||||||
"lint-html": "htmlhint **/*.html",
|
"lint-html": "htmlhint **/*.html",
|
||||||
@ -20,6 +21,7 @@
|
|||||||
"http-server": "",
|
"http-server": "",
|
||||||
"mocha": "10",
|
"mocha": "10",
|
||||||
"mock-local-storage": "^1.1.23",
|
"mock-local-storage": "^1.1.23",
|
||||||
|
"nyc": "^14.0.0",
|
||||||
"prettier": "2.8.0",
|
"prettier": "2.8.0",
|
||||||
"puppeteer": "^18.2.1",
|
"puppeteer": "^18.2.1",
|
||||||
"stylelint": "14.14.1",
|
"stylelint": "14.14.1",
|
||||||
|
Loading…
Reference in New Issue
Block a user