Commit Graph
43 Commits
Author SHA1 Message Date
bendtherules b83bf9b5b5 Refactor traverseGenerator-basic test file
Change test titles and add comments
2019-08-02 13:34:30 +05:30
bendtherules 079ad43a77 Add testcase - traverse-basic with function component 2019-08-02 13:33:02 +05:30
bendtherules dce1f84ddc Add basic test for traverseGenerator 2019-08-02 01:01:19 +05:30
bendtherules 7938a4ab2c Allow customised order in traverseGenerator 2019-08-02 00:56:21 +05:30
bendtherules 3a7bf374bd Add basic traverseGenerator
Need to allow changing order
2019-08-02 00:12:21 +05:30
bendtherules 007aa2b86b Add testcases - nested search with findNodeByName 2019-07-31 00:47:22 +05:30
bendtherules c2077a5419 Add testcases - findNodeByComponentRef 2019-07-31 00:34:09 +05:30
bendtherules fc47961602 Rename findNodeByComponentInstance to findNodeByComponentRef 2019-07-31 00:33:55 +05:30
bendtherules 04a69af199 Add testcase - findNodeByComponent - similar to component name cases 2019-07-30 11:41:07 +05:30
bendtherules 8d14a710f7 Add testcase - findNodeByName for 5th level 2019-07-30 11:35:21 +05:30
bendtherules fb67b43d35 Refactor test - Reorder imports 2019-07-25 12:42:09 +05:30
bendtherules 6fb9efa44b Add more testcases for findNodeByName with class and fn components 2019-07-25 09:34:12 +05:30
bendtherules ae0e39ab80 Add getWrappedComponent util and consume in tests 2019-07-25 08:54:17 +05:30
bendtherules 0bf27b7016 package.json - Add command for running tests with chrome debugger 2019-07-25 01:12:46 +05:30
bendtherules 7e1d813811 Merge branch 'master' of https://github.com/bendtherules/react-fiber-traverse 2019-07-25 01:10:19 +05:30
bendtherules adbb9527c9 findNode - Disable console.debug statements 2019-07-25 01:08:36 +05:30
bendtherules 7b51c96a57 Add utils - Methods to check if a node corresponds to functional or class components 2019-07-24 02:28:13 +05:30
bendtherules 99d808c9b8 Rename utils methods like isHtmlLike to isNodeHtmlLike
Also renamed isNodeNotHtmlLike
2019-07-24 02:26:54 +05:30
bendtherules 9039ab991b Add testcase - findNodeByName - one test 2019-07-23 15:49:19 +05:30
bendtherules 68a5080ae4 Fix isNotHtmlLike util definition 2019-07-23 15:47:59 +05:30
bendtherules ef61b17f4c Export findNode mthods from index 2019-07-23 11:13:54 +05:30
bendtherules 5897cee001 Add 3 findNode methods - by name, comp and instance
1. By Component name
2. By Component (Class Or Function) reference
3. By Component (ClassComponent) instance reference
2019-07-23 11:13:40 +05:30
bendtherules c8f09eb5a1 Refactor - Move traverse to separate file and export from index 2019-07-23 10:56:57 +05:30
bendtherules 4af377f1ba Add better type check utils for HTMLLike 2019-07-22 18:47:32 +05:30
bendtherules c239b1b6d1 Add better mock typedef for FiberNode 2019-07-22 18:46:31 +05:30
bendtherules 5e93f9dab9 Add testcase - traverse - edge cases like rendering divs directly as root 2019-07-21 09:19:46 +05:30
bendtherules c1ae3fe5fa Fix test/utils - Allow mounting string type of elements 2019-07-21 09:19:10 +05:30
bendtherules 7ce8ee1778 Add testcase - depth-7-nested-2 as a more nested case 2019-07-21 09:18:16 +05:30
bendtherules 70a782ad0f Add initial TODOs 2019-07-20 19:29:16 +05:30
bendtherules 23ea59c83b Add testcase - traverse-nested misc 2019-07-20 19:29:05 +05:30
bendtherules 70901db7c4 Add testcase - travserse-basic-depth=5 2019-07-20 19:28:38 +05:30
bendtherules 771ff3e21e Remove whitespaces in tests 2019-07-20 19:03:05 +05:30
bendtherules 3d32347a37 Tests - Fix mountAndGetRootNode usage + Add depth=1 test case 2019-07-20 18:55:34 +05:30
bendtherules 8de40dcfc8 Refactor test mounting logic to separate file 2019-07-20 18:55:12 +05:30
bendtherules b2c107a5f5 Refactor FiberNode typedef to separate file 2019-07-20 18:50:50 +05:30
bendtherules 2a628c608e Remove stray console.log 2019-07-20 18:50:06 +05:30
bendtherules a18717ae33 Update package-lock 2019-07-20 18:49:28 +05:30
bendtherules 7b53266634 Revert "Add 'jest-plugin-must-assert' package"
This reverts commit d939bde9f7.
2019-07-20 18:47:51 +05:30
bendtherules d939bde9f7 Add 'jest-plugin-must-assert' package
This will make sure that all jest test cases calls atleast one asset
2019-07-20 18:30:34 +05:30
bendtherules 17be30ca20 Move back to default prettier config 2019-07-19 18:45:54 +05:30
bendtherules 6638f33d1b Rename and move existing sample test 2019-07-19 18:45:39 +05:30
bendtherules 92444eacb8 Add basic traverse function with tests 2019-07-19 18:45:25 +05:30
bendtherules 0ad6620437 Init with yo typescript-react-lib 2019-07-19 12:49:20 +05:30