tests: added tests

This commit is contained in:
GitHub Actions
2021-01-16 22:41:34 +01:00
parent bf0785847d
commit b8890fc6d7
7 changed files with 240 additions and 12 deletions

View File

@@ -6,7 +6,8 @@
"author": "Simone Corsi<simonecorsi.dev@gmail.com>",
"license": "MIT",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test": "nyc --reporter=lcov --reporter=text-summary ava -s -v",
"test:watch": "ava -w",
"style:lint": "eslint src --ext .ts",
"style:prettier": "prettier \"src/**/*.ts\" --list-different --write",
"build": "./node_modules/.bin/ncc build src/index.ts -o ./",
@@ -30,6 +31,7 @@
"@types/ejs": "^3.0.5",
"@types/got": "^9.6.11",
"@types/node": "^14.14.5",
"@types/sinon": "^9.0.10",
"@typescript-eslint/eslint-plugin": "^4.6.0",
"@typescript-eslint/parser": "^4.6.0",
"@vercel/ncc": "^0.26.2",
@@ -47,6 +49,7 @@
"ninos": "^3.0.0",
"nyc": "^15.0.1",
"prettier": "^2.0.5",
"sinon": "^9.2.3",
"standard-version": "^9.0.0",
"ts-node-dev": "^1.1.1",
"typescript": "^4.1.3"
@@ -63,4 +66,4 @@
"volta": {
"node": "14.15.4"
}
}
}