Skip to content

fix: make song fields nullable #46

fix: make song fields nullable

fix: make song fields nullable #46

Triggered via push March 30, 2024 17:01
Status Failure
Total duration 26s
Artifacts

ci.yaml

on: push
Test and Deploy to Staging
19s
Test and Deploy to Staging
Fit to window
Zoom out
Zoom in

Annotations

10 errors
src/modules/artists/controllers/artist.controller.spec.ts > ArtistController > retrieve artist by link: src/modules/artists/controllers/artist.controller.spec.ts#L21
Error: Snapshot `ArtistController > retrieve artist by link 1` mismatched - Expected + Received @@ -10,15 +10,15 @@ "hebrew", "dutch", "korean", ], "bio": [], - "dob": "", + "dob": null, "dominantLanguage": "english", "dominantType": "music director", - "fanCount": "706746", - "fb": "", + "fanCount": "693624", + "fb": null, "followerCount": Any<Number>, "id": "1274170", "image": [ { "quality": "50x50", @@ -38,10 +38,10 @@ "name": "Dua Lipa", "similarArtists": [], "singles": Any<Array>, "topAlbums": Any<Array>, "topSongs": Any<Array>, - "twitter": "", + "twitter": null, "type": "artist", "url": "https://www.jiosaavn.com/artist/dua-lipa/r-OWIKgpX2I_", - "wiki": "", + "wiki": null, } ❯ src/modules/artists/controllers/artist.controller.spec.ts:21:18
src/modules/artists/controllers/artist.controller.spec.ts > ArtistController > retrieve artist by ID: src/modules/artists/controllers/artist.controller.spec.ts#L35
Error: Snapshot `ArtistController > retrieve artist by ID 1` mismatched - Expected + Received @@ -10,15 +10,15 @@ "hebrew", "dutch", "korean", ], "bio": [], - "dob": "", + "dob": null, "dominantLanguage": "english", "dominantType": "music director", - "fanCount": "706746", - "fb": "", + "fanCount": "693624", + "fb": null, "followerCount": Any<Number>, "id": "1274170", "image": [ { "quality": "50x50", @@ -38,10 +38,10 @@ "name": "Dua Lipa", "similarArtists": [], "singles": Any<Array>, "topAlbums": Any<Array>, "topSongs": Any<Array>, - "twitter": "", + "twitter": null, "type": "artist", "url": "https://www.jiosaavn.com/artist/dua-lipa/r-OWIKgpX2I_", - "wiki": "", + "wiki": null, } ❯ src/modules/artists/controllers/artist.controller.spec.ts:35:18
src/modules/artists/controllers/artist.controller.spec.ts > ArtistController > retrieve artist's songs: src/modules/artists/controllers/artist.controller.spec.ts#L49
Error: Snapshot mismatched - Expected + Received Object { - "songs": ArrayContaining [ - ObjectContaining { - "playCount": Any<Number>, - }, - ], + "songs": Array [], "total": Any<Number>, } ❯ src/modules/artists/controllers/artist.controller.spec.ts:49:18
src/modules/artists/controllers/artist.controller.spec.ts > ArtistController > retrieve artist's albums: src/modules/artists/controllers/artist.controller.spec.ts#L64
Error: Snapshot mismatched - Expected + Received Object { - "albums": ArrayContaining [ - ObjectContaining { - "playCount": Any<Number>, - }, - ], + "albums": Array [], "total": Any<Number>, } ❯ src/modules/artists/controllers/artist.controller.spec.ts:64:18
src/modules/playlists/controllers/playlist.controller.spec.ts > PlaylistController > retrieve playlist by link: src/modules/playlists/controllers/playlist.controller.spec.ts#L21
Error: Snapshot `PlaylistController > retrieve playlist by link 1` mismatched - Expected + Received @@ -1,311 +1,72 @@ { "artists": [ { - "id": "1546334", - "image": [ - { - "quality": "50x50", - "url": "https://c.saavncdn.com/artists/Prateek_Kuhad_005_20230506101352_50x50.jpg", - }, - { - "quality": "150x150", - "url": "https://c.saavncdn.com/artists/Prateek_Kuhad_005_20230506101352_150x150.jpg", - }, - { - "quality": "500x500", - "url": "https://c.saavncdn.com/artists/Prateek_Kuhad_005_20230506101352_500x500.jpg", - }, - ], - "name": "Prateek Kuhad", - "role": "singer", - "type": "artist", - "url": "https://www.jiosaavn.com/artist/prateek-kuhad-songs/udEDVH0llw0_", - }, - { - "id": "1546334", - "image": [ - { - "quality": "50x50", - "url": "https://c.saavncdn.com/artists/Prateek_Kuhad_005_20230506101352_50x50.jpg", - }, - { - "quality": "150x150", - "url": "https://c.saavncdn.com/artists/Prateek_Kuhad_005_20230506101352_150x150.jpg", - }, - { - "quality": "500x500", - "url": "https://c.saavncdn.com/artists/Prateek_Kuhad_005_20230506101352_500x500.jpg", - }, - ], - "name": "Prateek Kuhad", - "role": "lyricist", - "type": "artist", - "url": "https://www.jiosaavn.com/artist/prateek-kuhad-songs/udEDVH0llw0_", - }, - { - "id": "4230717", - "image": [], - "name": "Brandon Shoop", - "role": "lyricist", - "type": "artist", - "url": "https://www.jiosaavn.com/artist/brandon-shoop-songs/z3nUd3NG6cs_", - }, - { - "id": "467027", - "image": [ - { - "quality": "50x50", - "url": "https://c.saavncdn.com/artists/Shalmali_Kholgade_004_20200226073940_50x50.jpg", - }, - { - "quality": "150x150", - "url": "https://c.saavncdn.com/artists/Shalmali_Kholgade_004_20200226073940_150x150.jpg", - }, - { - "quality": "500x500", - "url": "https://c.saavncdn.com/artists/Shalmali_Kholgade_004_20200226073940_500x500.jpg", - }, - ], - "name": "Shalmali", - "role": "music", - "type": "artist", - "url": "https://www.jiosaavn.com/artist/shalmali-songs/AmvCYXtSRAU_", - }, - { - "id": "2737681", - "image": [ - { - "quality": "50x50", - "url": "https://c.saavncdn.com/artists/Natania_Lalwani_001_20191128084944_50x50.jpg", - }, - { - "quality": "150x150", - "url": "https://c.saavncdn.com/artists/Natania_Lalwani_001_20191128084944_150x150.jpg", - }, - { - "quality": "500x500", - "url": "https://c.saavncdn.com/artists/Natania_Lalwani_001_20191128084944_500x500.jpg", - }, - ], - "name": "Natania", - "role": "music", - "type": "artist", - "url": "https://www.jiosaavn.com/artist/natania-songs/08-ViIgdTvw_", - }, - { - "id": "3372836", - "image": [ - { - "quality": "50x50", - "url": "https://c.saavncdn.com/485/With-U-2-English-2019-20190212150435-50x50.jpg", - }, - { - "quality": "150x150", - "url": "https://c.saavncdn.com/485/With-U-2-English-2019-20190212150435-150x150.jpg", - }, - { - "quality": "500x500", - "url": "https://c.saavncdn.com/485/With-U-2-English-2019-20190212150435-500x500.jpg", - }, - ], - "name": "Miranda Glory", - "role": "music", - "type": "artist", - "url": "https://www.jiosaavn.com/artist/miranda-glory-songs/J5TeCH7Cc,A_", - }, - { - "id": "467027", - "image": [ - { - "quality": "50x50", - "url": "https://c.saavncdn.com/artists/Shalmali_Kholgade_004_20200226073940_50x50.jpg
src/modules/playlists/controllers/playlist.controller.spec.ts > PlaylistController > retrieve playlist by ID: src/modules/playlists/controllers/playlist.controller.spec.ts#L36
Error: Snapshot `PlaylistController > retrieve playlist by ID 1` mismatched - Expected + Received @@ -1,311 +1,72 @@ { "artists": [ { - "id": "1546334", - "image": [ - { - "quality": "50x50", - "url": "https://c.saavncdn.com/artists/Prateek_Kuhad_005_20230506101352_50x50.jpg", - }, - { - "quality": "150x150", - "url": "https://c.saavncdn.com/artists/Prateek_Kuhad_005_20230506101352_150x150.jpg", - }, - { - "quality": "500x500", - "url": "https://c.saavncdn.com/artists/Prateek_Kuhad_005_20230506101352_500x500.jpg", - }, - ], - "name": "Prateek Kuhad", - "role": "singer", - "type": "artist", - "url": "https://www.jiosaavn.com/artist/prateek-kuhad-songs/udEDVH0llw0_", - }, - { - "id": "1546334", - "image": [ - { - "quality": "50x50", - "url": "https://c.saavncdn.com/artists/Prateek_Kuhad_005_20230506101352_50x50.jpg", - }, - { - "quality": "150x150", - "url": "https://c.saavncdn.com/artists/Prateek_Kuhad_005_20230506101352_150x150.jpg", - }, - { - "quality": "500x500", - "url": "https://c.saavncdn.com/artists/Prateek_Kuhad_005_20230506101352_500x500.jpg", - }, - ], - "name": "Prateek Kuhad", - "role": "lyricist", - "type": "artist", - "url": "https://www.jiosaavn.com/artist/prateek-kuhad-songs/udEDVH0llw0_", - }, - { - "id": "4230717", - "image": [], - "name": "Brandon Shoop", - "role": "lyricist", - "type": "artist", - "url": "https://www.jiosaavn.com/artist/brandon-shoop-songs/z3nUd3NG6cs_", - }, - { - "id": "467027", - "image": [ - { - "quality": "50x50", - "url": "https://c.saavncdn.com/artists/Shalmali_Kholgade_004_20200226073940_50x50.jpg", - }, - { - "quality": "150x150", - "url": "https://c.saavncdn.com/artists/Shalmali_Kholgade_004_20200226073940_150x150.jpg", - }, - { - "quality": "500x500", - "url": "https://c.saavncdn.com/artists/Shalmali_Kholgade_004_20200226073940_500x500.jpg", - }, - ], - "name": "Shalmali", - "role": "music", - "type": "artist", - "url": "https://www.jiosaavn.com/artist/shalmali-songs/AmvCYXtSRAU_", - }, - { - "id": "2737681", - "image": [ - { - "quality": "50x50", - "url": "https://c.saavncdn.com/artists/Natania_Lalwani_001_20191128084944_50x50.jpg", - }, - { - "quality": "150x150", - "url": "https://c.saavncdn.com/artists/Natania_Lalwani_001_20191128084944_150x150.jpg", - }, - { - "quality": "500x500", - "url": "https://c.saavncdn.com/artists/Natania_Lalwani_001_20191128084944_500x500.jpg", - }, - ], - "name": "Natania", - "role": "music", - "type": "artist", - "url": "https://www.jiosaavn.com/artist/natania-songs/08-ViIgdTvw_", - }, - { - "id": "3372836", - "image": [ - { - "quality": "50x50", - "url": "https://c.saavncdn.com/485/With-U-2-English-2019-20190212150435-50x50.jpg", - }, - { - "quality": "150x150", - "url": "https://c.saavncdn.com/485/With-U-2-English-2019-20190212150435-150x150.jpg", - }, - { - "quality": "500x500", - "url": "https://c.saavncdn.com/485/With-U-2-English-2019-20190212150435-500x500.jpg", - }, - ], - "name": "Miranda Glory", - "role": "music", - "type": "artist", - "url": "https://www.jiosaavn.com/artist/miranda-glory-songs/J5TeCH7Cc,A_", - }, - { - "id": "467027", - "image": [ - { - "quality": "50x50", - "url": "https://c.saavncdn.com/artists/Shalmali_Kholgade_004_20200226073940_50x50.jpg",
src/modules/search/controllers/search.controller.spec.ts > SearchController > search everything: src/modules/search/controllers/search.controller.spec.ts#L29
Error: Snapshot `SearchController > search everything 1` mismatched - Expected + Received @@ -1,108 +1,80 @@ { "albums": { - "position": 2, + "position": 1, + "results": [], + }, + "artists": { + "position": 4, "results": [ { - "description": "2022 · English Album · Imagine Dragons", - "id": "33436571", + "description": "Singer", + "id": "4992352", "image": [ { "quality": "50x50", - "url": "https://c.saavncdn.com/038/Bones-English-2022-20220311113603-50x50.jpg", + "url": "https://www.jiosaavn.com/_i/3.0/artist-default-music.png", }, { "quality": "150x150", - "url": "https://c.saavncdn.com/038/Bones-English-2022-20220311113603-150x150.jpg", + "url": "https://www.jiosaavn.com/_i/3.0/artist-default-music.png", }, { "quality": "500x500", - "url": "https://c.saavncdn.com/038/Bones-English-2022-20220311113603-500x500.jpg", + "url": "https://www.jiosaavn.com/_i/3.0/artist-default-music.png", }, ], - "language": "english", - "songIds": "yDeAS8Eh", - "title": "Bones", - "type": "album", - "year": "2022", - }, - { - "description": "2022 · English Album · Imagine Dragons, Twocolors", - "id": "39311737", - "image": [ - { - "quality": "50x50", - "url": "https://c.saavncdn.com/601/Bones-twocolors-Remix-English-2022-20221026181026-50x50.jpg", - }, - { - "quality": "150x150", - "url": "https://c.saavncdn.com/601/Bones-twocolors-Remix-English-2022-20221026181026-150x150.jpg", - }, - { - "quality": "500x500", - "url": "https://c.saavncdn.com/601/Bones-twocolors-Remix-English-2022-20221026181026-500x500.jpg", - }, - ], - "language": "english", - "songIds": "inDrtluD", - "title": "Bones (twocolors Remix)", - "type": "album", - "year": "2022", + "position": 2, + "title": "Kygo &amp; Imagine Dragons", + "type": "artist", }, { - "description": "2024 · Album · Alhanii", - "id": "52199809", + "description": "Artist", + "id": "13646546", "image": [ { "quality": "50x50", - "url": "https://c.saavncdn.com/944/Bones-Unknown-2024-20240226103425-50x50.jpg", + "url": "https://www.jiosaavn.com/_i/3.0/artist-default-film.png", }, { "quality": "150x150", - "url": "https://c.saavncdn.com/944/Bones-Unknown-2024-20240226103425-150x150.jpg", + "url": "https://www.jiosaavn.com/_i/3.0/artist-default-film.png", }, { "quality": "500x500", - "url": "https://c.saavncdn.com/944/Bones-Unknown-2024-20240226103425-500x500.jpg", + "url": "https://www.jiosaavn.com/_i/3.0/artist-default-film.png", }, ], - "language": "unknown", - "songIds": "F-oqZAXE", - "title": "Bones", - "type": "album", - "year": "2024", + "position": 3, + "title": "INC. OBO IMAGINE DRAGONS PUB", + "type": "artist", }, - ], - }, - "artists": { - "position": 1, - "results": [ { - "description": "Singer", - "id": "599452", + "description": "Artist", + "id": "13647141", "image": [ { "quality": "50x50", - "url": "https://c.saavncdn.com/artists/Imagine_Dragons_50x50.jpg", + "url": "https://www.jiosaavn.com/_i/3.0/artist-default-film.png", }, { "quality": "150x150", - "url": "https://c.saavncdn.com/artists/Imagine_Dragons_150x150.jpg", + "url": "https://www.jiosaav
src/modules/search/controllers/search.controller.spec.ts > SearchController > search albums: src/modules/search/controllers/search.controller.spec.ts#L52
Error: Snapshot mismatched - Expected + Received Object { - "results": ArrayContaining [ - ObjectContaining { - "playCount": Any<Number>, - }, - ], + "results": Array [], + "start": -9, "total": Any<Number>, } ❯ src/modules/search/controllers/search.controller.spec.ts:52:18
src/modules/search/controllers/search.controller.spec.ts > SearchController > search artists: src/modules/search/controllers/search.controller.spec.ts#L67
Error: Snapshot `SearchController > search artists 1` mismatched - Expected + Received @@ -210,7 +210,7 @@ "type": "artist", "url": "https://www.jiosaavn.com/artist/adele-marley-songs/7h8DFMZMYZk_", }, ], "start": -9, - "total": 1483, + "total": 1489, } ❯ src/modules/search/controllers/search.controller.spec.ts:67:18
src/modules/search/controllers/search.controller.spec.ts > SearchController > search playlists: src/modules/search/controllers/search.controller.spec.ts#L75
Error: Snapshot `SearchController > search playlists 1` mismatched - Expected + Received @@ -192,54 +192,54 @@ "url": "https://www.jiosaavn.com/featured/desi-indie-romance-weekly-jukebox/fmSatbd,4PNFo9wdEAzFBA__", "year": 0, }, { "explicitContent": false, - "id": "824483903", + "id": "157002075", "image": [ { "quality": "50x50", - "url": "https://c.saavncdn.com/editorial/hindi-cluster_48_20240325055910_50x50.jpg", + "url": "https://c.saavncdn.com/editorial/hindi-cluster_17_20240325054058_50x50.jpg", }, { "quality": "150x150", - "url": "https://c.saavncdn.com/editorial/hindi-cluster_48_20240325055910_150x150.jpg", + "url": "https://c.saavncdn.com/editorial/hindi-cluster_17_20240325054058_150x150.jpg", }, { "quality": "500x500", - "url": "https://c.saavncdn.com/editorial/hindi-cluster_48_20240325055910_500x500.jpg", + "url": "https://c.saavncdn.com/editorial/hindi-cluster_17_20240325054058_500x500.jpg", }, ], - "name": "Desi-Indie 00s - Weekly Jukebox", + "name": "Desi-Indie Chill - Weekly Jukebox", "playCount": null, "songCount": 0, "type": "playlist", - "url": "https://www.jiosaavn.com/featured/desi-indie-00s-weekly-jukebox/uhiYaFljwCAwkg5tVhI3fw__", + "url": "https://www.jiosaavn.com/featured/desi-indie-chill-weekly-jukebox/6,bsIqbJPgPuCJW60TJk1Q__", "year": 0, }, { "explicitContent": false, - "id": "157002075", + "id": "157002150", "image": [ { "quality": "50x50", - "url": "https://c.saavncdn.com/editorial/hindi-cluster_17_20240325054058_50x50.jpg", + "url": "https://c.saavncdn.com/editorial/hindi-cluster_48_20191103133425_50x50.jpg", }, { "quality": "150x150", - "url": "https://c.saavncdn.com/editorial/hindi-cluster_17_20240325054058_150x150.jpg", + "url": "https://c.saavncdn.com/editorial/hindi-cluster_48_20191103133425_150x150.jpg", }, { "quality": "500x500", - "url": "https://c.saavncdn.com/editorial/hindi-cluster_17_20240325054058_500x500.jpg", + "url": "https://c.saavncdn.com/editorial/hindi-cluster_48_20191103133425_500x500.jpg", }, ], - "name": "Desi-Indie Chill - Weekly Jukebox", + "name": "Weekly Jukebox - 2000s Desi-Indie", "playCount": null, "songCount": 0, "type": "playlist", - "url": "https://www.jiosaavn.com/featured/desi-indie-chill-weekly-jukebox/6,bsIqbJPgPuCJW60TJk1Q__", + "url": "https://www.jiosaavn.com/featured/weekly-jukebox-2000s-desi-indie/0hSP0NhVW6FuOxiEGmm6lQ__", "year": 0, }, ], "start": -9, "total": 49, ❯ src/modules/search/controllers/search.controller.spec.ts:75:18