-
Notifications
You must be signed in to change notification settings - Fork 16
Conversions for tape #5
Comments
I started working on this here Some things it doesn't handle so far, that I know of:
I should note that this changes every TODO:
|
@jamestalmage @sindresorhus How do y'all want to handle the scenario where a feature is used that doesn't have an equivalent in We could print them to The other option with |
Do you have an example of a feature? We could maybe add comments in the code about stuff that needs manual migration. |
Awesome! :)
👍 |
A general list of examples would be the list of things not handled in this comment. An explicit example for the sake of discussion would be the optional We could definitely map the |
Ok. We should do a best effort and back out gracefully if we can't confidently do the change. In the above example we could look at the options if inline. If |
Hi @sindresorhus and @DrewML I don't know the status of this, but I've made some progress on creating a codemod. I think is solves most transformations including imports/requires, assertions, Tape test function options, What is missing is:
See The tricky part is how to handle async tape tests... I guess something that has an Let me know if I should create a pull requests for this, and if you have some comments to the missing pieces mentioned above. : ) |
@skovhus Awesome! A pull request would be great :)
Yup. I don't see how we could safely statically determine whether a test is sync or async with tape as there is no indication. Safer to just transform all tests to
AVA does support skipping assertions: https://github.com/avajs/ava#skipping-assertions Tape also does not have a real Same with |
@sindresorhus Cool! Thanks for the feedback. Yes, so now I'm converting all tests containing a I'll to wrap it up and send a pull request. 👍 |
Good point. If you don't plan on fixing that in your pull request, would you mind opening an issue so we don't forget? |
I will : ) |
avajs/ava#644
The text was updated successfully, but these errors were encountered: