diff --git a/.gitignore b/.gitignore index f877f0b0..db960f30 100644 --- a/.gitignore +++ b/.gitignore @@ -66,3 +66,5 @@ __pycache__/ env/ venv/ ENV/ + +.polytest*/ diff --git a/packages/transact/package.json b/packages/transact/package.json index 59a62264..4df0265a 100644 --- a/packages/transact/package.json +++ b/packages/transact/package.json @@ -21,11 +21,13 @@ "check-types": "tsc --noEmit", "audit": "better-npm-audit audit", "format": "prettier --config ../../.prettierrc.cjs --ignore-path ../../.prettierignore --write .", - "pre-commit": "run-s check-types lint:fix audit format test" + "pre-commit": "run-s check-types lint:fix audit format test", + "polytest:generate": "polytest --config test_configs/transact.jsonc --git https://github.com/joe-p/algokit-polytest#feat/update_transact generate -t vitest", + "polytest:run": "polytest --config test_configs/transact.jsonc --git https://github.com/joe-p/algokit-polytest#feat/update_transact run --no-parse -t vitest" }, "dependencies": {}, "peerDependencies": {}, "devDependencies": { "@noble/ed25519": "^3.0.0" } -} \ No newline at end of file +} diff --git a/vitest.config.ts b/vitest.config.ts index 303dd312..25b2b094 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -4,7 +4,7 @@ export default defineConfig({ test: { projects: ['.', 'packages/*'], include: ['**/*.spec.ts', '**/*.test.ts'], - exclude: ['node_modules'], + exclude: ['node_modules', '.polytest*'], // Sometimes indexer catchup is slowwwww... testTimeout: 20_000, coverage: {