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

build: fix select-dist to preserve args #620

Merged
merged 1 commit into from
Oct 6, 2017
Merged

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Oct 6, 2017

Fix "bin/select-dist.js" used to run Mocha tests to quote all arguments in order to preserve glob patterns like test/**/*.js and pass them as-is to Mocha, instead of letting the Unix shell incorrectly expand "**" as "*".

Before this change (but after 3698d76), we were running only tests that are exactly two-levels deep in the test directory tree, e.g. test/acceptance/{name}.js. With this change in place, we are running tests nested more deeply again, e.g. test/unit/router/metadata/param-body.test.js

Thank you @raymondfeng and @kjdelisle for spotting the problem!

Fix "bin/select-dist.js" used to run Mocha tests to quote all arguments
in order to preserve glob patterns like "test/**/*.js" and pass them
as-is to Mocha, instead of letting the Unix shell incorrectly
expand "**" as "*".
@bajtos bajtos added this to the Sprint 46 milestone Oct 6, 2017
@bajtos bajtos self-assigned this Oct 6, 2017
@bajtos bajtos added the review label Oct 6, 2017
@bajtos
Copy link
Member Author

bajtos commented Oct 6, 2017

@virkt25 Travis CI failed in commit-linting step with the following error. Do you happen to know what can be causing it? I am landing this pull request as the linter error seems unrelated to my changes.

/home/travis/build/strongloop/loopback-next/node_modules/@commitlint/cli/cli.js:126
		throw err;
		^
TypeError: Cannot read property 'map' of undefined
    at getPackages (/home/travis/build/strongloop/loopback-next/node_modules/@commitlint/config-lerna-scopes/index.js:13:3)
    at scope-enum (/home/travis/build/strongloop/loopback-next/node_modules/@commitlint/config-lerna-scopes/index.js:6:37)
    at /home/travis/build/strongloop/loopback-next/node_modules/@commitlint/core/lib/library/execute-rule.js:23:28
    at Promise (<anonymous>)
    at /home/travis/build/strongloop/loopback-next/node_modules/@commitlint/core/lib/library/execute-rule.js:21:26
    at Promise (<anonymous>)
    at exports.default (/home/travis/build/strongloop/loopback-next/node_modules/@commitlint/core/lib/library/execute-rule.js:14:9)
    at /home/travis/build/strongloop/loopback-next/node_modules/@commitlint/core/lib/load.js:99:40
    at Array.map (<anonymous>)
    at /home/travis/build/strongloop/loopback-next/node_modules/@commitlint/core/lib/load.js:98:75

@bajtos bajtos merged commit 3c43861 into master Oct 6, 2017
@bajtos bajtos deleted the build/fix-test-runner branch October 6, 2017 13:51
@bajtos bajtos removed the review label Oct 6, 2017
@marionebl
Copy link

@bajtos This was related to https://github.com/marionebl/commitlint/issues/87. config-lerna-scopes tripped up on changes in lerna internal API.

@bajtos
Copy link
Member Author

bajtos commented Oct 16, 2017

@marionebl nice, thank you for fixing the issue and letting us know! ❤️

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

Successfully merging this pull request may close these issues.

3 participants