---
title: The lifecycle of the status of your files (Extended)
---
stateDiagram-v2
workingtree_untracked : Working Tree<br>Untracked
workingtree_deleted : Working Tree<br>Deleted
index_new_file : Index<br>New file
workingtree_modified : Working Tree<br>Modified
index_modified : Index<br>Modified
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| pushd "%~dp0" | |
| set VOLTA_SHIM_EXE=volta-shim.exe | |
| set SHIM_BINARY=node,npm,npx,pnpm,yarn,yarnpkg | |
| set SHIM_SCRIPT=npm,npx,pnpm,yarn,yarnpkg | |
| if not exist %VOLTA_SHIM_EXE% ( | |
| echo ERROR %VOLTA_SHIM_EXE% not found! | |
| echo. | |
| pause | |
| exit /b 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class TestResult: | |
| def __init__(self): | |
| self.runCount = 0 | |
| self.errorCount = 0 | |
| def testStarted(self): | |
| self.runCount = self.runCount + 1 | |
| def testFailed(self): | |
| self.errorCount = self.errorCount + 1 | |
| def summary(self): | |
| return "%d run, %d failed" % (self.runCount, self.errorCount) |