Skip to content

Commit

Permalink
Try to fix Windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Sep 26, 2021
1 parent c1cb94a commit a3f4bc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/function/index.js
Expand Up @@ -48,7 +48,7 @@ function runCodeSplitTest(codeMap, entryId, configContext) {
return { exports };
}

runTestSuiteWithSamples('function', path.resolve(__dirname, 'samples'), (dir, config) => {
runTestSuiteWithSamples('function', path.join(__dirname, 'samples'), (dir, config) => {
(config.skip ? it.skip : config.solo ? it.only : it)(
path.basename(dir) + ': ' + config.description,
() => {
Expand All @@ -59,7 +59,7 @@ runTestSuiteWithSamples('function', path.resolve(__dirname, 'samples'), (dir, co

return rollup
.rollup({
input: dir + '/main.js',
input: path.join(dir, 'main.js'),
onwarn: warning => warnings.push(warning),
strictDeprecations: true,
...(config.options || {})
Expand Down
4 changes: 2 additions & 2 deletions test/utils.js
Expand Up @@ -123,7 +123,7 @@ function runSamples(samplesDir, runTest, onTeardown) {
.readdirSync(samplesDir)
.filter(name => name[0] !== '.')
.sort()
.forEach(fileName => runTestsInDir(samplesDir + '/' + fileName, runTest));
.forEach(fileName => runTestsInDir(path.join(samplesDir, fileName), runTest));
}

function runTestsInDir(dir, runTest) {
Expand All @@ -138,7 +138,7 @@ function runTestsInDir(dir, runTest) {
fileNames
.filter(name => name[0] !== '.')
.sort()
.forEach(fileName => runTestsInDir(dir + '/' + fileName, runTest));
.forEach(fileName => runTestsInDir(path.join(dir, fileName), runTest));
});
}
}
Expand Down

0 comments on commit a3f4bc0

Please sign in to comment.