summaryrefslogtreecommitdiff
path: root/cli/tests/top_level_await_loop.js
blob: 384f8d0eddbb2a34c07e35b32c8a8dc6821088d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const importsDir = Deno.readDirSync(Deno.realPathSync("./tla2"));

const resolvedPaths = [];

for (const { name } of importsDir) {
  const filePath = Deno.realPathSync(`./tla2/${name}`);
  resolvedPaths.push(filePath);
}

resolvedPaths.sort();

for (const filePath of resolvedPaths) {
  console.log("loading", filePath);
  const mod = await import(`file://${filePath}`);
  console.log("loaded", mod);
}

console.log("all loaded");