(path, env = process.env)
| 661 | }; |
| 662 | |
| 663 | const tryToPerformTestCommit = (path, env = process.env) => { |
| 664 | try { |
| 665 | execSync( |
| 666 | 'git add . && git commit --allow-empty -m "Test commit" && git commit --allow-empty -am "Change commit msg"', |
| 667 | { cwd: path, env: env, } |
| 668 | ); |
| 669 | return true; |
| 670 | } catch (e) { |
| 671 | return false; |
| 672 | } |
| 673 | }; |
| 674 | |
| 675 | const expectCommitToSucceed = (path) => { |
| 676 | expect(tryToPerformTestCommit(path)).toBe(true); |
no outgoing calls
no test coverage detected
searching dependent graphs…