Skip to content

Commit 30af7e4

Browse files
author
designcise
committed
docs: added section about tests
1 parent cf9d896 commit 30af7e4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,22 @@ The `useTheme()` hook does not take any params; it returns the following:
168168
| `setTheme` | Function | Setter to set new theme. |
169169
| `toggleTheme` | Function | Toggles the theme between `light` and `dark`. |
170170
171+
## Testing
172+
173+
Tests are written using React Testing Library and Jest. You can run the tests using the following command:
174+
175+
### npm
176+
177+
```shell
178+
$ npm test
179+
```
180+
181+
### yarn
182+
183+
```shell
184+
$ yarn test
185+
```
186+
171187
## Issues
172188
173189
https://github.com/designcise/next-theme-toggle/issues

0 commit comments

Comments
 (0)