From 058f01b95550d0847a9c60370223555e253acea2 Mon Sep 17 00:00:00 2001
From: Sergei Zharinov <zharinov@users.noreply.github.com>
Date: Tue, 3 Aug 2021 11:24:01 +0300
Subject: [PATCH] fix(gradle): Use right path to fixtures (#11067)

---
 .../gradle-updates-report.spec.ts.snap        | 39 +++++++++++++++++++
 .../gradle/deep/gradle-updates-report.spec.ts |  2 +-
 lib/manager/gradle/deep/index-real.spec.ts    |  2 +-
 3 files changed, 41 insertions(+), 2 deletions(-)
 create mode 100644 lib/manager/gradle/deep/__snapshots__/gradle-updates-report.spec.ts.snap

diff --git a/lib/manager/gradle/deep/__snapshots__/gradle-updates-report.spec.ts.snap b/lib/manager/gradle/deep/__snapshots__/gradle-updates-report.spec.ts.snap
new file mode 100644
index 0000000000..c8f8dfe427
--- /dev/null
+++ b/lib/manager/gradle/deep/__snapshots__/gradle-updates-report.spec.ts.snap
@@ -0,0 +1,39 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`manager/gradle/deep/gradle-updates-report createRenovateGradlePlugin generates a report for Gradle version 5 1`] = `
+Array [
+  Object {
+    "dependencies": Array [
+      Object {
+        "group": "org.apache.commons",
+        "name": "commons-collections4",
+        "version": "4.4",
+      },
+    ],
+    "project": "minimal-test",
+    "repositories": Array [
+      "https://jcenter.bintray.com/",
+      "https://plugins.gradle.org/m2",
+    ],
+  },
+]
+`;
+
+exports[`manager/gradle/deep/gradle-updates-report createRenovateGradlePlugin generates a report for Gradle version 6 1`] = `
+Array [
+  Object {
+    "dependencies": Array [
+      Object {
+        "group": "org.apache.commons",
+        "name": "commons-collections4",
+        "version": "4.4",
+      },
+    ],
+    "project": "minimal-test",
+    "repositories": Array [
+      "https://jcenter.bintray.com/",
+      "https://plugins.gradle.org/m2",
+    ],
+  },
+]
+`;
diff --git a/lib/manager/gradle/deep/gradle-updates-report.spec.ts b/lib/manager/gradle/deep/gradle-updates-report.spec.ts
index 820e464904..6da98f8651 100644
--- a/lib/manager/gradle/deep/gradle-updates-report.spec.ts
+++ b/lib/manager/gradle/deep/gradle-updates-report.spec.ts
@@ -11,7 +11,7 @@ import {
 import { extraEnv } from './utils';
 import { GRADLE_DEPENDENCY_REPORT_OPTIONS } from '.';
 
-const fixtures = 'lib/manager/gradle/__fixtures__';
+const fixtures = 'lib/manager/gradle/deep/__fixtures__';
 
 describe(getName(), () => {
   for (const gradleVersion of [5, 6]) {
diff --git a/lib/manager/gradle/deep/index-real.spec.ts b/lib/manager/gradle/deep/index-real.spec.ts
index dd78d9bf44..74a9e0a0d8 100644
--- a/lib/manager/gradle/deep/index-real.spec.ts
+++ b/lib/manager/gradle/deep/index-real.spec.ts
@@ -7,7 +7,7 @@ import type { ExtractConfig } from '../../types';
 import { ifSystemSupportsGradle } from './__testutil__/gradle';
 import * as manager from '.';
 
-const fixtures = 'lib/manager/gradle/__fixtures__';
+const fixtures = 'lib/manager/gradle/deep/__fixtures__';
 
 const baseConfig = {
   gradle: {
-- 
GitLab