/test-training

单元测试demo

Primary LanguageJavaScript

test-training

Step 1

$ git clone https://github.com/MrSeaWave/test-training.git

Step 2

$ yarn

Step 3

所有文件测试

$ npm run test

单独sum.js文件测试

$ npm run testSum

注意

  • 如果出现下面提示,请移除__snapshots__文件夹
    Snapshot Summary
     › 1 snapshot obsolete from 1 test suite. To remove it, run `npm test -- -u`.
       ↳ tests/Components/LinkAct.test.js
           • Link Act 方法改变class数据 2

参考