Skip to content

Commit

Permalink
feat: export write method (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangreen committed Nov 25, 2022
1 parent e73c4f6 commit f183e59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api.ts
Expand Up @@ -11,3 +11,5 @@ export {PackageJsonFileLintingResult} from './types/package-json-linting-result'
export {PackageJsonFileAggregatedResultCounts, OverallAggregatedResultCounts} from './linter/results-helper';

export {Rules, Rule} from './native-rules';

export {write} from './console-reporter';
4 changes: 4 additions & 0 deletions test/unit/api.test.ts
Expand Up @@ -38,4 +38,8 @@ describe('api Unit Tests', () => {
test('Rules should be exported', () => {
expect(api).toHaveProperty('Rules');
});

test('Report writer should be exported', () => {
expect(api).toHaveProperty('write');
});
});

0 comments on commit f183e59

Please sign in to comment.