Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can support TypeScript like mocha -r param? #38

Open
Aqours opened this issue Dec 21, 2018 · 0 comments
Open

Can support TypeScript like mocha -r param? #38

Aqours opened this issue Dec 21, 2018 · 0 comments

Comments

@Aqours
Copy link

Aqours commented Dec 21, 2018

Mocha

$ mocha -r ts-node/register -r ignore-styles \"test/**/*.spec.*\""

mocha-headless-chrome (expected)

$ mocha-headless-chrome -r ts-node/register -r ignore-styles -f test.html
<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Mocha Tests</title>
        <meta charset="utf-8">
        <link rel="stylesheet" href="../node_modules/mocha/mocha.css">
        <script src="../node_modules/mocha/mocha.js"></script>
        <script src="../node_modules/chai/chai.js"></script>
    </head>
    <body>
        <div id="mocha"></div>
        <script>mocha.setup('bdd');</script>
        <!-- add typescript directly here -->
        <script src="example.ts"></script>
        <script>mocha.run();</script>
    </body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant