open folder in VSCode.
git init -b main
git add . && git commit -m "initial commit"
from VS code version control menu, select publish repostiory
npm i jest --save-dev
touch .gitignore
add node_modules/
to .gitignore file
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"scripts": {
"test": "jest"
},
files ending with spec or test . ts or js (x)
testMatch: **/__tests__/**/*.[jt]s?(x), **/?(*.)+(spec|test).[tj]s?(x) - 0 matches
testPathIgnorePatterns: /node_modules/ - 6 matches
testRegex: - 0 matches