diff --git a/packages/lqip-loader/src/__tests__/lqip.test.ts b/packages/lqip-loader/src/__tests__/lqip.test.ts index e97c8a5b26b46..068f382d693ea 100644 --- a/packages/lqip-loader/src/__tests__/lqip.test.ts +++ b/packages/lqip-loader/src/__tests__/lqip.test.ts @@ -33,7 +33,9 @@ describe('base64', () => { ] as [string, string][])( 'generates a valid base64 for %s', async (imgName, expectedBase64) => { - await expect(base64(imgName)).resolves.toContain(expectedBase64); + await expect(base64(resolveFixturePath(imgName))).resolves.toContain( + expectedBase64, + ); }, ); @@ -47,7 +49,9 @@ describe('base64', () => { ] as [string, RegExp][])( 'generates a valid base64 for %s (using regexp)', async (imgName, expectedBase64) => { - await expect(base64(imgName)).resolves.toMatch(expectedBase64); + await expect(base64(resolveFixturePath(imgName))).resolves.toMatch( + expectedBase64, + ); }, ); });