2024-04-01 10:50:37 -04:00
|
|
|
/** @implements TapRenderer */
|
|
|
|
class FakeRenderer {
|
|
|
|
output = "nothing yet";
|
2024-04-01 12:31:00 -04:00
|
|
|
commentOutput = "";
|
2024-04-01 10:50:37 -04:00
|
|
|
|
|
|
|
out(text) {
|
|
|
|
this.output = text;
|
|
|
|
}
|
|
|
|
|
2024-04-01 12:31:00 -04:00
|
|
|
comment(lines) {
|
2024-04-01 10:50:37 -04:00
|
|
|
for (var line of lines) {
|
2024-04-01 12:31:00 -04:00
|
|
|
this.commentOutput += line;
|
2024-04-01 10:50:37 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-03 17:10:03 -04:00
|
|
|
import('./suite.mjs').then(async m => {
|
|
|
|
const pair = m.Tap.Node();
|
|
|
|
m.runTest(pair.Tap, "Tap dogfood test suite", m.tapSuite);
|
|
|
|
// Note output requires some async machinery because it uses some dynamic inputs.
|
|
|
|
await pair.Renderer.renderAll();
|
|
|
|
process.exit(pair.Tap.isPass() ? 0 : 1);
|
2024-03-31 19:35:02 -04:00
|
|
|
});
|