Skip to content

test: add integration tests for sentence-length rule #70

test: add integration tests for sentence-length rule

test: add integration tests for sentence-length rule #70

Triggered via pull request January 4, 2026 04:57
Status Failure
Total duration 12s
Artifacts

ci.yaml

on: pull_request
Matrix: github-actions
Fit to window
Zoom out
Zoom in

Annotations

2 errors
test
Process completed with exit code 1.
test/integration/linting.test.ts > linting > smoke tests > textlint-rule-sentence-length > should ignore comments: test/integration/linting.test.ts#L308
AssertionError: expected [ { type: 'lint', …(9) } ] to deeply equal [] - Expected + Received - Array [] + Array [ + Object { + "column": 1, + "fix": undefined, + "index": 773, + "line": 17, + "loc": Object { + "end": Object { + "column": 284, + "line": 18, + }, + "start": Object { + "column": 1, + "line": 17, + }, + }, + "message": "Line 17 sentence length(284) exceeds the maximum sentence length of 50. + Over 234 characters.", + "range": Array [ + 773, + 1079, + ], + "ruleId": "sentence-length", + "severity": 2, + "type": "lint", + }, + ] ❯ test/integration/linting.test.ts:308:24