Skip to content

Commit

Permalink
test: skip test on node versions lt 20
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza committed Dec 29, 2023
1 parent fdf329a commit 8fc1d2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/flat-config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('succeed on flat-configuration', () => {
});
});

it('finds errors on files', (done) => {
(process.version.match(/^v(\d+\.\d+)/)[1] >= 20 ? it : it.skip)('finds errors on files', (done) => {
const overrideConfigFile = join(__dirname, 'fixtures', 'flat-config.js');
const compiler = pack('full-of-problems', {
configType: 'flat',
Expand All @@ -41,7 +41,7 @@ describe('succeed on flat-configuration', () => {
expect(stats.hasErrors()).toBe(true);
expect(errors).toHaveLength(1);
expect(errors[0].message).toMatch(
/test\/fixtures\/full-of-problems\.js/i,
/full-of-problems\.js/i,
);
expect(stats.hasWarnings()).toBe(true);
done();
Expand Down

0 comments on commit 8fc1d2d

Please sign in to comment.