Skip to content

Commit

Permalink
[Tests] skip failing typescript tests in eslint <= 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 17, 2019
1 parent ad7d66a commit 6a07c81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/dep-time-travel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ npm install --no-save eslint@$ESLINT_VERSION --ignore-scripts || true
# completely remove the new typescript parser for ESLint < v5
if [[ "$ESLINT_VERSION" -lt "5" ]]; then
echo "Removing @typescript-eslint/parser..."
npm uninstall @typescript-eslint/parser
npm uninstall --no-save @typescript-eslint/parser
fi

# use these alternate typescript dependencies for ESLint < v4
Expand Down
2 changes: 1 addition & 1 deletion tests/src/rules/no-deprecated.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ describe('Typescript', function () {
parsers.push(require.resolve('@typescript-eslint/parser'))
}

if (semver.satisfies(eslintPkg.version, '<6.0.0')) {
if (semver.satisfies(eslintPkg.version, '> 3 && <6.0.0')) {
parsers.push(require.resolve('typescript-eslint-parser'))
}

Expand Down

0 comments on commit 6a07c81

Please sign in to comment.