-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: pass filename and tree path to detective #111
base: main
Are you sure you want to change the base?
Conversation
72b1ac1
to
6e674f1
Compare
test/index.js
Outdated
@@ -231,7 +231,7 @@ describe('node-precinct', () => { | |||
amd: config.amd | |||
}); | |||
|
|||
assert.deepEqual(stub.args[0][1], config.amd); | |||
assert.deepEqual(stub.args[0][1].skipLazyLoaded, config.amd.skipLazyLoaded); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modifying these two tests to assert only on the specific property they're setting up, rather than the whole arguments objects, which now include more data irrelevant to this test, including filename
.
@AndersDJohnson please rebase and add a separate test. |
435b18d
to
a374aa9
Compare
@AndersDJohnson I rebased your branch; now we only need the tests fixed and new ones added. |
Supports dependents/node-dependency-tree#147.
filename
is existing, buttreePath
will only come with dependents/node-dependency-tree#149.See example use case in dependents/detective-typescript#48.