-
Notifications
You must be signed in to change notification settings - Fork 32
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
How can test one file only ? #31
Comments
Sorry i have no time for this project for now. Please post the solution here if you find something ! |
@davidjor-hpan For a quick way to do this: https://webpack.js.org/guides/dependency-management/#require-context in contenta_vue_nuxt/test/unit/index.js Line 5 in b3224e8
test/unit and finds files that match the /\.spec$/ regular expression. I think you can change the regular expression to match a file you want to run.
Otherwise, Karma has some docs http://karma-runner.github.io/2.0/intro/configuration.html on running tests...not a lot of info that I can see, to be honest, but I also don't know how the Webpack config fits into running the tests. Please report back if that helps! I will start looking into the tests more as I try to complete some of these tickets. |
https://github.com/contentacms/contenta_vue_nuxt/blob/b3224e843c67d55c8a56c01140092a930ff4c5af/test/unit/index.js#L7
This is testing all files ! I want to test specific one file only , how can I do that ?
The text was updated successfully, but these errors were encountered: