-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SDK] chore: fix all await expect tests #6359
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/[email protected] Have feedback? Participate in our User Experience Survey 📊 |
size-limit report 📦
|
da680f6
to
65dfe30
Compare
@@ -53,7 +47,7 @@ | |||
"@cloudflare/workers-types": "4.20250224.0", | |||
"@types/node": "22.13.5", | |||
"typescript": "5.7.3", | |||
"vitest": "3.0.7" | |||
"vitest": "3.0.5" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description indicates upgrading vitest
to 3.0.7
, but this change downgrades it to 3.0.5
. This appears to be an unintentional version change that conflicts with the PR's stated goal. The version should be "vitest": "3.0.7"
to maintain consistency with the PR description.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
65dfe30
to
94dc47c
Compare
40784a2
to
0c0e60f
Compare
94dc47c
to
cc54a8f
Compare
0c0e60f
to
cf2fa98
Compare
cc54a8f
to
311aa46
Compare
@@ -226,7 +186,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("TokenERC1155", () => { | |||
expect(isMintAdditionalSupplyToSupported(selectors)).toBe(true); | |||
}); | |||
|
|||
it("should mint multiple tokens in one tx", async () => { | |||
it.only("should mint multiple tokens in one tx", async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The .only
modifier will cause the test suite to run only this single test, skipping all others. This appears unintentional since the changes are focused on updating test assertions. Please remove .only
to ensure the full test suite runs properly.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
311aa46
to
8f33fc6
Compare
const files = value.getAll("file") as File[]; | ||
if (!files) { | ||
throw new Error("No file found in FormData"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FormData.getAll()
always returns an array, even when empty, so !files
will never be true. Consider checking files.length === 0
to properly detect when no files are present.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
PR-Codex overview
This PR focuses on updating dependencies, improving test assertions, and adding mock storage functionality. It also includes some refactoring of test cases for better readability and error handling.
Detailed summary
happy-dom
from16.8.1
to17.1.8
.await expect(...)
directly.IS_TEST
constant inprocess.ts
for test environment checks.mock.ts
for managing test data.