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

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

View File

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