Skip to content

Commit

Permalink
Adds a test to ensure jest is happy in the Node 10 scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
scalvert committed Jun 11, 2021
1 parent fbf3af8 commit 8268e4f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/unit/generator-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const Project = require('../helpers/fake-project');

const ROOT = process.cwd();

if (Number(process.versions.node.split('.')[0]) > 10) {
describe('generators', () => {
describe('generators', () => {
if (Number(process.versions.node.split('.')[0]) > 10) {
let project = null;

beforeEach(function () {
Expand Down Expand Up @@ -42,5 +42,9 @@ if (Number(process.versions.node.split('.')[0]) > 10) {

expect(generatedRulesIndex).toEqual(expectedRulesIndex);
});
});
}
} else {
it('only runs in node 10 to satisfy jest', () => {
expect(true).toEqual(true);
});
}
});

0 comments on commit 8268e4f

Please sign in to comment.