Skip to content

Commit

Permalink
fix bad outfile in test
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Jan 16, 2023
1 parent 5b8235f commit 60c0f9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/js-api-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -4009,6 +4009,7 @@ let serveTests = {

async serveOutfile({ esbuild, testDir }) {
const input = path.join(testDir, 'in.js')
const outfile = path.join(testDir, 'out.js')
await writeFileAsync(input, `console.log(123)`)

let onRequest;
Expand All @@ -4019,7 +4020,7 @@ let serveTests = {
const context = await esbuild.context({
entryPoints: [input],
format: 'esm',
outfile: 'out.js',
outfile,
});
try {
const result = await context.serve({
Expand Down

0 comments on commit 60c0f9d

Please sign in to comment.