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

test: expect 200 status #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

henriklundgren
Copy link

It fails on Jest unfortunately,
the reason is jestjs/jest#2150.
I dont know if the best course of action is to wait and see if Jest updates,
or if other test framework also fails then maybe write a different implementation.

@palmerabollo
Copy link
Owner

@henriklundgren, thanks for your first contribution. The issue has something to do with the way we look for the main package.json file.

Do you know if that part could be implemented in a different way?

@henriklundgren
Copy link
Author

henriklundgren commented Jun 30, 2017

I guess just use https://github.com/sindresorhus/pkg-dir.
But I dont have time to investigate the effectiveness of the change, i.e. all the use cases.

Edit:
I was too quick there wasnt I, but the idea still holds.
I will update and get it hopefully right.

if (error) {
diskInfo = {msg: 'Error fetching disk info', error: error};
}
pkgDir(path.resolve(__dirname, '../')).then(function(x) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still not sure about whether this works when you use express-ping as a module in a bigger project that contains its own package.json. Which package.json file would this code find? The one that belongs to express-ping or the one that belongs to the bigger project?

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.

2 participants