📜  react-scripts 测试单个文件 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:35.729000             🧑  作者: Mango

代码示例1
npm run test -- -t 'test-name'
Where test-name is the value used in the describe function in jest -

describe('test-name', () => {
  it('does something', () => { ... });
});