Skip to content

fails running test in node_modules #1136

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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions test/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,3 +400,10 @@ test('workers ensure test files load the same version of ava', t => {
t.end();
});
});

test('run test in node_modules', t => {
execCli([], {dirname: 'fixture/test-in-node-modules'}, err => {
t.ifError(err);
t.end();
});
});

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions test/fixture/test-in-node-modules/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "application-name",
"version": "0.0.1",
"ava": {
"files": [
"./node_modules/module-name/test.js"
]
}
}