r-custom-hooks
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -7,11 +7,5 @@ import { renderHook } from '@testing-library/react'; | ||
expect(result.current).toBe('test'); | ||
rerender('ok') | ||
rerender('ok1') | ||
rerender('ok2') | ||
setTimeout(() => { | ||
expect(result.current).toBe('ok1'); | ||
}, 500); | ||
expect(result.current).toBe('test'); | ||
}); | ||
// Add more test cases as needed |
{ | ||
"name": "r-custom-hooks", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "predefined custom react hooks", | ||
@@ -12,4 +12,4 @@ "main": "dist/index.js", | ||
"compile": "npx tsc", | ||
"build": "npm run clean && npm run test && git stash && npm run compile && npm version patch && echo ___Compiled successfully___", | ||
"build-win": "npm run clean-win && npm run test && npm run compile && echo ___Compiled successfully___" | ||
"build": "npm run clean && npm run test && git stash && npm run compile && npm version patch && echo ___Compiled successfully___ && git push", | ||
"build-win": "npm run clean-win && npm run test && npm run compile && echo ___Compiled successfully___ && git push" | ||
}, | ||
@@ -16,0 +16,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4064
62