Skip to content

Commit

Permalink
test: bottom peerDep compatibility test actually works
Browse files Browse the repository at this point in the history
Co-authored-by: Rostislav Simonik <rostislav.simonik@technologystudio.sk>
  • Loading branch information
mightyiam and rostislav-simonik committed Jun 2, 2023
1 parent 376ad3a commit 73da75f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -537,12 +537,16 @@ test('our configuration is compatible with the plugin and parser at bottom of pe
])
)

overrides.parserOptions = {
project: './tsconfig.json'
}

const eslint = new ESLint({
useEslintrc: false,
overrideConfig: config
})

await t.notThrowsAsync(async () => {
await eslint.lintText('foo')
})
const results = await eslint.lintFiles('src/**/*')
t.true(results.length > 0)
results.forEach(result => t.deepEqual(result.messages, [], result.filePath))
})

0 comments on commit 73da75f

Please sign in to comment.