Commit Graph
100 Commits
Author SHA1 Message Date
bendtherules d630d21b23 TODO - Mark some done 2019-09-12 13:47:49 +05:30
bendtherules 693dd69d32 findNode - Add findNodesByComponentName and findAllNodesByComponentName 2019-09-12 13:46:33 +05:30
bendtherules f01ae4fb2a TODO - Write test for traverseConfig changes 2019-09-11 17:02:53 +05:30
bendtherules 1ef5941a9e findNode* - Support traverseConfig 2019-09-11 16:54:53 +05:30
bendtherules e7e969cf65 traverse - Support traverseConfig 2019-09-11 16:54:32 +05:30
bendtherules 8326ec5bf7 traverseGenerator - Refactor config argument type to separate interface 2019-09-11 16:50:00 +05:30
bendtherules 0bc8c1af99 traverseGenerator - Add option to skip traversing siblings for first node
Which is usually expected, when we think of it as a recursive traversal
2019-09-11 16:18:40 +05:30
bendtherules aced1be6e8 Rewrite traverse.traverse using traverseGenerator 2019-09-11 15:13:21 +05:30
bendtherules 492e69f4dd traverse - Arrange functions in file 2019-09-11 14:58:13 +05:30
bendtherules 94ab7112f7 traverse - Fix prettier formatting 2019-09-11 14:50:28 +05:30
bendtherules 808ed790f3 jsdoc - Add spearator between examples of a function 2019-09-11 14:48:50 +05:30
bendtherules 817242dd25 traverseGenerator - Mark properties in yield object optional 2019-09-11 08:58:17 +05:30
bendtherules 827b282064 ts - Fix vscode version to workspace ts version 2019-09-11 08:57:12 +05:30
bendtherules c71b9ad531 Doc - Add doc for traverseGenerator with example 2019-09-11 08:55:13 +05:30
bendtherules 01e6932cd5 Docs - Update built docs 2019-09-09 18:41:32 +05:30
bendtherules 215153c516 Docs - Add doc for traverse.traverse method 2019-09-09 18:41:13 +05:30
bendtherules fd6dad21ad TODO - rewrite find using generators 2019-09-09 18:30:36 +05:30
bendtherules 30b1bfefea Docs - Update built docs 2019-09-09 18:20:17 +05:30
bendtherules e870a92e4b TODO - Skip sibling 2019-09-09 18:20:02 +05:30
bendtherules 6cffc96d60 Docs - In findNode, move exmaples above note section 2019-09-09 18:19:30 +05:30
bendtherules 4824828b51 Docs - Update built docs 2019-09-09 18:16:42 +05:30
bendtherules 5a2e7f1375 Docs - In findNode, fix example tag code blocks 2019-09-09 18:16:04 +05:30
bendtherules 977a376cad Docs - Update built docs 2019-09-09 17:43:58 +05:30
bendtherules 21231fcb11 Docs - Added for findNode methods 2019-09-09 17:41:58 +05:30
bendtherules b09af700c9 TODO - All optional root node in method params 2019-09-09 16:16:46 +05:30
bendtherules 55152a1be7 Readme - Add testing concern 2019-09-04 11:32:21 +05:30
bendtherules 8a69d1f1ca Docs - Add overview, concern and typedoc file link 2019-09-04 11:29:35 +05:30
bendtherules c40fc9b2c4 Release v0.0.7 2019-09-04 10:51:02 +05:30
bendtherules 18ea2e7d2a package.json - Add docs generation to publish task 2019-09-04 10:46:41 +05:30
bendtherules e01fc3ab0b Release v0.0.6 2019-08-29 17:37:45 +05:30
bendtherules ba2e842338 Readme - Update example with proper working code and CSB link 2019-08-29 17:36:17 +05:30
bendtherules b16012f81e Release v0.0.5 2019-08-29 17:10:43 +05:30
bendtherules 113674df2f Update package-lock 2019-08-29 17:09:25 +05:30
bendtherules 88eb62298e Release v0.0.4 2019-08-29 17:01:43 +05:30
bendtherules 8e484fc074 TODO - findAllNodes added 2019-08-28 09:01:16 +05:30
bendtherules a88e0e0f07 Readme - Update with correct import statements 2019-08-28 09:00:57 +05:30
bendtherules a1204cfc1b lib - export utils from main export 2019-08-27 22:58:47 +05:30
bendtherules ceaa1eee32 TODO - Separate out major compatibility changes into diff item 2019-08-25 17:26:28 +05:30
bendtherules 3c5ea67992 Add testcase - traverseGenerator-skipped
Some simple cases covered. Needs more thought out cases with combination
2019-08-11 22:12:23 +05:30
bendtherules 395dc281ce test.traverseGenerator-ordered - Fix test group title 2019-08-11 20:19:13 +05:30
bendtherules 3e062ef911 Add testcase - getRootFiberNodeFromDOM - without any element as input 2019-08-10 17:20:20 +05:30
bendtherules e3750e9b50 Add TODO for getRootFiberNodeFromDOM changes needed (skip-ci) 2019-08-10 17:13:40 +05:30
bendtherules e1dec601e7 Add testcases - utils.getRootFiberNodeFromDOM 2019-08-10 17:08:32 +05:30
bendtherules d6d32fd847 Add testcase - utils.doesElementContainRootFiberNode 2019-08-10 16:17:01 +05:30
bendtherules 7aff88ecb8 package.json - Remove post-commit hook 2019-08-10 13:49:28 +05:30
bendtherules 400757182f Modify lint-staged - Run prettier and eslint only on changed files 2019-08-10 13:46:21 +05:30
bendtherules 6cd41bc4bd Modify 'lint' cmd - Run eslint for jsx.tsx also 2019-08-10 13:04:17 +05:30
bendtherules 5a33b3272e utils - export doesElementContainRootFiberNode 2019-08-10 13:01:07 +05:30
bendtherules e7e1415039 Add testcases - utils.isConstructorComponentClass 2019-08-10 12:59:40 +05:30
bendtherules 7e676b0edc Add testcases - utils.isConstructorFunctionComponent 2019-08-10 12:58:46 +05:30
bendtherules 9ebc534cc3 Modify isConstructorFunctionComponent - Check type is function 2019-08-10 12:54:30 +05:30
bendtherules d7276eff9e Modify utils.isConstructor* - Allow null type as input 2019-08-10 11:26:39 +05:30
bendtherules c5adcb3152 Add testcase - utils.isConstructorHtmlLike 2019-08-10 10:49:33 +05:30
bendtherules e64d51a3e6 Modify util.isConstructorHtmlLike - Allow null typeas input 2019-08-10 10:46:42 +05:30
bendtherules 887f4b95d1 Modify utils - doesElementContainRootFiberNode also checks for _internalRoot now 2019-08-10 10:37:12 +05:30
bendtherules 39080755ef Add testcase - isNodeComponentClass 2019-08-10 09:58:15 +05:30
bendtherules 69c1d2db86 Edit test title in utils.isNodeFunctionComponent 2019-08-10 01:49:40 +05:30
bendtherules 86216d3b05 Add testcase - utils.isNodeHtmlLike - Add negative test cases where it is false 2019-08-10 01:44:39 +05:30
bendtherules 933639e0ba Add testcase - utils.isNodeFunctionComponent 2019-08-10 01:43:14 +05:30
bendtherules 91ab867f19 Update package-lock 2019-08-09 23:02:15 +05:30
bendtherules 8f29fd8eea Fix prettier - mountInEnzyme
Was missed due to non-installation of husky in this machine
2019-08-09 23:00:08 +05:30
bendtherules c3ca45928a Add testcase - utils.isNodeHtmlLike
Tests isNodeHtmlLike and isNodeNotHtmlLike
2019-08-09 22:28:02 +05:30
bendtherules 2aa7a9bbf3 Test utils - mountInEnzyme - support loading intrinsic elements 2019-08-09 22:10:08 +05:30
bendtherules fb23260efe Add testcase - findNodeByComponentRef-negative
Check cases where ref is not found in fiber tree
2019-08-09 11:54:50 +05:30
bendtherules 6f5826d398 Add testcase - findNodeByComponent-negative
Test cases where component is not found
2019-08-09 10:05:24 +05:30
bendtherules cab50e2bd7 0.0.3 2019-08-08 12:43:57 +05:30
bendtherules 0cb63e0d5c Bump version to 0.0.2 2019-08-08 12:42:48 +05:30
bendtherules dd3d8fee62 Remove changelog cmd from npm version 2019-08-08 12:42:37 +05:30
bendtherules 8fe3548f47 Add basic usage to readme 2019-08-08 12:19:37 +05:30
bendtherules 0aa9a8c40e Fix lint-staged config again to make sure filenames are not provided 2019-08-08 11:52:09 +05:30
bendtherules 05489aad2c src/utils - Add getRootFiberNodeFromDOM helper
To find root Fiber node from overall html document or a particular element.
Ideally, this should be called with the same container element used in ReactDom.render.
2019-08-08 11:51:33 +05:30
bendtherules f94f7c5409 Move lint-staged config to different file to ignore filenames 2019-08-08 11:49:48 +05:30
bendtherules 0e2278c916 Remove unused snapshot 2019-08-08 09:32:38 +05:30
bendtherules 8759ba19ba Update todo 2019-08-04 01:03:55 +05:30
bendtherules 054c50b6f5 Add built docs 2019-08-04 00:59:49 +05:30
bendtherules b78906a629 Configure typedoc to generate docs 2019-08-04 00:59:34 +05:30
bendtherules aecb963c8a Remove sample test 2019-08-04 00:24:38 +05:30
bendtherules 2b98454c77 Remove pre-push git hook 2019-08-04 00:23:10 +05:30
bendtherules c9fc3b9c93 Configure lint-staged to run pre-commit scripts only on staged files 2019-08-04 00:08:39 +05:30
bendtherules 8594a9694c Update package-lock 2019-08-04 00:01:49 +05:30
bendtherules f58c94a0e0 Install husky and add some git hooks 2019-08-04 00:00:50 +05:30
bendtherules b338d774c1 package.json - Move fix:format script below 2019-08-03 23:55:46 +05:30
bendtherules 2da707fcdd Update package-lock 2019-08-03 23:42:15 +05:30
bendtherules 4548f2c3b4 Change codecov command in travis.yml 2019-08-03 21:33:15 +05:30
bendtherules 5e28e0e222 Add size-snapshot 2019-08-03 21:10:51 +05:30
bendtherules ee942aab7e Vscode settings - Enable eslint for ts files 2019-08-03 21:09:12 +05:30
bendtherules 8a2ac706ca Disable some ts rules in eslint
Array rule doesn't make sense to me\
Prop-types, in my opinion, is not needed when components are types anyway. And this is also a library, which doesn't export any component as such
2019-08-03 21:08:50 +05:30
bendtherules f0d18da0f8 Add compiled/ to eslintignore 2019-08-03 21:07:50 +05:30
bendtherules f83a5c0fd9 Change tsconfig - Make target es6 in base config 2019-08-03 21:00:06 +05:30
bendtherules 67206dfe41 Fix prettier on all files 2019-08-03 20:40:07 +05:30
bendtherules feee690b48 Remove some useless tests 2019-08-03 20:30:23 +05:30
bendtherules dbea40b9f8 Fix usages on mountAndGetRootNode with function component 2019-08-03 20:29:45 +05:30
bendtherules b59b0c8fe2 mountAndGetRootNode - Support function comp as input
Internally creates wrapper class and outputs inner node from that class instance
2019-08-03 18:49:29 +05:30
bendtherules 896795569a Remove traverse-edge testcase file
Didn't make much sense
2019-08-03 18:48:20 +05:30
bendtherules ff9821329a src/utils - Add helpers for detecting react functional and class components 2019-08-03 18:48:01 +05:30
bendtherules 614decc8ea Add vscode setting - Configure prettier for js, ts, tsx 2019-08-03 18:47:05 +05:30
bendtherules 91ab8f39fb Add test util for creating transparent component 2019-08-03 13:08:44 +05:30
bendtherules 1643065536 Update all imnport usages of mountInEnzyme 2019-08-02 19:53:10 +05:30
bendtherules a7328abe53 Rename mountInEnzyme test util file 2019-08-02 19:52:49 +05:30
bendtherules d2c4bed511 Add some testcases for traverseGenerator-ordered
With diff values of order param
2019-08-02 19:51:27 +05:30