-
Notifications
You must be signed in to change notification settings - Fork 628
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
discuss: all test file's name should end with _test.ts #273
Comments
Perhaps |
There was a discussion about it: #130 |
Updated the style_guide for this. But there was no mention of the module test file. May be better to continue this discussion on: #130 |
I think the regex /(test|.+_test).ts/ is reasonable. I don't think there's a huge point in talking about this until #193 |
It seems that this is not an urgent matter, so close it. |
In order to maintain the uniformity of the project style, the test file should end with
_test.ts
This also helps the
third-party library
to detect whether it is a test file.Other
test-tools/plugins/extensions
will definitely appear in the future.So should files like this be renamed?
https://github.com/denoland/deno_std/blob/master/ws/test.ts
https://github.com/denoland/deno_std/blob/master/textproto/test.ts
https://github.com/denoland/deno_std/blob/master/testing/test.ts
https://github.com/denoland/deno_std/blob/master/testing/test.ts
https://github.com/denoland/deno_std/blob/master/media_types/test.ts
https://github.com/denoland/deno_std/blob/master/log/test.ts
...
Make it a de facto standard
Avoid naming confusion like the
nodejs
communityThe text was updated successfully, but these errors were encountered: