When testing react-native with jest, the require picture will report an error

in our rn project, the picture is saved like this:
logo@1x.png,
logo@2x.png,
logo@3x.png
is quoted like this:
require (". / logo.png");
however, because the string @ 1x is omitted, jest will report an error because it can not find the file path, how to solve this situation?

May.20,2022
Menu