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

Checker: Test files should not just end in .js #12

Open
tkissing opened this issue Sep 4, 2015 · 0 comments
Open

Checker: Test files should not just end in .js #12

tkissing opened this issue Sep 4, 2015 · 0 comments

Comments

@tkissing
Copy link

tkissing commented Sep 4, 2015

The "test" folder often needs to contain files that are valid JavaScript but not valid tests (mocks, "karma.main.js"-kinda files, test-related helpers, etc).
Having something unique in the names of test files ('.spec.js', '.tap.js', etc) makes globbing much easier and keeps test-runner configuration simple.
It also makes it easier to apply different linting rules to different types of files independent of the folder they are in.

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

No branches or pull requests

1 participant