Skip to content

Commit baf47e5

Browse files
committed
Simplify paths
1 parent da82fba commit baf47e5

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

tests/integrations/eslint-plugin-import.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ describe('Integration with eslint-plugin-import', () => {
1818
beforeAll(() => {
1919
execSync('npm i', { cwd: PLUGIN_DIR, stdio: 'inherit' })
2020
eslintNodeVersion = require(
21-
path.join(
22-
__dirname,
23-
'eslint-plugin-import/node_modules/eslint/package.json'
24-
)
21+
path.join(PLUGIN_DIR, 'node_modules/eslint/package.json')
2522
).engines.node
2623
})
2724

tests/integrations/flat-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('Integration with flat config', () => {
1414
beforeAll(() => {
1515
execSync('npm i -f', { cwd: TARGET_DIR, stdio: 'inherit' })
1616
eslintNodeVersion = require(
17-
path.join(__dirname, 'flat-config/node_modules/eslint/package.json')
17+
path.join(TARGET_DIR, 'node_modules/eslint/package.json')
1818
).engines.node
1919
})
2020

0 commit comments

Comments
 (0)