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

Run mocha only if only vanilla js tests #21

Open
peripateticus opened this issue Jan 15, 2020 · 0 comments
Open

Run mocha only if only vanilla js tests #21

peripateticus opened this issue Jan 15, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@peripateticus
Copy link
Member

Currently all tests require webpack build and jsdom. We'd like to run mocha only if you are only testing vanilla js.

Here are example test scripts of the capability we want to capture:

"test-coverage": "vunit --coverage --spec=\"./src/test/js/**/*.?(vue-)spec.js\"",
    "test-js": "cross-env BABEL_ENV=test mocha --require @babel/register --recursive src/test/js/**/*.spec.js",
    "test-js-coverage": "cross-env BABEL_ENV=test nyc mocha --require @babel/register --recursive src/test/js/**/*.spec.js",
    "test-js-coverage-report": "cross-env NODE_ENV=test nyc --reporter=lcov mocha --recursive src/test/js/**/*.spec.js",
    "test-js-watch": "cross-env BABEL_ENV=test mocha --require @babel/register --watch --recursive src/test/js/**/*.spec.js",
@peripateticus peripateticus added the enhancement New feature or request label Jan 15, 2020
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

1 participant