Skip to content

Commit

Permalink
escape backslashes in paths for windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Sep 11, 2020
1 parent 5e0dabf commit cc97004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/js-api-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ let buildTests = {
const input = path.join(testDir, 'in.js')
const dependency = path.join(testDir, 'dep.js')
const output = path.join(testDir, 'out.js')
await writeFileAsync(input, `import value from "${dependency}"; export default value`)
await writeFileAsync(input, `import value from ${JSON.stringify(dependency)}; export default value`)
await writeFileAsync(dependency, `export default 123`)
const value = await esbuild.build({ entryPoints: [input], bundle: true, outfile: output, format: 'cjs' })
assert.strictEqual(value.outputFiles, void 0)
Expand Down

0 comments on commit cc97004

Please sign in to comment.