-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Tests utils should be moved from tests to src #333
Comments
I'm not sure I like the idea of moving them to So I'd think on how we can make them accessible instead of just moving them. Perhaps we'll be able to find a better solution. If not, we'll have to document this clearly. BTW. I also wanted to use those tools in a build, so I agree that this is quite important :) |
I do not insist then need to be in the |
Otherwise one need to create a separate process to transform or handle these absolute paths only to handle testing tools. |
I am a bit torn. On one hand I feel like I don't really have any problem with moving this to AFAI understand how builder works, files must be either in |
We could move it to |
If we want to let others use these tools we need to add the documentation to them and keep API anyway. And, I think that it is important anyway to have a good documentation for these tools, because otherwise, they are useful only for people who know them. |
I agree that those tools should be documented and we've got that documentation already. We just don't know where to put it in the namespaced API docs, but this will be solved when we switch to modules. As for how to make them accessible... We'll be considering switching to Webpack+Karma soon, so perhaps we can postpone this topic until then. The way how tests import things from the rest of the code will change and perhaps we'll see then how to expose the test utils. OTOH, I think I can live with putting them inside |
I reported a specific ticket for exposing engine utils: https://github.com/ckeditor/ckeditor5-engine/issues/610. I also explained there that we want to differentiate between dev utils and test utils. The former can be exposed, the latter not. I guess that the difference between them is quite clear too. Dev utils can be useful during development, tests utils are useful for testing. Since there were no other dev utils mentioned in this ticket, I will close it. If any other dev utils should be exposed as well, a specific ticket in a specific repository should be created. |
And there are 3 good reasons to do it.
/
, and Webpack does not expect/
at the beginning of the absolute path).The text was updated successfully, but these errors were encountered: