0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-02 12:52:38 +00:00

add unit test command

This commit is contained in:
Charlie Humphreys
2023-01-06 11:48:00 -06:00
parent 4b3edf053f
commit 93d6d1ac6a
2 changed files with 5 additions and 1 deletions

View File

@@ -55,6 +55,9 @@ jobs:
at: . at: .
# run tests! # run tests!
- run:
name: Test - API Unit Tests
command: npm run test:unit
- run: - run:
name: Test - Basic name: Test - Basic
command: npm run test:basic command: npm run test:basic

View File

@@ -19,7 +19,8 @@
"circleci": "npm test && eslint **/*.{js,jsx} --max-warnings=0", "circleci": "npm test && eslint **/*.{js,jsx} --max-warnings=0",
"verify": "npm run lint && npm test", "verify": "npm run lint && npm test",
"test": "jest", "test": "jest",
"test:coverage": "jest --coverage", "test:api-unit": "jest server/*.spec.js --verbose",
"test:coverage": "jest --coverage --silent",
"test:dev": "jest --verbose --watch", "test:dev": "jest --verbose --watch",
"test:basic": "jest tests/markdown/basic.test.js --verbose", "test:basic": "jest tests/markdown/basic.test.js --verbose",
"test:mustache-span": "jest tests/markdown/mustache-span.test.js --verbose", "test:mustache-span": "jest tests/markdown/mustache-span.test.js --verbose",