ethers.js/misc/test-browser/index.html

27 lines
626 B
HTML
Raw Normal View History

2023-05-06 09:14:36 +03:00
<html>
<body>
<h1>Hello World!!</h1>
<div>Please check the console for test output...</div>
<div id="mocha"></div>
<script type="module">
// Must import Mocha first; completely
await import("./static/mocha.js");
// Load our custom Reporter (after importing mocha)
import { MyReporter } from "/static/reporter.js";
// Setup the global environment and set out reporter
mocha.setup({ ui: 'bdd' });
mocha.reporter(MyReporter);
// Import the tests
await import("./tests/index.js");
// Run Mocha!
mocha.run();
</script>
</body>
</html>