-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99684b7
commit 9252ccd
Showing
61 changed files
with
382 additions
and
425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
build | ||
coverage | ||
jest.config.js | ||
vitest.config.mts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...ot-interpreter/benchmarks/benchmarking.ts → ...t-interpreter/benchmarks/benchmarking.mts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// @ts-ignore | ||
import { defineConfig } from '../../../vitest.config.shared.mjs'; | ||
|
||
export default defineConfig({ | ||
test: { | ||
include: ['**/*.bench.mts'], | ||
maxConcurrency: 1, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,10 +10,10 @@ | |
"build" | ||
], | ||
"scripts": { | ||
"benchmark": "jest --runInBand --projects benchmarks", | ||
"benchmark": "cd benchmarks && vitest", | ||
"build": "pnpm --filter $npm_package_name... build:self", | ||
"build:self": "pnpm install:rust-addon && pnpm build:rust-addon && pnpm build:ts", | ||
"build:rust-addon": "cargo-cp-artifact -nc build/hmpb-ts/rust_addon.node -- cargo build --message-format=json-render-diagnostics --release --offline", | ||
"build:rust-addon": "cargo-cp-artifact -nc build/addon.node -- cargo build --message-format=json-render-diagnostics --release --offline", | ||
"build:ts": "tsc --build tsconfig.build.json", | ||
"clean": "pnpm --filter $npm_package_name... clean:self", | ||
"clean:self": "cargo clean --release --package ballot-interpreter && rm -rf build && tsc --build --clean tsconfig.build.json", | ||
|
@@ -22,11 +22,11 @@ | |
"lint:fix": "pnpm type-check && eslint . --fix", | ||
"pre-commit": "lint-staged", | ||
"test": "pnpm test:rust-addon && pnpm test:ts", | ||
"test:ci": "pnpm build && pnpm test:ts:coverage --reporters=default --reporters=jest-junit --maxWorkers=6", | ||
"test:ci": "pnpm build && pnpm test:ts:coverage --run", | ||
"test:rust-addon": "cargo test", | ||
"test:ts": "is-ci test:ci test:ts:watch", | ||
"test:ts:coverage": "jest --coverage", | ||
"test:ts:watch": "jest --watch", | ||
"test:ts:coverage": "vitest --coverage", | ||
"test:ts:watch": "vitest", | ||
"type-check": "tsc --build" | ||
}, | ||
"dependencies": { | ||
|
@@ -35,7 +35,7 @@ | |
"@votingworks/fixtures": "workspace:*", | ||
"@votingworks/image-utils": "workspace:*", | ||
"@votingworks/qrdetect": "^1.0.1", | ||
"@votingworks/test-utils": "workspace:*", | ||
"@votingworks/test-utils-vitest": "workspace:*", | ||
"@votingworks/types": "workspace:*", | ||
"@votingworks/utils": "workspace:*", | ||
"better-sqlite3": "8.2.0", | ||
|
@@ -50,11 +50,11 @@ | |
"@types/chalk": "^2.2.0", | ||
"@types/debug": "4.1.8", | ||
"@types/fs-extra": "11.0.1", | ||
"@types/jest": "^29.5.3", | ||
"@types/jest-image-snapshot": "^6.4.0", | ||
"@types/node": "20.16.0", | ||
"@types/node-quirc": "workspace:*", | ||
"@types/tmp": "0.2.4", | ||
"@vitest/coverage-istanbul": "^2.1.8", | ||
"@votingworks/bmd-ballot-fixtures": "workspace:*", | ||
"@votingworks/fs": "workspace:*", | ||
"@votingworks/hmpb": "workspace:*", | ||
|
@@ -64,13 +64,10 @@ | |
"eslint-plugin-vx": "workspace:*", | ||
"fs-extra": "11.1.1", | ||
"is-ci-cli": "2.2.0", | ||
"jest": "^29.6.2", | ||
"jest-image-snapshot": "^6.4.0", | ||
"jest-junit": "^16.0.0", | ||
"jest-watch-typeahead": "^2.2.2", | ||
"lint-staged": "11.0.0", | ||
"sort-package-json": "^1.50.0", | ||
"ts-jest": "29.1.1" | ||
"vitest": "^2.1.8" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.