Skip to content

Commit

Permalink
Convert VxScan API to Grout (#2854)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahkagan authored Dec 16, 2022
1 parent d37982e commit 930f06d
Show file tree
Hide file tree
Showing 61 changed files with 2,005 additions and 2,376 deletions.
23 changes: 23 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,28 @@ jobs:
- store_test_results:
path: libs/grout/reports/

test-libs-grout-test-utils:
executor: nodejs
resource_class: xlarge
steps:
- checkout-and-install
- run:
name: Build
command: |
pnpm --dir libs/grout/test-utils build
- run:
name: Lint
command: |
pnpm --dir libs/grout/test-utils lint
- run:
name: Test
command: |
pnpm --dir libs/grout/test-utils test
environment:
JEST_JUNIT_OUTPUT_DIR: ./reports/
- store_test_results:
path: libs/grout/test-utils/reports/

test-libs-image-utils:
executor: nodejs
resource_class: xlarge
Expand Down Expand Up @@ -846,6 +868,7 @@ workflows:
- test-libs-eslint-plugin-vx
- test-libs-fixtures
- test-libs-grout
- test-libs-grout-test-utils
- test-libs-image-utils
- test-libs-logging
- test-libs-plustek-sdk
Expand Down
8 changes: 4 additions & 4 deletions apps/vx-scan/backend/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ module.exports = {
],
coverageThreshold: {
global: {
statements: 86,
branches: 72,
lines: 86,
functions: 89,
statements: 89,
branches: 78,
functions: 90,
lines: 89,
},
},
};
5 changes: 5 additions & 0 deletions apps/vx-scan/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name": "@votingworks/vx-scan-backend",
"version": "0.1.0",
"private": true,
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
"build",
"bin",
Expand Down Expand Up @@ -42,6 +44,7 @@
"@votingworks/data": "workspace:*",
"@votingworks/db": "workspace:*",
"@votingworks/fixtures": "workspace:*",
"@votingworks/grout": "workspace:*",
"@votingworks/image-utils": "workspace:*",
"@votingworks/logging": "workspace:*",
"@votingworks/plustek-sdk": "workspace:*",
Expand Down Expand Up @@ -79,6 +82,7 @@
"@types/luxon": "^1.26.5",
"@types/multer": "^1.4.7",
"@types/node": "16.11.29",
"@types/node-fetch": "^2.6.2",
"@types/supertest": "^2.0.10",
"@types/tmp": "^0.2.0",
"@types/uuid": "^8.3.0",
Expand All @@ -98,6 +102,7 @@
"jest-watch-typeahead": "^0.6.4",
"lint-staged": "^10.5.3",
"nock": "^13.1.0",
"node-fetch": "^2.6.0",
"nodemon": "^2.0.20",
"prettier": "^2.6.2",
"sort-package-json": "^1.50.0",
Expand Down
Loading

0 comments on commit 930f06d

Please sign in to comment.