https://github.com/dir01/tslint-newlines-between-tests
A tslint rule that adds newlines around test members (describe, it, test, beforeEach, etc)
https://github.com/dir01/tslint-newlines-between-tests
Last synced: 5 months ago
JSON representation
A tslint rule that adds newlines around test members (describe, it, test, beforeEach, etc)
- Host: GitHub
- URL: https://github.com/dir01/tslint-newlines-between-tests
- Owner: dir01
- Created: 2019-12-02T11:49:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-02T12:14:40.000Z (over 6 years ago)
- Last Synced: 2025-09-29T15:28:13.849Z (9 months ago)
- Language: TypeScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tslint-newlines-between-tests
A tslint rule to ensure newlines between test members, for example, this
```typescript
describe('foo', () => {
beforeAll(setup);
afterAll(teardown);
beforeEach(setup);
afterEach(teardown);
it('should foo', () => {});
it('should not bar', () => {});
});
describe('bar', () => {
beforeAll(setup);
afterAll(teardown);
beforeEach(setup);
afterEach(teardown);
it('should bar', () => {});
it('should not foo', () => {});
});
```
will become this:
```typescript
describe('foo', () => {
beforeAll(setup);
afterAll(teardown);
beforeEach(setup);
afterEach(teardown);
it('should foo', () => {});
it('should not bar', () => {});
});
describe('bar', () => {
beforeAll(setup);
afterAll(teardown);
beforeEach(setup);
afterEach(teardown);
it('should bar', () => {});
it('should not foo', () => {});
});
```