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

Webpack compiles but mocha isn't executed #260

Closed
fabiante opened this issue May 24, 2018 · 4 comments
Closed

Webpack compiles but mocha isn't executed #260

fabiante opened this issue May 24, 2018 · 4 comments

Comments

@fabiante
Copy link

Hi,

I have a very simple webpack project. When trying to user mocha-webpack, it does compile bot mocha isn't executed:

image

After that there is no mocha execution, even though my test folder contains a simple test:

import { something } from "../src/js/data";
import { assert } from "chai";

it("Assert", () => {
    assert.equal(something, 2); // This should throw
})

it("Test", () => {
    throw "NO";
})

But nothing shows on my CLI expect for the message in the screenshot.
I don't know if mocha just isn't called or if somehow mocha-webpack doesn't find my test.

This is the important part of my folder structure:

image

Sorry if this is a usage error but I couldn't find any solutions.

@zetaraku
Copy link

I encountered the exactly same problem today.
As mentioned in #209, the problem was fixed recently.
npm install mocha-webpack@next should solve your problem.

@fabiante
Copy link
Author

Well that was easy! Thank you very much!!

@Fohlen
Copy link

Fohlen commented Jul 1, 2018

I can report that mocha@next works indeed 👍

@elijah-ezaga
Copy link

I had the same issue yesterday and today. mocha@next solved it

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

4 participants