If you want to create a hook named use-test
.
git clone https://github.com/ahooksjs/useTable.git
git checkout -b feat/use-test
npm run add:pkg use-test
The directory is
├── __tests__
│ └── index.test.tsx
├── demo
│ └── default.tsx # Demo
├── index.zh-CN.md # Document
├── package.json
├── src
│ ├── index.ts
│ └── type.ts # Interface
└── tsconfig.build.json
## Dev
```sh
npm run dev
- Run All Test
npm run test
- Run Single Test
npm run test -t <name-of-spec>