diff --git a/index.test.js b/index.test.js index 9f801db..54a451b 100644 --- a/index.test.js +++ b/index.test.js @@ -36,7 +36,11 @@ const createTestRepo = (inputs) => { return { clean: () => execute(os.tmpdir(), `rm -rf ${repoDirectory}`), makeCommit: (msg, path) => { - run(`touch ${path !== undefined ? path.trim('/') + '/' : ''}test${i++}`); + if (process.platform === "win32") { + run(`fsutil file createnew ${path !== undefined ? path.trim('/') + '/' : ''}test${i++} 0`); + } else { + run(`touch ${path !== undefined ? path.trim('/') + '/' : ''}test${i++}`); + } run(`git add --all`); run(`git commit -m "${msg}"`); },