question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

environment: ubuntu 14.04 mocha ^3.1.2 mochawesome ^1.4.0

dir structure:
    test
        add.js
        package.json
        test
              mocha.opts
              test.spec.js

just test function add(a,b){return a+b;} mocha.opts:

    --reporter mochawesome
    --timeout 5000

run: mocha

It’s ok to run, but when open the generated html, it does not show as ecpected. Uncaught SyntaxError: Unexpected end of input vendor.js:5

I compare the vendor.js under dist and mochawesome-reports vendor.js under dist 144k vebdor.js under mochawesome-reports 64k

the same with css file.

So what’s the problem?can any one help,thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rkdavidsoncommented, Jul 16, 2018

@adamgruber Hey sorry for ambiguity — there is no problem. Was just commenting (perhaps unnecessarily 🙂) that this fix still worked, and adding context in case people stumble here via google like I did.

1reaction
adamgrubercommented, Nov 17, 2016

Try adding --no-exit true in mocha.opts. It could be that your tests are finishing before the files are fully copied. This should force mocha to not exit until the reporter is done.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to create unformatted HTML text - Computer Hope
You can insert unformatted text, text with spaces, or other unique appearance changes using the <pre></pre> tags.
Read more >
Step 1: Unformatted HTML/XML Source - Polystyle
Step 1: Unformatted HTML/XML Source In addition to formatting HTML/XML code, Polystyle can change the case of HTML/XML tags and argument names.
Read more >
HTML pre tag - W3Schools
The <pre> tag defines preformatted text. Text in a <pre> element is displayed in a fixed-width font, and the text preserves both spaces...
Read more >
views-view-unformatted.html.twig | Drupal 8.2.x - Drupal API
Default theme implementation to display a view of unformatted rows. Available variables: ... rows: A list of the view's row items. attributes: The...
Read more >
What does VS Code's setting html.format.unformatted do?
Can someone please explain to me what the html.format.unformatted setting does and how it differs from the html.format.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found