Skip to content

Commit ce8008b

Browse files
committed
fixed node v8 test
1 parent 05dd175 commit ce8008b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/integrations/eslint-plugin-import.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
const cp = require('child_process')
1313
const path = require('path')
14+
const semver = require('semver')
1415

1516
// -----------------------------------------------------------------------------
1617
// Tests
@@ -34,6 +35,10 @@ describe('Integration with eslint-plugin-import', () => {
3435
// eslint-plugin-vue had been breaking eslint-plugin-import if people use both at the same time.
3536
// This test is in order to prevent the regression.
3637
it('should lint without errors', () => {
38+
if (!semver.satisfies(process.version, require(path.join(__dirname, 'eslint-plugin-import/node_modules/eslint/package.json')).engines.node)) {
39+
return
40+
}
41+
3742
cp.execSync(`${ESLINT} a.vue`, { stdio: 'inherit' })
3843
})
3944
})

0 commit comments

Comments
 (0)