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

fixed absolute path config bug and improved workspace related specs #82

Merged
merged 3 commits into from
May 16, 2019

Conversation

thescientist13
Copy link
Member

@thescientist13 thescientist13 commented May 16, 2019

Related Issue

resolves #81

Summary of Changes

Looks like our existing custom workspace wasn't robust enough, and failed to test that if there was actually any user content in the directory, it would actually get built.

  1. Use user's workspace if provided as absolute path
  2. Added an error handling spec for non existent directory
  3. Improve custom workspace test to have content and verify it actually gets used
  4. Was able to bump branches configuration

@thescientist13 thescientist13 added bug Something isn't working P0 Critical issue that should get addressed ASAP labels May 16, 2019
@thescientist13 thescientist13 requested a review from hutchgrant May 16, 2019 00:37
@@ -17,7 +17,7 @@ module.exports = {
checkCoverage: true,

statements: 85,
branches: 65,
branches: 70,
Copy link
Member Author

@thescientist13 thescientist13 May 16, 2019

Choose a reason for hiding this comment

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

🏆 😎

// use the users provided path
customConfig.workspace = workspace;
}

if (!fs.existsSync(workspace)) {
Copy link
Member Author

Choose a reason for hiding this comment

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

thinking about changing this line from this

if (!fs.existsSync(workspace)) {

to this

if (!fs.existsSync(customConfig.workspace)) {

this will make just help ensure we're validating against our own internal logic.

@hutchgrant
Copy link
Member

hutchgrant commented May 16, 2019

#53 (comment)

// 1) is it an absolute path that exists? let's just use it
// 2) else if it exists in process.cwd(), then use that
// 3) else, give up and error out to the user

edit: nvm I see you left the ability to use relative still.

@thescientist13 thescientist13 merged commit 3cd967a into master May 16, 2019
@thescientist13 thescientist13 deleted the bug/issue-81-absolute-path-workspace-config branch May 16, 2019 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P0 Critical issue that should get addressed ASAP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

passing absolute path for workspace config not reading from provided directory
2 participants