diff --git a/test/integration/next-image-new/app-dir/test/index.test.ts b/test/integration/next-image-new/app-dir/test/index.test.ts index 170c7a1576063..89f6837a0f1f9 100644 --- a/test/integration/next-image-new/app-dir/test/index.test.ts +++ b/test/integration/next-image-new/app-dir/test/index.test.ts @@ -362,7 +362,7 @@ function runTests(mode) { .map((log) => log.message) .join('\n') expect(warnings).toMatch( - /Image with src "\/test\.jpg" is using deprecated "onLoadingComplete" property. Please use the "onLoad" property instead./gm + /Image with src "(.*)test(.*)jpg" is using deprecated "onLoadingComplete" property. Please use the "onLoad" property instead./gm ) })