Skip to content

Commit 329947e

Browse files
committed
fix(tests): Fix mock up of referenced plugin
Installing a real plugin locally only for testing purposes is not necessary anymore.
1 parent ae0bde2 commit 329947e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/bin.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ const mainFile = path.join(process.cwd(), specifiedFile)
1212
const extendingFile = './fixtures/extending-config.json'
1313
const indexStub = {
1414
'./index': () => rules,
15+
'eslint-plugin-react': {
16+
rules: {
17+
'jsx-uses-react': true,
18+
'no-multi-comp': true,
19+
'prop-types': true,
20+
},
21+
'@noCallThru': true,
22+
'@global': true,
23+
},
1524
}
1625
function outputStatement() {
1726
return `New rules to add to the config: ${rules.join(', ')}.`

0 commit comments

Comments
 (0)