Skip to content
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

Arregla issue #185 Test con el mismo nombre #194

Merged
merged 3 commits into from
Dec 4, 2023

Conversation

fdodino
Copy link
Contributor

@fdodino fdodino commented Dec 3, 2023

Incorporamos validación para que dos tests no tengan el mismo nombre.

Hay que mergear el PR de language primero.

Copy link
Contributor

@PalumboN PalumboN left a comment

Choose a reason for hiding this comment

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

🚀

@@ -511,6 +511,15 @@ export const shouldNotUseVoidMethodAsValue = error<Send>(node => {
return !method || method.isNative() || method.isAbstract() || returnsValue(method)
})

export const shouldHaveDifferentName = error<Test>(node => {
const tests: List<Test> = match(node.parent)(
when(Describe)(describe => describe.tests),
Copy link
Contributor

Choose a reason for hiding this comment

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

Tampoco se deberían duplicar los describes, no? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sí, tenés razón. Debería ser barato agregarlo... lo meto dentro de este PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Apa, ya existe un shouldNotDuplicateGlobalDefinitions y se testea que el describe no se repita (entre otras cosas, como clases, wko, etc.)

@fdodino fdodino merged commit 9fa68f2 into master Dec 4, 2023
4 checks passed
@fdodino fdodino deleted the fix-#185-avoid-test-same-name branch December 4, 2023 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants