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

test(marshal,exo): stop exporting from test-*.js files #2053

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

erights
Copy link
Contributor

@erights erights commented Feb 11, 2024

closes: #XXXX
refs: #XXXX

Description

At #2008 (comment) @dckc explained why test/test-*.js files should not export things. Currently, we have a few of those. This PR reforms those, moving shared stuff into separate test/*.js files that are not test-* files, and exporting from there.

Security Considerations

none

Scaling Considerations

none

Documentation Considerations

none

Testing Considerations

The whole point. By exporting from one test-*.js file and importing into another, ava would run sometimes run the exporting test twice, or when it did not need to.

Compatibility Considerations

none

Upgrade Considerations

none

Nothing breaking.
No news updates warranted.

  • Includes *BREAKING*: in the commit message with migration instructions for any breaking change.
  • Updates NEWS.md for user-facing changes.

@erights erights self-assigned this Feb 11, 2024
@erights erights marked this pull request as ready for review February 11, 2024 19:14
Copy link
Collaborator

@dckc dckc left a comment

Choose a reason for hiding this comment

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

Someone previously explained to me why test/test-*.js files should not export things.

I did.

#2008 (comment)

@erights
Copy link
Contributor Author

erights commented Feb 12, 2024

Someone previously explained to me why test/test-*.js files should not export things.

I did.

#2008 (comment)

Thanks!

@erights erights merged commit e0ee190 into master Feb 12, 2024
14 checks passed
@erights erights deleted the markm-tests-dont-export branch February 12, 2024 18:57
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.

None yet

2 participants