Skip to content

Commit

Permalink
fix(test): deps parser & plugin same major version
Browse files Browse the repository at this point in the history
Fixes #407.
  • Loading branch information
mightyiam committed Sep 2, 2020
1 parent 0732d3f commit 0329cac
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,15 @@ test('Peer and dev dep @typescript-eslint/eslint-plugin same base version', asyn
)
})

test('Deps parser and plugin are same version', async (t) => {
test('Deps parser and plugin are same major version', async (t) => {
const { ourDeps, ourPeerDeps } = await getOurDeps()
const parserRange = ourDeps['@typescript-eslint/parser']
const pluginRange = ourPeerDeps['@typescript-eslint/eslint-plugin']
t.is(parserRange.split('^')[1], pluginRange.split('>=')[1])
const parserMinimum = parserRange.split('^')[1]
const pluginMinimum = pluginRange.split('>=')[1]
const parserMajor = parserMinimum.split('.')[0]
const pluginMajor = pluginMinimum.split('.')[0]
t.is(parserMajor, pluginMajor)
})

test('Exported rule values do not reference eslint-config-standard ones', (t) => {
Expand Down

0 comments on commit 0329cac

Please sign in to comment.