chore: ☂️ Migrate GenerateCodegenSchemaTaskTest.kt to AssertJ#45807
chore: ☂️ Migrate GenerateCodegenSchemaTaskTest.kt to AssertJ#45807omer-ayhan wants to merge 5 commits into
Conversation
|
hello @cortinico 👋 this PR is ready for a review🚀 |
cortinico
left a comment
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
This is unnecessary now 👍
There was a problem hiding this comment.
should I delete those assertions? Which means you don't need assertion for task.jsInputFiles? @cortinico
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
I meant only the size assertion
…lin/com/facebook/react/tasks/GenerateCodegenSchemaTaskTest.kt
…lin/com/facebook/react/tasks/GenerateCodegenSchemaTaskTest.kt
|
@cortinico has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@cortinico merged this pull request in 575ab78. |
|
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? |
Summary:
Issue: #45596
Changelog:
[INTERNAL] [CHANGED] - Migrate
GenerateCodegenSchemaTaskTest.ktto AssertJ testing libraryTest Plan:
Run
./gradlew -p packages/gradle-plugin test