EmmanuelDemey / EmmanuelDemey/eslint-plugin-angular

Test File Names (Y122)

Open
#55 1 comment 0 reactions 1 assignee Claimed by @tilmanschweitzer View on GitHub
Rule
Dominant language
JavaScript
Stars
620
Forks
127
PR merge metrics
No merged PRs in 30d

Description

- Name test specifications similar to the component they test with a suffix of `spec`.

_Why?_: Provides a consistent way to quickly identify components.

_Why?_: Provides pattern matching for [karma](http://karma-runner.github.io/) or other test runners.

``` javascript
/**
* recommended
*/
avengers.controller.spec.js
logger.service.spec.js
avengers.routes.spec.js
avenger-profile.directive.spec.js
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.