Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 16, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@types/jest (source) ^29.5.14 -> ^30.0.0 age adoption passing confidence

Configuration

📅 Schedule: Branch creation - "after 9pm,before 9am" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team as a code owner June 16, 2025 14:11
@renovate renovate bot added the renovate label Jun 16, 2025
@renovate renovate bot requested review from chihiro-adachi and shabaraba and removed request for a team June 16, 2025 14:11
@renovate renovate bot force-pushed the renovate/jest-30.x branch from 7004c8f to f24b975 Compare June 16, 2025 20:02
… to 30.0.0 - Fix deprecated Jest matcher aliases and error comparisons - All tests, build, and lint checks pass
Copy link
Contributor Author

renovate bot commented Jun 18, 2025

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@@ -55,6 +55,6 @@ describe("deleteRecords", () => {
apiClient.record.getAllRecordsWithId = jest.fn().mockResolvedValue([]);
return expect(
deleteByRecordNumber(apiClient, "1", [{ value: "appcode-1" }]),
).rejects.toThrow(error);
).rejects.toThrow("Failed to delete records");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shabaraba
ここだけに限らずなのですが、toThrowにわたす引数の変更って必要ありますでしょうか?

※エラーのオブジェクト渡すのはv30でも変更なさそうにみえたので。
https://jestjs.io/docs/expect#tothrowerror

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chihiro-adachi

具体的なソースが見当たらないのでアレなんですが、どうやら30に上がるまでに、toThrow(error)としてもオブジェクト比較ではなく、error.messageで比較をする挙動に変わったようでした。
なので既存実装だと以下のような形でテストが落ちます。

    Expected message:           "Failed to delete records"
    Received message and cause: "{\"cause\":\"  Not exists record number. ID: appcode-1\\n\",\"detail\":\"\",\"message\":\"Failed to delete records\",\"name\":\"ValidatorError\"}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants