The default interactive shell is now zsh. To update your account to use zsh, please run `chsh -s /bin/zsh`. For more details, please visit https://support.apple.com/kb/HT208050. Github-Id-VampireAchao:streampark achao$ cd ~/IdeaProjects/simple-jest/ Github-Id-VampireAchao:simple-jest achao$ npm install --save-dev jest npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
added 277 packages in 42s
32 packages are looking for funding run `npm fund` for details
新建sum.js
1 2 3 4
functionsum(a, b) { return a + b; } module.exports = sum;
32 packages are looking for funding run `npm fund` for details
found 0 vulnerabilities Github-Id-VampireAchao:simple-jest achao$ npm install --save-dev ts-jest
added 12 packages, and audited 299 packages in 7s
32 packages are looking for funding run `npm fund` for details
found 0 vulnerabilities Github-Id-VampireAchao:simple-jest achao$ npx ts-jest config:init
Jest configuration written to "/Users/achao/IdeaProjects/simple-jest/jest.config.js". Github-Id-VampireAchao:simple-jest achao$ npm install --save-dev @jest/globals
up to date, audited 299 packages in 1s
32 packages are looking for funding run `npm fund` for details
Test Suites: 1 failed, 1 total Tests: 1 failed, 1 passed, 2 total Snapshots: 0 total Time: 2.172 s Ran all test suites. Error: Process completed with exit code 1.