|
| 1 | +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html |
| 2 | + |
| 3 | +exports[`PLUGIN collect report with knip-plugin NPM package > should run plugin over CLI and creates report.json 1`] = ` |
| 4 | +{ |
| 5 | + "packageName": "@code-pushup/core", |
| 6 | + "plugins": [ |
| 7 | + { |
| 8 | + "audits": [ |
| 9 | + { |
| 10 | + "description": "Unable to find a reference to this file", |
| 11 | + "docsUrl": "https://knip.dev/guides/handling-issues#unused-files", |
| 12 | + "slug": "files", |
| 13 | + "title": "Unused Files", |
| 14 | + }, |
| 15 | + { |
| 16 | + "description": "Unable to find a reference to this dependency", |
| 17 | + "docsUrl": "https://knip.dev/guides/handling-issues#unused-dependencies", |
| 18 | + "slug": "dependencies", |
| 19 | + "title": "Unused Dependencies", |
| 20 | + }, |
| 21 | + { |
| 22 | + "description": "Unable to find a reference to this devDependency", |
| 23 | + "docsUrl": "https://knip.dev/guides/handling-issues#unused-dependencies", |
| 24 | + "slug": "devdependencies", |
| 25 | + "title": "Unused Development Dependencies", |
| 26 | + }, |
| 27 | + { |
| 28 | + "description": "Optional peer dependency is referenced", |
| 29 | + "docsUrl": "https://knip.dev/guides/handling-issues#referenced-optional-peerDependencies", |
| 30 | + "slug": "optionalpeerdependencies", |
| 31 | + "title": "Referenced optional peerDependencies", |
| 32 | + }, |
| 33 | + { |
| 34 | + "description": "Used dependencies not listed in package.json", |
| 35 | + "docsUrl": "https://knip.dev/guides/handling-issues#unlisted-dependencies", |
| 36 | + "slug": "unlisted", |
| 37 | + "title": "Unlisted dependencies", |
| 38 | + }, |
| 39 | + { |
| 40 | + "description": "Binaries from dependencies not listed in package.json", |
| 41 | + "docsUrl": "https://knip.dev/guides/handling-issues", |
| 42 | + "slug": "binaries", |
| 43 | + "title": "Unlisted binaries", |
| 44 | + }, |
| 45 | + { |
| 46 | + "description": "Unable to resolve this (import) specifier", |
| 47 | + "docsUrl": "https://knip.dev/guides/handling-issues#unresolved-imports", |
| 48 | + "slug": "unresolved", |
| 49 | + "title": "Unresolved imports", |
| 50 | + }, |
| 51 | + { |
| 52 | + "description": "Unable to find a reference to this export", |
| 53 | + "docsUrl": "https://knip.dev/guides/handling-issues#unused-exports", |
| 54 | + "slug": "exports", |
| 55 | + "title": "Unused exports", |
| 56 | + }, |
| 57 | + { |
| 58 | + "description": "Namespace with export is referenced, but not export itself", |
| 59 | + "docsUrl": "https://knip.dev/guides/handling-issues#unused-exports", |
| 60 | + "slug": "nsexports", |
| 61 | + "title": "Exports in used namespace", |
| 62 | + }, |
| 63 | + { |
| 64 | + "description": "Unable to find a reference to this exported type", |
| 65 | + "docsUrl": "https://knip.dev/guides/handling-issues#unused-exports", |
| 66 | + "slug": "types", |
| 67 | + "title": "Unused exported types", |
| 68 | + }, |
| 69 | + { |
| 70 | + "description": "Namespace with type is referenced, but not type itself", |
| 71 | + "docsUrl": "https://knip.dev/guides/handling-issues#unused-exports", |
| 72 | + "slug": "nstypes", |
| 73 | + "title": "Exported types in used namespace", |
| 74 | + }, |
| 75 | + { |
| 76 | + "description": "Unable to find a reference to this enum member", |
| 77 | + "docsUrl": "https://knip.dev/guides/handling-issues#enum-members", |
| 78 | + "slug": "enummembers", |
| 79 | + "title": "Unused exported enum members", |
| 80 | + }, |
| 81 | + { |
| 82 | + "description": "Unable to find a reference to this class member", |
| 83 | + "docsUrl": "https://knip.dev/guides/handling-issues#class-members", |
| 84 | + "slug": "classmembers", |
| 85 | + "title": "Unused exported class members", |
| 86 | + }, |
| 87 | + { |
| 88 | + "description": "This is exported more than once", |
| 89 | + "docsUrl": "https://knip.dev/guides/handling-issues", |
| 90 | + "slug": "duplicates", |
| 91 | + "title": "Duplicate exports", |
| 92 | + }, |
| 93 | + ], |
| 94 | + "description": "A plugin to track dependencies and duplicates", |
| 95 | + "groups": [ |
| 96 | + { |
| 97 | + "description": "Groups all file related audits", |
| 98 | + "refs": [ |
| 99 | + { |
| 100 | + "slug": "files", |
| 101 | + "weight": 1, |
| 102 | + }, |
| 103 | + ], |
| 104 | + "slug": "files", |
| 105 | + "title": "All file audits", |
| 106 | + }, |
| 107 | + { |
| 108 | + "description": "Groups all dependency related knip audits", |
| 109 | + "refs": [ |
| 110 | + { |
| 111 | + "slug": "unresolved", |
| 112 | + "weight": 10, |
| 113 | + }, |
| 114 | + { |
| 115 | + "slug": "exports", |
| 116 | + "weight": 10, |
| 117 | + }, |
| 118 | + { |
| 119 | + "slug": "types", |
| 120 | + "weight": 10, |
| 121 | + }, |
| 122 | + { |
| 123 | + "slug": "nsexports", |
| 124 | + "weight": 10, |
| 125 | + }, |
| 126 | + { |
| 127 | + "slug": "nstypes", |
| 128 | + "weight": 10, |
| 129 | + }, |
| 130 | + { |
| 131 | + "slug": "enummembers", |
| 132 | + "weight": 10, |
| 133 | + }, |
| 134 | + { |
| 135 | + "slug": "classmembers", |
| 136 | + "weight": 10, |
| 137 | + }, |
| 138 | + { |
| 139 | + "slug": "duplicates", |
| 140 | + "weight": 2, |
| 141 | + }, |
| 142 | + ], |
| 143 | + "slug": "exports", |
| 144 | + "title": "All exports related audits", |
| 145 | + }, |
| 146 | + { |
| 147 | + "description": "Groups all dependency related audits", |
| 148 | + "refs": [ |
| 149 | + { |
| 150 | + "slug": "dependencies", |
| 151 | + "weight": 1, |
| 152 | + }, |
| 153 | + { |
| 154 | + "slug": "devdependencies", |
| 155 | + "weight": 1, |
| 156 | + }, |
| 157 | + { |
| 158 | + "slug": "binaries", |
| 159 | + "weight": 1, |
| 160 | + }, |
| 161 | + { |
| 162 | + "slug": "optionalpeerdependencies", |
| 163 | + "weight": 2, |
| 164 | + }, |
| 165 | + { |
| 166 | + "slug": "unlisted", |
| 167 | + "weight": 2, |
| 168 | + }, |
| 169 | + ], |
| 170 | + "slug": "dependencies", |
| 171 | + "title": "All dependency audits", |
| 172 | + }, |
| 173 | + { |
| 174 | + "description": "Groups all knip audits into a group for easy use", |
| 175 | + "refs": [ |
| 176 | + { |
| 177 | + "slug": "files", |
| 178 | + "weight": 1, |
| 179 | + }, |
| 180 | + { |
| 181 | + "slug": "unresolved", |
| 182 | + "weight": 10, |
| 183 | + }, |
| 184 | + { |
| 185 | + "slug": "exports", |
| 186 | + "weight": 10, |
| 187 | + }, |
| 188 | + { |
| 189 | + "slug": "types", |
| 190 | + "weight": 10, |
| 191 | + }, |
| 192 | + { |
| 193 | + "slug": "nsexports", |
| 194 | + "weight": 10, |
| 195 | + }, |
| 196 | + { |
| 197 | + "slug": "nstypes", |
| 198 | + "weight": 10, |
| 199 | + }, |
| 200 | + { |
| 201 | + "slug": "enummembers", |
| 202 | + "weight": 10, |
| 203 | + }, |
| 204 | + { |
| 205 | + "slug": "classmembers", |
| 206 | + "weight": 10, |
| 207 | + }, |
| 208 | + { |
| 209 | + "slug": "duplicates", |
| 210 | + "weight": 2, |
| 211 | + }, |
| 212 | + { |
| 213 | + "slug": "dependencies", |
| 214 | + "weight": 1, |
| 215 | + }, |
| 216 | + { |
| 217 | + "slug": "devdependencies", |
| 218 | + "weight": 1, |
| 219 | + }, |
| 220 | + { |
| 221 | + "slug": "binaries", |
| 222 | + "weight": 1, |
| 223 | + }, |
| 224 | + { |
| 225 | + "slug": "optionalpeerdependencies", |
| 226 | + "weight": 2, |
| 227 | + }, |
| 228 | + { |
| 229 | + "slug": "unlisted", |
| 230 | + "weight": 2, |
| 231 | + }, |
| 232 | + ], |
| 233 | + "slug": "all", |
| 234 | + "title": "All knip audits", |
| 235 | + }, |
| 236 | + ], |
| 237 | + "icon": "folder-javascript", |
| 238 | + "slug": "knip", |
| 239 | + "title": "Knip", |
| 240 | + }, |
| 241 | + ], |
| 242 | +} |
| 243 | +`; |
0 commit comments