Some checks failed
CI-integ-test-full / caching-integ-tests (push) Failing after 32s
CI-integ-test-full / other-integ-tests (push) Failing after 29m15s
CI-codeql / Analyze (javascript-typescript) (push) Failing after 59s
Update Wrapper checksums file / Update checksums (push) Failing after 1m14s
13 lines
563 B
TypeScript
13 lines
563 B
TypeScript
import * as path from 'path'
|
||
import * as find from '../../../src/wrapper-validation/find'
|
||
import {expect, test} from '@jest/globals'
|
||
|
||
test('finds test data wrapper jars', async () => {
|
||
const repoRoot = path.resolve('./test/jest/wrapper-validation')
|
||
const wrapperJars = await find.findWrapperJars(repoRoot)
|
||
expect(wrapperJars.length).toBe(3)
|
||
expect(wrapperJars).toContain('data/valid/gradle-wrapper.jar')
|
||
expect(wrapperJars).toContain('data/invalid/gradle-wrapper.jar')
|
||
expect(wrapperJars).toContain('data/invalid/gradlе-wrapper.jar') // homoglyph
|
||
})
|