Skip to content

Commit

Permalink
test: assign to config.overrides.parser in compatibility config test
Browse files Browse the repository at this point in the history
  • Loading branch information
rostislav-simonik committed May 19, 2023
1 parent 778d7ee commit 2e62830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,13 +521,13 @@ test('our configuration is compatible with the plugin and parser at bottom of pe

const config = structuredClone(exported)

config.parser = typescriptEslintBottomParser
config.plugins = [typescriptEslintBottomPlugin]

if (config.overrides === undefined) throw new Error()
const overrides = config.overrides[0]
if (overrides === undefined) throw new Error()

overrides.parser = typescriptEslintBottomParser
if (overrides.rules === undefined) throw new Error()

overrides.rules = Object.fromEntries(
Expand Down

0 comments on commit 2e62830

Please sign in to comment.