Bump the minor-and-patch group across 1 directory with 5 updates #8
Annotations
6 errors and 10 warnings
|
Unit tests
Process completed with exit code 1.
|
|
Unit tests:
src/app/api/playlists/[playlistId]/tracks/route.ts#L390
Error: [vitest] No "SpotifyRateLimitError" export is defined on the "@/lib/spotify" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("@/lib/spotify"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ POST src/app/api/playlists/[playlistId]/tracks/route.ts:390:24
❯ src/app/api/playlists/[playlistId]/tracks/route.test.ts:426:22
|
|
Unit tests:
src/app/api/playlists/[playlistId]/tracks/route.ts#L390
Error: [vitest] No "SpotifyRateLimitError" export is defined on the "@/lib/spotify" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("@/lib/spotify"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ POST src/app/api/playlists/[playlistId]/tracks/route.ts:390:24
❯ src/app/api/playlists/[playlistId]/tracks/route.test.ts:402:22
|
|
Unit tests:
src/app/api/playlists/route.ts#L54
TypeError: Cannot read properties of undefined (reading 'toISOString')
❯ src/app/api/playlists/route.ts:54:67
❯ Module.GET src/app/api/playlists/route.ts:44:30
❯ src/app/api/playlists/__tests__/route.test.ts:261:22
|
|
Unit tests:
src/lib/notification-prefs.test.ts#L145
AssertionError: expected [ 'newTrack', 'newSwaplist', …(5) ] to have a length of 6 but got 7
- Expected
+ Received
- 6
+ 7
❯ src/lib/notification-prefs.test.ts:145:32
|
|
Unit tests:
src/app/api/playlists/route.ts#L295
Error: [vitest] No "notifyCircleMembers" export is defined on the "@/lib/notifications" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("@/lib/notifications"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ src/app/api/playlists/route.ts:295:43
This error originated in "src/app/api/playlists/__tests__/route.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
|
|
Lint:
src/app/dashboard/DashboardClient.tsx#L336
File has too many lines (1083). Maximum allowed is 300
|
|
Lint:
src/app/circle/join/page.tsx#L332
File has too many lines (315). Maximum allowed is 300
|
|
Lint:
src/app/circle/[circleId]/settings/CircleSettingsClient.tsx#L437
Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element
|
|
Lint:
src/app/circle/[circleId]/settings/CircleSettingsClient.tsx#L359
File has too many lines (546). Maximum allowed is 300
|
|
Lint:
src/app/circle/[circleId]/settings/CircleSettingsClient.tsx#L341
Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element
|
|
Lint:
src/app/circle/[circleId]/settings/CircleSettingsClient.tsx#L279
Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element
|
|
Lint:
src/app/api/playlists/[playlistId]/tracks/route.ts#L349
File has too many lines (410). Maximum allowed is 300
|
|
Lint:
src/app/api/auth/callback/route.ts#L385
File has too many lines (363). Maximum allowed is 300
|
|
Lint:
src/app/activity/ActivityClient.tsx#L159
Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element
|
|
Lint:
src/app/LandingClient.tsx#L350
File has too many lines (2294). Maximum allowed is 300
|
Loading