|
9 | 9 | parseSpdxExp, |
10 | 10 | resolvePackageJsonDirname, |
11 | 11 | resolvePackageJsonEntryExports, |
12 | | - resolvePackageJsonPath, |
13 | 12 | resolvePackageLicenses, |
14 | 13 | } from '../../registry/dist/lib/packages.js' |
15 | 14 |
|
@@ -210,28 +209,6 @@ describe('packages module - edge cases and error handling', () => { |
210 | 209 | }) |
211 | 210 | }) |
212 | 211 |
|
213 | | - describe('resolvePackageJsonPath', () => { |
214 | | - it('should return path if it ends with package.json', () => { |
215 | | - const result = resolvePackageJsonPath('/path/to/package.json') |
216 | | - expect(result).toBe('/path/to/package.json') |
217 | | - }) |
218 | | - |
219 | | - it('should append package.json to directory path', () => { |
220 | | - const result = resolvePackageJsonPath('/path/to/directory') |
221 | | - expect(result).toContain('package.json') |
222 | | - }) |
223 | | - |
224 | | - it('should handle root directory', () => { |
225 | | - const result = resolvePackageJsonPath('/') |
226 | | - expect(result).toContain('package.json') |
227 | | - }) |
228 | | - |
229 | | - it('should handle relative paths', () => { |
230 | | - const result = resolvePackageJsonPath('.') |
231 | | - expect(result).toContain('package.json') |
232 | | - }) |
233 | | - }) |
234 | | - |
235 | 212 | describe('resolvePackageJsonEntryExports', () => { |
236 | 213 | it('should wrap string exports in dot notation', () => { |
237 | 214 | const result = resolvePackageJsonEntryExports('./index.js') |
|
0 commit comments