This commit is contained in:
Arthur Lu 2022-12-04 19:31:27 -08:00
parent aad4f70304
commit 6d8dc93543
3 changed files with 6 additions and 3 deletions

View File

@ -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
View File

@ -1,4 +1,5 @@
**/.devcontainer/* **/.devcontainer/*
**/node_modules/* **/node_modules/*
**/package-lock.json **/package-lock.json
**/*.vscode/* **/.vscode/*
**/.nyc_output/*

View File

@ -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",