Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [OSM-1056] enhance sbt output width #143

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ export function buildArgs(
} else if (isCoursierProject) {
args.push('coursierDependencyTree'); // coursier
} else {
// enhance sbt default output width from 40 chars to the max
args.push('set asciiGraphWidth := 999999999');
args.push('dependencyTree'); // sbt native
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"lint": "eslint --color --cache 'lib/**/*.{js,ts}'",
"format": "prettier --write '{lib,test}/**/*.{js,ts}'",
"prepare": "npm run build",
"test": "jest --runInBand -b --testTimeout=100000"
"test": "jest --runInBand -b --testTimeout=200000"
},
"author": "snyk.io",
"license": "Apache-2.0",
Expand Down
3 changes: 3 additions & 0 deletions test/functional/sbt-plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ test('check build args with array not coursier', () => {
'-Dsbt.log.noformat=true',
'-Paxis',
'-Pjaxen',
'set asciiGraphWidth := 999999999',
'dependencyTree',
]);
});
Expand All @@ -15,6 +16,7 @@ test('check build args with string not coursie', () => {
expect(result).toEqual([
'-Dsbt.log.noformat=true',
'-Paxis -Pjaxen',
'set asciiGraphWidth := 999999999',
'dependencyTree',
]);
});
Expand Down Expand Up @@ -61,6 +63,7 @@ test('check build args with string for not coursier and not snykRenderTree', ()
expect(result).toEqual([
'-Dsbt.log.noformat=true',
'-Paxis -Pjaxen',
'set asciiGraphWidth := 999999999',
'dependencyTree',
]);
});