Fix warnings and update tracability
This commit is contained in:
@@ -45,7 +45,7 @@ describe.skip("GenericMediaListPage", () => {
|
||||
describe("Component Initialization", () => {
|
||||
it("should render with title and search bar", () => {
|
||||
const config = {
|
||||
itemType: "Audio",
|
||||
itemType: "Audio" as const,
|
||||
title: "Tracks",
|
||||
backPath: "/library/music",
|
||||
searchPlaceholder: "Search tracks...",
|
||||
@@ -67,7 +67,7 @@ describe.skip("GenericMediaListPage", () => {
|
||||
|
||||
it("should load items on mount", async () => {
|
||||
const config = {
|
||||
itemType: "Audio",
|
||||
itemType: "Audio" as const,
|
||||
title: "Tracks",
|
||||
backPath: "/library/music",
|
||||
searchPlaceholder: "Search tracks...",
|
||||
@@ -87,7 +87,7 @@ describe.skip("GenericMediaListPage", () => {
|
||||
|
||||
it("should display sort options", () => {
|
||||
const config = {
|
||||
itemType: "MusicAlbum",
|
||||
itemType: "MusicAlbum" as const,
|
||||
title: "Albums",
|
||||
backPath: "/library/music",
|
||||
searchPlaceholder: "Search albums...",
|
||||
@@ -115,7 +115,7 @@ describe.skip("GenericMediaListPage", () => {
|
||||
vi.useFakeTimers();
|
||||
|
||||
const config = {
|
||||
itemType: "Audio",
|
||||
itemType: "Audio" as const,
|
||||
title: "Tracks",
|
||||
backPath: "/library/music",
|
||||
searchPlaceholder: "Search tracks...",
|
||||
@@ -169,7 +169,7 @@ describe.skip("GenericMediaListPage", () => {
|
||||
);
|
||||
|
||||
const config = {
|
||||
itemType: "Audio",
|
||||
itemType: "Audio" as const,
|
||||
title: "Tracks",
|
||||
backPath: "/library/music",
|
||||
searchPlaceholder: "Search tracks...",
|
||||
@@ -215,7 +215,7 @@ describe.skip("GenericMediaListPage", () => {
|
||||
);
|
||||
|
||||
const config = {
|
||||
itemType: "Audio",
|
||||
itemType: "Audio" as const,
|
||||
title: "Tracks",
|
||||
backPath: "/library/music",
|
||||
searchPlaceholder: "Search tracks...",
|
||||
@@ -260,7 +260,7 @@ describe.skip("GenericMediaListPage", () => {
|
||||
);
|
||||
|
||||
const config = {
|
||||
itemType: "Audio",
|
||||
itemType: "Audio" as const,
|
||||
title: "Tracks",
|
||||
backPath: "/library/music",
|
||||
searchPlaceholder: "Search tracks...",
|
||||
@@ -309,7 +309,7 @@ describe.skip("GenericMediaListPage", () => {
|
||||
);
|
||||
|
||||
const config = {
|
||||
itemType: "MusicAlbum",
|
||||
itemType: "MusicAlbum" as const,
|
||||
title: "Albums",
|
||||
backPath: "/library/music",
|
||||
searchPlaceholder: "Search albums...",
|
||||
@@ -349,7 +349,7 @@ describe.skip("GenericMediaListPage", () => {
|
||||
);
|
||||
|
||||
const config = {
|
||||
itemType: "Audio",
|
||||
itemType: "Audio" as const,
|
||||
title: "Tracks",
|
||||
backPath: "/library/music",
|
||||
searchPlaceholder: "Search tracks...",
|
||||
@@ -395,7 +395,7 @@ describe.skip("GenericMediaListPage", () => {
|
||||
);
|
||||
|
||||
const config = {
|
||||
itemType: "Audio",
|
||||
itemType: "Audio" as const,
|
||||
title: "Tracks",
|
||||
backPath: "/library/music",
|
||||
searchPlaceholder: "Search tracks...",
|
||||
@@ -433,7 +433,7 @@ describe.skip("GenericMediaListPage", () => {
|
||||
);
|
||||
|
||||
const config = {
|
||||
itemType: "MusicAlbum",
|
||||
itemType: "MusicAlbum" as const,
|
||||
title: "Albums",
|
||||
backPath: "/library/music",
|
||||
searchPlaceholder: "Search albums...",
|
||||
@@ -479,7 +479,7 @@ describe.skip("GenericMediaListPage", () => {
|
||||
);
|
||||
|
||||
const config = {
|
||||
itemType: "Audio",
|
||||
itemType: "Audio" as const,
|
||||
title: "Tracks",
|
||||
backPath: "/library/music",
|
||||
searchPlaceholder: "Search tracks...",
|
||||
@@ -515,7 +515,7 @@ describe.skip("GenericMediaListPage", () => {
|
||||
);
|
||||
|
||||
const config = {
|
||||
itemType: "Audio",
|
||||
itemType: "Audio" as const,
|
||||
title: "Tracks",
|
||||
backPath: "/library/music",
|
||||
searchPlaceholder: "Search tracks...",
|
||||
@@ -558,7 +558,7 @@ describe.skip("GenericMediaListPage", () => {
|
||||
);
|
||||
|
||||
const config = {
|
||||
itemType: "Audio",
|
||||
itemType: "Audio" as const,
|
||||
title: "Tracks",
|
||||
backPath: "/library/music",
|
||||
searchPlaceholder: "Search tracks...",
|
||||
@@ -581,7 +581,7 @@ describe.skip("GenericMediaListPage", () => {
|
||||
describe("Display Component Props", () => {
|
||||
it("should support grid display component", () => {
|
||||
const config = {
|
||||
itemType: "MusicAlbum",
|
||||
itemType: "MusicAlbum" as const,
|
||||
title: "Albums",
|
||||
backPath: "/library/music",
|
||||
searchPlaceholder: "Search albums...",
|
||||
@@ -599,7 +599,7 @@ describe.skip("GenericMediaListPage", () => {
|
||||
|
||||
it("should support tracklist display component", () => {
|
||||
const config = {
|
||||
itemType: "Audio",
|
||||
itemType: "Audio" as const,
|
||||
title: "Tracks",
|
||||
backPath: "/library/music",
|
||||
searchPlaceholder: "Search tracks...",
|
||||
@@ -619,7 +619,7 @@ describe.skip("GenericMediaListPage", () => {
|
||||
describe("Config Simplification", () => {
|
||||
it("should not require searchFields in config", () => {
|
||||
const config = {
|
||||
itemType: "Audio",
|
||||
itemType: "Audio" as const,
|
||||
title: "Tracks",
|
||||
backPath: "/library/music",
|
||||
searchPlaceholder: "Search tracks...",
|
||||
@@ -639,7 +639,7 @@ describe.skip("GenericMediaListPage", () => {
|
||||
|
||||
it("should not require compareFn in sort options", () => {
|
||||
const config = {
|
||||
itemType: "Audio",
|
||||
itemType: "Audio" as const,
|
||||
title: "Tracks",
|
||||
backPath: "/library/music",
|
||||
searchPlaceholder: "Search tracks...",
|
||||
|
||||
Reference in New Issue
Block a user