Skip to content

Commit 9c737cc

Browse files
authored
fix: wrong URL used to bundle tests (#20)
The behavior of double slashes (//) changed in some version of React Native or Metro. What used to work before is now causing the bundling process to fail. This pull request ensures that there is only one slash present in the URL.
1 parent f58df9e commit 9c737cc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/runtime/src/bundler/bundle.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ const getModuleUrl = (fileName: string): string => {
88
const urlSearchParams = new URLSearchParams({
99
modulesOnly: 'true',
1010
platform: Platform.OS,
11-
'resolver.isHarness': 'true',
1211
});
1312

14-
return `${devServerUrl}/${bundleName}?${urlSearchParams.toString()}`;
13+
return `${devServerUrl}${bundleName}?${urlSearchParams.toString()}`;
1514
};
1615

1716
export const fetchModule = async (fileName: string): Promise<string> => {

0 commit comments

Comments
 (0)