Skip to content

chore: ☂️ Migrate GenerateCodegenSchemaTaskTest.kt to AssertJ#45807

Closed
omer-ayhan wants to merge 5 commits into
facebook:mainfrom
omer-ayhan:omer-ayhan/migrate-GenerateCodegenSchemaTaskTest-assertj
Closed

chore: ☂️ Migrate GenerateCodegenSchemaTaskTest.kt to AssertJ#45807
omer-ayhan wants to merge 5 commits into
facebook:mainfrom
omer-ayhan:omer-ayhan/migrate-GenerateCodegenSchemaTaskTest-assertj

Conversation

@omer-ayhan
Copy link
Copy Markdown
Contributor

Summary:

Issue: #45596

Changelog:

[INTERNAL] [CHANGED] - Migrate GenerateCodegenSchemaTaskTest.kt to AssertJ testing library

Test Plan:

Run ./gradlew -p packages/gradle-plugin test

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 29, 2024
@omer-ayhan
Copy link
Copy Markdown
Contributor Author

hello @cortinico 👋 this PR is ready for a review🚀

@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Jul 29, 2024
Copy link
Copy Markdown
Contributor

@cortinico cortinico left a comment

Choose a reason for hiding this comment

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

Please include the suggested changes

assertEquals(setOf(File(jsRootDir, "afolder/includedfile.js")), task.jsInputFiles.files)
assertThat(task.jsInputFiles.dir).isEqualTo(jsRootDir)
assertThat(task.jsInputFiles.excludes).isEqualTo(setOf("**/build/**/*"))
assertThat(task.jsInputFiles.files).hasSize(1)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is unnecessary now 👍

Copy link
Copy Markdown
Contributor Author

@omer-ayhan omer-ayhan Jul 30, 2024

Choose a reason for hiding this comment

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

should I delete those assertions? Which means you don't need assertion for task.jsInputFiles? @cortinico

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I meant only the size assertion

assertEquals(setOf(File(jsRootDir, "afolder/includedfile.js")), task.jsInputFiles.files)
assertThat(task.jsInputFiles.dir).isEqualTo(jsRootDir)
assertThat(task.jsInputFiles.excludes).isEqualTo(setOf("**/build/**/*"))
assertThat(task.jsInputFiles.files).hasSize(1)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I meant only the size assertion

…lin/com/facebook/react/tasks/GenerateCodegenSchemaTaskTest.kt
…lin/com/facebook/react/tasks/GenerateCodegenSchemaTaskTest.kt
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@cortinico has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@cortinico merged this pull request in 575ab78.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jul 31, 2024
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @omer-ayhan in 575ab78

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants