react-component-webpack-npm-boilerplate
Version:
standalone react component package boilerplate with front-end mocha test
22 lines (19 loc) • 504 B
HTML
<html>
<head>
<meta charset="utf-8">
<title>Mocha Tests</title>
<link href="node_modules/mocha/mocha.css" rel="stylesheet" />
</head>
<body>
<div id="mocha"></div>
<script src="node_modules/chai/chai.js"></script>
<script src="node_modules/mocha/mocha.js"></script>
<script>mocha.setup('bdd')</script>
<script src="test.bundle.js"></script>
<script>
mocha.checkLeaks();
mocha.globals(['jQuery']);
mocha.run();
</script>
</body>
</html>