Skip to content

Commit

Permalink
chore: fix flaky esm_module_deno_test test (denoland#16419)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored Oct 25, 2022
1 parent 9835b09 commit 3f22f91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cli/tests/testdata/npm/esm/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import chalk from "npm:chalk@5";

console.log(chalk.green("chalk esm loads"));
if (import.meta.main) {
console.log(chalk.green("chalk esm loads"));
}

export function test(value) {
return chalk.red(value);
Expand Down
1 change: 0 additions & 1 deletion cli/tests/testdata/npm/esm/test.out
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Download http://localhost:4545/npm/registry/chalk
Download http://localhost:4545/npm/registry/chalk/chalk-5.0.1.tgz
Check [WILDCARD]/std/node/module_all.ts
chalk esm loads
running 1 test from ./npm/esm/test.js
test ...
------- output -------
Expand Down

0 comments on commit 3f22f91

Please sign in to comment.