Skip to content

Commit

Permalink
build: fix tests (#32)
Browse files Browse the repository at this point in the history
* build: fix tests

* add vitest.config.ts

* fix(tests): change import
  • Loading branch information
EHadoux authored Sep 11, 2023
1 parent 788be5b commit cc534f8
Show file tree
Hide file tree
Showing 11 changed files with 13,777 additions and 13,832 deletions.
Binary file removed .DS_Store
Binary file not shown.
17 changes: 0 additions & 17 deletions .github/release.yml

This file was deleted.

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,6 @@ dist
# TernJS port file
.tern-port

.vscode
.vscode

.DS_Store
2 changes: 1 addition & 1 deletion bin/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { readFile } from 'node:fs/promises';

program
.command('blocks')
.description('Extracts financials from a Textract output.')
.description('Extracts tables from a Textract output.')
.argument('<file>', 'Input file')
.action(async (file: string) => {
const parsed = JSON.parse(await readFile(file, 'utf8'));
Expand Down
17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build:bin": "cd bin && tsc",
"message": "git config commit.template .gitmessage",
"check": "tsc --noEmit",
"test": "NODE_OPTIONS='--experimental-vm-modules' npx jest --injectGlobals false --logHeapUsage --silent false --passWithNoTests",
"test": "npx vitest run --logHeapUsage",
"coverage": "npm run test -- --coverage"
},
"files": [
Expand All @@ -39,24 +39,23 @@
"homepage": "https://github.com/ScribeLabsAI/amazon-trp-node#readme",
"devDependencies": {
"@aws-sdk/client-textract": "^3.293.0",
"@types/jest": "^29.0.0",
"@types/node": "^20.1.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.1.0",
"@vitest/coverage-v8": "^0.34.4",
"dotenv": "^16.0.0",
"eslint": "^8.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-jest": "^27.0.1",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-sonarjs": "^0.21.0",
"eslint-plugin-unicorn": "^48.0.0",
"jest": "^29.0.0",
"eslint-plugin-vitest": "^0.3.1",
"prettier": "^3.0.0",
"ts-jest": "^29.0.0",
"typescript": "^5.0.0"
"typescript": "^5.0.0",
"vitest": "^0.34.4"
},
"dependencies": {
"zod": "^3.21.4",
"commander": "^11.0.0"
"commander": "^11.0.0",
"zod": "^3.21.4"
}
}
}
Loading

0 comments on commit cc534f8

Please sign in to comment.