Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves
Jest-based integration tests currently do not run on Windows hosts.
Note that the integration tests don't run from Ubuntu-on-Windows without significant extra configuration. This change makes the tests work from a CMD prompt and maybe Cygwin.
Proposed Changes
This PR includes a few different changes which, combined, allow the tests to run on Windows. scratchfoundation/scratch-storage#22 should be treated as a prerequisite.
Reason for Changes
See the description of each commit below for a more thorough explanation. The short version:
[\\\\/]in the Jest test path arguments seems to be the only way to get the path to behave the same on both Windows and non-Windows platforms.import 'chromedriver';, Jest / Selenium can't findchromedriver.exeon Windows. This might also help other platforms...?npm run buildout of the integration test script and into the overall test script. In addition, I've changed the names of the test scripts as suggested by @rschamp./cc @fsih