From 73da75f7e6387d1eb5be24b3cf931fc8eb28cb14 Mon Sep 17 00:00:00 2001 From: "Shahar \"Dawn\" Or" Date: Fri, 2 Jun 2023 13:21:52 +0700 Subject: [PATCH] test: bottom peerDep compatibility test actually works Co-authored-by: Rostislav Simonik --- src/index.test.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/index.test.ts b/src/index.test.ts index 72b31448..29ac75f6 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -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)) })