fixed failing test
nclazz/depresolve/pipeline/head There was a failure building this commit Details

develop
Niclas Thobaben 2022-11-27 18:20:12 +01:00
parent 432a9e8103
commit 08e01a9149
1 changed files with 2 additions and 11 deletions

View File

@ -49,17 +49,8 @@ describe('process-yarn', () => {
})
it('returns correct number of results', () => {
const input = `
yarn outdated v1.22.19
info Color legend :
"<red>" : Major Update backward-incompatible updates
"<yellow>" : Minor Update backward-compatible features
"<green>" : Patch Update backward-compatible bug fixes
Package Current Wanted Latest Package Type URL
@types/jest 23.3.14 23.3.14 29.2.3 devDependencies https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jest
jest 28.1.3 28.1.3 29.3.1 devDependencies https://jestjs.io/
jest-junit 14.0.1 14.0.1 15.0.0 devDependencies https://github.com/jest-community/jest-junit#readme
tslint 5.20.1 5.20.1 6.1.3 devDependencies https://palantir.github.io/tslint
Done in 12.56s.`
{"type":"info","data":"Color legend : \\n \\"<red>\\" : Major Update backward-incompatible updates \\n \\"<yellow>\\" : Minor Update backward-compatible features \\n \\"<green>\\" : Patch Update backward-compatible bug fixes"}
{"type":"table","data":{"head":["Package","Current","Wanted","Latest","Package Type","URL"],"body":[["@types/jest","23.3.14","23.3.14","29.2.3","devDependencies","https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jest"],["jest","28.1.3","28.1.3","29.3.1","devDependencies","https://jestjs.io/"],["jest-junit","14.0.1","14.0.1","15.0.0","devDependencies","https://github.com/jest-community/jest-junit#readme"],["tslint","5.20.1","5.20.1","6.1.3","devDependencies","https://palantir.github.io/tslint"]]}}`
expect(parseOutdatedLibraries(input, 'package.json')).toHaveLength(4)
})
})