diff --git a/test/common/test.js b/test/common/test.js index c46751f..b8b90fe 100644 --- a/test/common/test.js +++ b/test/common/test.js @@ -107,7 +107,7 @@ function testExport({ basepath = '' }) { 'svelte-logo-192.png', 'svelte-logo-512.png', ].map(file => { - return basepath ? path.join(basepath.replace(/^\//, ''), file) : file; + return basepath ? `${basepath.replace(/^[\/\\]/, '')}/${file}` : file; }); // Client scripts that should show up in the extraction directory.