Skip to content

Conversation

scalvert
Copy link
Owner

@scalvert scalvert commented Mar 17, 2022

This PR changes a few things:

  • Adds a new createProject callback in the options passed into createBinTester. This allows us to use either a constuctor, or some other form of factory function to create our Project instance
  • Removes the projectConstructor option from the bin tester options. Users should use createProject to provide custom project implementations
  • Changes the signature of runBin so that it takes rest args for the varargs passed to the bin, while still supporting the ability to use execaOptions on the end
  • Renames .eslintrc.js and .prettierrc.js to .eslintrc.cjs and .prettierrc.cjs respectively
  • Fixes BinTesterProject to correctly deep merge in writeJSON
  • Cleans up the types so that they're more flexible for the new API for runBin
  • Adds more tests

@scalvert scalvert merged commit 3f35b77 into main Mar 17, 2022
@scalvert scalvert deleted the add-create-project-option branch March 17, 2022 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant