diff --git a/packages/pixel-profile/test/__image_snapshots__/theme-test-ts-packages-pixel-profile-test-theme-test-ts-theme-with-screen-effect-render-card-with-blue-chill-theme-and-glow-1-snap.png b/packages/pixel-profile/test/__image_snapshots__/theme-test-ts-packages-pixel-profile-test-theme-test-ts-theme-with-screen-effect-render-card-with-blue-chill-theme-and-glow-1-snap.png new file mode 100644 index 0000000..de24722 Binary files /dev/null and b/packages/pixel-profile/test/__image_snapshots__/theme-test-ts-packages-pixel-profile-test-theme-test-ts-theme-with-screen-effect-render-card-with-blue-chill-theme-and-glow-1-snap.png differ diff --git a/packages/pixel-profile/test/__image_snapshots__/theme-test-ts-packages-pixel-profile-test-theme-test-ts-theme-with-screen-effect-render-card-with-fuji-theme-and-dithering-1-snap.png b/packages/pixel-profile/test/__image_snapshots__/theme-test-ts-packages-pixel-profile-test-theme-test-ts-theme-with-screen-effect-render-card-with-fuji-theme-and-dithering-1-snap.png deleted file mode 100644 index 5fb7aed..0000000 Binary files a/packages/pixel-profile/test/__image_snapshots__/theme-test-ts-packages-pixel-profile-test-theme-test-ts-theme-with-screen-effect-render-card-with-fuji-theme-and-dithering-1-snap.png and /dev/null differ diff --git a/packages/pixel-profile/test/__image_snapshots__/theme-test-ts-packages-pixel-profile-test-theme-test-ts-theme-with-screen-effect-render-card-with-fuji-theme-and-glow-1-snap.png b/packages/pixel-profile/test/__image_snapshots__/theme-test-ts-packages-pixel-profile-test-theme-test-ts-theme-with-screen-effect-render-card-with-fuji-theme-and-glow-1-snap.png new file mode 100644 index 0000000..6229acc Binary files /dev/null and b/packages/pixel-profile/test/__image_snapshots__/theme-test-ts-packages-pixel-profile-test-theme-test-ts-theme-with-screen-effect-render-card-with-fuji-theme-and-glow-1-snap.png differ diff --git a/packages/pixel-profile/test/__image_snapshots__/theme-test-ts-packages-pixel-profile-test-theme-test-ts-theme-with-screen-effect-render-card-with-journey-theme-and-dithering-1-snap.png b/packages/pixel-profile/test/__image_snapshots__/theme-test-ts-packages-pixel-profile-test-theme-test-ts-theme-with-screen-effect-render-card-with-journey-theme-and-dithering-1-snap.png deleted file mode 100644 index f0e81b7..0000000 Binary files a/packages/pixel-profile/test/__image_snapshots__/theme-test-ts-packages-pixel-profile-test-theme-test-ts-theme-with-screen-effect-render-card-with-journey-theme-and-dithering-1-snap.png and /dev/null differ diff --git a/packages/pixel-profile/test/__image_snapshots__/theme-test-ts-packages-pixel-profile-test-theme-test-ts-theme-with-screen-effect-render-card-with-journey-theme-and-glow-1-snap.png b/packages/pixel-profile/test/__image_snapshots__/theme-test-ts-packages-pixel-profile-test-theme-test-ts-theme-with-screen-effect-render-card-with-journey-theme-and-glow-1-snap.png new file mode 100644 index 0000000..3d0d24c Binary files /dev/null and b/packages/pixel-profile/test/__image_snapshots__/theme-test-ts-packages-pixel-profile-test-theme-test-ts-theme-with-screen-effect-render-card-with-journey-theme-and-glow-1-snap.png differ diff --git a/packages/pixel-profile/test/__image_snapshots__/theme-test-ts-packages-pixel-profile-test-theme-test-ts-theme-with-screen-effect-render-card-with-road-trip-theme-and-glow-1-snap.png b/packages/pixel-profile/test/__image_snapshots__/theme-test-ts-packages-pixel-profile-test-theme-test-ts-theme-with-screen-effect-render-card-with-road-trip-theme-and-glow-1-snap.png new file mode 100644 index 0000000..365eba6 Binary files /dev/null and b/packages/pixel-profile/test/__image_snapshots__/theme-test-ts-packages-pixel-profile-test-theme-test-ts-theme-with-screen-effect-render-card-with-road-trip-theme-and-glow-1-snap.png differ diff --git a/packages/pixel-profile/test/theme.test.ts b/packages/pixel-profile/test/theme.test.ts index 59e83ef..67b39a9 100644 --- a/packages/pixel-profile/test/theme.test.ts +++ b/packages/pixel-profile/test/theme.test.ts @@ -104,6 +104,17 @@ describe('Theme with screen effect', () => { expect(png).toMatchImageSnapshot() }) + it( + 'Render card with blue_chill theme and glow', + { + timeout: 10000 + }, + async () => { + const png = await renderStats(stats, { theme: 'blue_chill', isFastMode: false, screenEffect: true }) + expect(png).toMatchImageSnapshot() + } + ) + it('Render card with rainbow theme', async () => { const png = await renderStats( { ...stats, avatarUrl: KITTEN_AVATAR }, @@ -130,13 +141,19 @@ describe('Theme with screen effect', () => { expect(png).toMatchImageSnapshot() }) - it('Render card with journey theme and dithering', async () => { - const png = await renderStats( - { ...stats, avatarUrl: DARK_GREEN_AVATAR }, - { theme: 'journey', pixelateAvatar: false, dithering: true, screenEffect: true } - ) - expect(png).toMatchImageSnapshot() - }) + it( + 'Render card with journey theme and glow', + { + timeout: 10000 + }, + async () => { + const png = await renderStats( + { ...stats, avatarUrl: DARK_GREEN_AVATAR }, + { theme: 'journey', pixelateAvatar: false, isFastMode: false, screenEffect: true } + ) + expect(png).toMatchImageSnapshot() + } + ) it('Render card with fuji theme', async () => { const png = await renderStats( @@ -146,13 +163,19 @@ describe('Theme with screen effect', () => { expect(png).toMatchImageSnapshot() }) - it('Render card with fuji theme and dithering', async () => { - const png = await renderStats( - { ...stats, avatarUrl: LUCI_AVATAR }, - { theme: 'fuji', pixelateAvatar: false, dithering: true, screenEffect: true } - ) - expect(png).toMatchImageSnapshot() - }) + it( + 'Render card with fuji theme and glow', + { + timeout: 10000 + }, + async () => { + const png = await renderStats( + { ...stats, avatarUrl: LUCI_AVATAR }, + { theme: 'fuji', pixelateAvatar: false, isFastMode: false, screenEffect: true } + ) + expect(png).toMatchImageSnapshot() + } + ) it('Render card with road trip theme', async () => { const png = await renderStats( @@ -161,4 +184,18 @@ describe('Theme with screen effect', () => { ) expect(png).toMatchImageSnapshot() }) + + it( + 'Render card with road trip theme and glow', + { + timeout: 10000 + }, + async () => { + const png = await renderStats( + { ...stats, avatarUrl: PIXEL_DOG_AVATAR }, + { theme: 'road_trip', pixelateAvatar: false, isFastMode: false, screenEffect: true } + ) + expect(png).toMatchImageSnapshot() + } + ) })