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

Fix example tests #303

Merged
merged 2 commits into from
Nov 19, 2017
Merged

Fix example tests #303

merged 2 commits into from
Nov 19, 2017

Conversation

jasonkarns
Copy link
Member

@jasonkarns jasonkarns commented Nov 19, 2017

fixes #302

package.json for each of node, babel and webpack examples now uses relative path as version spec. yarn handles this by simply not installing testdouble into node_modules so it gets resolved by ancestor hierarchy. npm5 handles this by symlinking from node_modules to ancestor directory.

In both cases, testdouble dep is resolved as the live, in-repo module.

package.json for each of node, babel and webpack examples now uses relative path as version spec. yarn handles this by simply not installing testdouble into node_modules so it gets resolved by ancestor hierarchy. npm5 handles this by symlinking from node_modules to ancestor directory.

In both cases, testdouble dep is resolved as the live, in-repo module.
There's no need to cd back to original directory because the package
script is executed within a subshell. Once the script completes, final
working directory is still unchanged
@jasonkarns
Copy link
Member Author

Looks like the lineman example is using a bundled build of testdouble? Unsure how that gets updated to point to latest builds...

@searls
Copy link
Member

searls commented Nov 19, 2017

IIRC, the lineman build depends on running browserify compilation and then symlinking to dist/testdouble.js

@jasonkarns
Copy link
Member Author

👍 didn't catch the symlink earlier. In that case, this PR should be good to go I think

@searls searls merged commit ec416a0 into master Nov 19, 2017
@searls
Copy link
Member

searls commented Nov 19, 2017

Thanks Jason!

@searls searls deleted the fix-examples branch November 19, 2017 17:30
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.

example tests don't work on latest master
2 participants