Skip to content

Commit

Permalink
test(plugin-eslint): fix integration test by not matching version exa…
Browse files Browse the repository at this point in the history
…ctly
  • Loading branch information
matejchalk committed Nov 30, 2023
1 parent 11f1a41 commit d92da49
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ Custom options:
},
"slug": "eslint",
"title": "ESLint",
"version": "0.0.1",
"version": Any<String>,
}
`;
Expand Down Expand Up @@ -1246,6 +1246,6 @@ exports[`eslintPlugin > should initialize ESLint plugin for React application 1`
},
"slug": "eslint",
"title": "ESLint",
"version": "0.0.1",
"version": Any<String>,
}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ describe('eslintPlugin', () => {
eslintrc: '.eslintrc.js',
patterns: ['src/**/*.js', 'src/**/*.jsx'],
});
expect(replaceAbsolutePath(plugin)).toMatchSnapshot();
expect(replaceAbsolutePath(plugin)).toMatchSnapshot({
version: expect.any(String),
});
});

it('should initialize ESLint plugin for Nx project', async () => {
Expand All @@ -56,7 +58,9 @@ describe('eslintPlugin', () => {
eslintrc: './packages/utils/.eslintrc.json',
patterns: ['packages/utils/**/*.ts', 'packages/utils/**/*.json'],
});
expect(replaceAbsolutePath(plugin)).toMatchSnapshot();
expect(replaceAbsolutePath(plugin)).toMatchSnapshot({
version: expect.any(String),
});
});

it('should throw when invalid parameters provided', async () => {
Expand Down

0 comments on commit d92da49

Please sign in to comment.