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
|
||||
- name: Start local http server
|
||||
run: sudo npm run http-server &
|
||||
- name: Run tests
|
||||
run: sudo npm test
|
||||
- name: Run tests with coverage
|
||||
run: sudo npm run coverage
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
**/.devcontainer/*
|
||||
**/node_modules/*
|
||||
**/package-lock.json
|
||||
**/*.vscode/*
|
||||
**/.vscode/*
|
||||
**/.nyc_output/*
|
@ -4,6 +4,7 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"test": "mocha --recursive --require mock-local-storage './{,!(node_modules)/**}/*.test.js'",
|
||||
"coverage": "nyc --all npm run test",
|
||||
"lint-js": "eslint **/*.js",
|
||||
"fix-js": "eslint --fix **/*.js",
|
||||
"lint-html": "htmlhint **/*.html",
|
||||
@ -20,6 +21,7 @@
|
||||
"http-server": "",
|
||||
"mocha": "10",
|
||||
"mock-local-storage": "^1.1.23",
|
||||
"nyc": "^14.0.0",
|
||||
"prettier": "2.8.0",
|
||||
"puppeteer": "^18.2.1",
|
||||
"stylelint": "14.14.1",
|
||||
|
Loading…
Reference in New Issue
Block a user