diff --git a/Libraries/Image/__tests__/__snapshots__/assetRelativePathInSnapshot.js.snap b/Libraries/Image/__tests__/__snapshots__/assetRelativePathInSnapshot.js.snap index 3ce7e1922..e913d3b9f 100644 --- a/Libraries/Image/__tests__/__snapshots__/assetRelativePathInSnapshot.js.snap +++ b/Libraries/Image/__tests__/__snapshots__/assetRelativePathInSnapshot.js.snap @@ -5,14 +5,14 @@ exports[`renders assets based on relative path 1`] = ` diff --git a/jest/assetFileTransformer.js b/jest/assetFileTransformer.js index c533ec446..81bdee21e 100644 --- a/jest/assetFileTransformer.js +++ b/jest/assetFileTransformer.js @@ -20,7 +20,7 @@ module.exports = { // the Jest snapshot. process: (_, filename) => `module.exports = { - testUri: ${JSON.stringify(path.relative('.', filename))} + testUri: ${JSON.stringify(path.relative(__dirname, filename))} };`, getCacheKey: createCacheKeyFunction([__filename]), };