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

[Feature] Implement the require interface #13

Open
sebastienfilion opened this issue Apr 2, 2019 · 3 comments
Open

[Feature] Implement the require interface #13

sebastienfilion opened this issue Apr 2, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@sebastienfilion
Copy link

Hey there @Vlasenko first of all, thanks for this fork, works great.
Would you consider implementing the require interface? https://mochajs.org/#require
It seems like only bdd, tdd, qunit and exports were implemented.

@larixer larixer added the enhancement New feature or request label Apr 2, 2019
@larixer
Copy link
Member

larixer commented Apr 3, 2019

@sebastienfilion Have you tried to run it with mochapack -u require ... ?

@sebastienfilion
Copy link
Author

sebastienfilion commented Apr 4, 2019

Yes I have and I get an error saying that require is not a module;
Is it an issue with my Webpack configuration?
I just never knew that feature to be an external module.

Error: Cannot find module 'PATH_TO_PROJECT/require'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
    at Function._resolveFilename (/usr/local/lib/node_modules/mochapack/lib/util/registerRequireHook.js:44:34)
    at Function.resolve (internal/modules/cjs/helpers.js:30:19)

@Jack-Barry
Copy link

@sebastienfilion Can you give this a shot using 2.0.0? If it works and you don't run into an issue similar to #65 then we can resolve this issue.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants