Specify runtime exports (#10853)

This commit is contained in:
Huáng Jùnliàng
2020-10-14 14:06:56 -04:00
committed by GitHub
parent 21d7ee2610
commit 4e66b8eb6b
20 changed files with 1138 additions and 52 deletions

15
test/esm/test-runner.mjs Normal file
View File

@@ -0,0 +1,15 @@
import chalk from "chalk";
export default async function testRunner({ title, testcases }) {
console.log(title);
const indent = " ";
for (const [subtitle, testcase] of testcases) {
try {
await testcase();
console.log(chalk.green(indent + "✓ " + subtitle));
} catch (e) {
console.log(chalk.red(indent + "✗ " + subtitle));
console.error(e);
}
}
}