Skip to content

Commit

Permalink
[Tests] fix skip usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jablko authored and ljharb committed Sep 19, 2021
1 parent fd85369 commit 471790f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/src/rules/max-dependencies.js
Expand Up @@ -91,7 +91,7 @@ ruleTester.run('max-dependencies', rule, {
],
});

context('TypeScript', { skip: semver.satisfies(eslintPkg.version, '>5.0.0') }, () => {
(semver.satisfies(eslintPkg.version, '>5.0.0') ? describe.skip : describe)('TypeScript', () => {
getTSParsers().forEach((parser) => {
ruleTester.run(`max-dependencies (${parser.replace(process.cwd(), '.')})`, rule, {
valid: [
Expand Down
2 changes: 1 addition & 1 deletion tests/src/rules/no-extraneous-dependencies.js
Expand Up @@ -381,7 +381,7 @@ ruleTester.run('no-extraneous-dependencies', rule, {
});

// TODO: figure out why these tests fail in eslint 4
describe('TypeScript', { skip: semver.satisfies(eslintPkg.version, '^4') }, function () {
(semver.satisfies(eslintPkg.version, '^4') ? describe.skip : describe)('TypeScript', () => {
getTSParsers().forEach((parser) => {
const parserConfig = {
parser,
Expand Down

0 comments on commit 471790f

Please sign in to comment.