-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: move packages to workspace vitest (#3551)
- Loading branch information
Showing
63 changed files
with
282 additions
and
991 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,4 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"vitest.disableWorkspaceWarning": true | ||
} |
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 |
---|---|---|
|
@@ -26,8 +26,8 @@ | |
"release:check": "changeset status --verbose --since=origin/main", | ||
"release:publish": "pnpm install && pnpm build && changeset publish", | ||
"release:version": "changeset version && pnpm install --lockfile-only && pnpm run changelog:generate", | ||
"test": "pnpm run --recursive test", | ||
"test:ci": "pnpm run --recursive test:ci", | ||
"test": "with-anvil turbo run test --concurrency=100%", | ||
"test:ci": "with-anvil turbo run test:ci --concurrency=100%", | ||
"type-bench": "pnpm --filter ./test/ts-benchmarks bench", | ||
"type-stats-repo": "attest stats packages/*", | ||
"vercel:prepare": "ln -sf /vercel/.foundry/bin/* node_modules/.bin/ && forge --version" | ||
|
@@ -49,17 +49,19 @@ | |
"glob": "^10.4.2", | ||
"husky": ">=6", | ||
"lint-staged": "^15.2.10", | ||
"mock-game-contracts": "workspace:*", | ||
"prettier": "3.2.5", | ||
"prettier-plugin-solidity": "1.3.1", | ||
"prool": "^0.0.16", | ||
"prool": "^0.0.17", | ||
"shx": "^0.3.4", | ||
"sort-package-json": "^2.10.1", | ||
"tsup": "8.3.0", | ||
"tsx": "4.19.0", | ||
"turbo": "^1.9.3", | ||
"typescript": "5.4.2", | ||
"viem": "2.21.19", | ||
"vitest": "2.1.2" | ||
"vitest": "2.1.2", | ||
"with-anvil": "workspace:*" | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
|
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
import { testClient } from "../../test/common"; | ||
import { getTxpoolContent, mine } from "viem/actions"; | ||
import { createTestClient } from "with-anvil"; | ||
|
||
export async function minePending(): Promise<void> { | ||
const content = await testClient.getTxpoolContent(); | ||
const testClient = createTestClient(); | ||
|
||
const content = await getTxpoolContent(testClient); | ||
if (!Object.keys(content.pending).length) return; | ||
|
||
await testClient.mine({ blocks: 1 }); | ||
await mine(testClient, { blocks: 1 }); | ||
await minePending(); | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 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 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
Oops, something went wrong.