diff --git a/package-lock.json b/package-lock.json index b4e32b73e4..79af32e686 100644 --- a/package-lock.json +++ b/package-lock.json @@ -75,7 +75,7 @@ "snyk-mvn-plugin": "3.5.0", "snyk-nodejs-lockfile-parser": "1.58.7", "snyk-nodejs-plugin": "1.3.2", - "snyk-nuget-plugin": "2.7.4", + "snyk-nuget-plugin": "2.7.6", "snyk-php-plugin": "1.9.2", "snyk-policy": "^1.25.0", "snyk-python-plugin": "2.2.1", @@ -21081,9 +21081,9 @@ "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==" }, "node_modules/snyk-nuget-plugin": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/snyk-nuget-plugin/-/snyk-nuget-plugin-2.7.4.tgz", - "integrity": "sha512-Dq/ywLR8pHWomfy1X7Fs17e4t23EMU81x+410rqKnDDDQ2M78VYCE3Xptx7M7RT2uoRAcpaTw11dI/N89kjRlw==", + "version": "2.7.6", + "resolved": "https://registry.npmjs.org/snyk-nuget-plugin/-/snyk-nuget-plugin-2.7.6.tgz", + "integrity": "sha512-be7YNaYOqNOO33HO2M3lIPnnyOHiZcmap/qgI36auQzhcYCa3jY+EP1vYs3w0Af62O5IPxgF/r4itLDsT43R+A==", "dependencies": { "@snyk/cli-interface": "^2.14.0", "@snyk/dep-graph": "^2.8.1", @@ -40286,9 +40286,9 @@ } }, "snyk-nuget-plugin": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/snyk-nuget-plugin/-/snyk-nuget-plugin-2.7.4.tgz", - "integrity": "sha512-Dq/ywLR8pHWomfy1X7Fs17e4t23EMU81x+410rqKnDDDQ2M78VYCE3Xptx7M7RT2uoRAcpaTw11dI/N89kjRlw==", + "version": "2.7.6", + "resolved": "https://registry.npmjs.org/snyk-nuget-plugin/-/snyk-nuget-plugin-2.7.6.tgz", + "integrity": "sha512-be7YNaYOqNOO33HO2M3lIPnnyOHiZcmap/qgI36auQzhcYCa3jY+EP1vYs3w0Af62O5IPxgF/r4itLDsT43R+A==", "requires": { "@snyk/cli-interface": "^2.14.0", "@snyk/dep-graph": "^2.8.1", diff --git a/package.json b/package.json index 9752a483de..70f1c0b84d 100644 --- a/package.json +++ b/package.json @@ -123,7 +123,7 @@ "snyk-mvn-plugin": "3.5.0", "snyk-nodejs-lockfile-parser": "1.58.7", "snyk-nodejs-plugin": "1.3.2", - "snyk-nuget-plugin": "2.7.4", + "snyk-nuget-plugin": "2.7.6", "snyk-php-plugin": "1.9.2", "snyk-policy": "^1.25.0", "snyk-python-plugin": "2.2.1", diff --git a/test/jest/acceptance/snyk-test/basic-test-all-languages.spec.ts b/test/jest/acceptance/snyk-test/basic-test-all-languages.spec.ts index 742a687e43..044d44aefb 100644 --- a/test/jest/acceptance/snyk-test/basic-test-all-languages.spec.ts +++ b/test/jest/acceptance/snyk-test/basic-test-all-languages.spec.ts @@ -281,10 +281,8 @@ describe('`snyk test` of basic projects for each language/ecosystem', () => { // libraries. expect([0, 1]).toContain(code); - // Note: dotnet plugin can print a warning about runtime resolution, which breaks JSON output. - // This replacement regex is a temporary workaround until the dotnet plugin can be fixed. - const sanitizedStdout = stdout.replace(/^[\s\S]*?{/, '{'); - const result = JSON.parse(sanitizedStdout); + // Checking if the JSON output is correctly defined and is not poluted with user facing messages. + const result = JSON.parse(stdout); expect(result?.ok).toBeDefined(); // Expect 'ok' to be true if exit 0, false if exit 1.