mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2025-12-27 13:08:17 +00:00
Split commands so that tests can run on Windows
This commit is contained in:
parent
596215aec5
commit
800ea493f7
1 changed files with 2 additions and 1 deletions
|
|
@ -14,7 +14,8 @@ const defaultInputs = {
|
|||
// Creates a randomly named git repository and returns a function to execute commands in it
|
||||
const createTestRepo = (inputs) => {
|
||||
const repoDirectory = `/tmp/test${Math.random().toString(36).substring(2, 15)}`;
|
||||
cp.execSync(`mkdir ${repoDirectory} && git init ${repoDirectory}`);
|
||||
cp.execSync(`mkdir ${repoDirectory}`);
|
||||
cp.execSync(`git init ${repoDirectory}`);
|
||||
|
||||
const run = (command, extraInputs) => {
|
||||
const allInputs = Object.assign({ ...defaultInputs }, inputs, extraInputs);
|
||||
|
|
|
|||
Loading…
Reference in a new issue