Skip to content

feature/RHTL-68 – server-side-rendering #510

New issue

Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “No Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? No Sign in to your account

Merged
merged 60 commits into from
Jan 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
3841db2
chore: move current config (react-test-renderer) to src/native
joshuaellis Dec 6, 2020
40991cb
change: add eslint to avoid conflict & fix lint errors
joshuaellis Dec 10, 2020
e3b9104
feat: migrate previous server work
joshuaellis Dec 11, 2020
8b11562
merge master to branch
joshuaellis Dec 29, 2020
b34000e
Merge branch 'beta' into feature/RHTL-68
joshuaellis Dec 30, 2020
2cd41cb
feat: add global type file
joshuaellis Dec 31, 2020
d34245a
change: seperate helper funcs
joshuaellis Dec 31, 2020
85b9fa2
feat: add types to createRenderer & createRenderHook
joshuaellis Dec 31, 2020
add0639
tests: fix tests with type assertions etc.
joshuaellis Dec 31, 2020
785aa5c
fix: type assertion with RenderResult
joshuaellis Dec 31, 2020
b553441
test: fix errorHook type error.
joshuaellis Dec 31, 2020
7edd623
change: try to solve WrapperComponent PropTypes for useContext test
joshuaellis Dec 31, 2020
100c77c
fix: Wrapper type was breaking with spread operator
joshuaellis Dec 31, 2020
b5f6ced
feat: add server engine in typescript
joshuaellis Jan 1, 2021
56be770
test: get coverage to 100
joshuaellis Jan 2, 2021
8d35cac
change: remove rtr act & use own written
joshuaellis Jan 2, 2021
a4329dd
change: use relative paths & add react-dom to renderers
joshuaellis Jan 2, 2021
0e296b7
feat: add custom renderer option
joshuaellis Jan 2, 2021
fdfe432
feat: add dom renderer
joshuaellis Jan 3, 2021
af079a4
change: extract toRender to be shared
joshuaellis Jan 3, 2021
ec732c5
feat: add dom types
joshuaellis Jan 3, 2021
53a339e
test: formatting
joshuaellis Jan 3, 2021
7be2c80
change: create overload for createRenderHook
joshuaellis Jan 3, 2021
9b57e0d
change: update contributors
joshuaellis Jan 3, 2021
cfd3df0
change: dom should be default renderer for react-dom
joshuaellis Jan 3, 2021
125c327
change: add dom to files
joshuaellis Jan 3, 2021
ae3f2f7
change: @types/react-dom should be >=16.9.0
joshuaellis Jan 3, 2021
0e73e21
change: use generic RendererOptions instead of specific to renderer
joshuaellis Jan 3, 2021
48af5ce
chore(deps-dev): bump eslint from 7.16.0 to 7.17.0
dependabot[bot] Jan 4, 2021
3773938
chore(refactor): moved require into getRenderer
mpeyper Jan 4, 2021
19d74ce
fix: improve error message when renderer can't be auto-detected
mpeyper Jan 4, 2021
bad29f9
feat: remove renderer specific types from core renderHook logic
mpeyper Jan 4, 2021
5730f15
change: refactor auto cleanup into a separate function
mpeyper Jan 4, 2021
50cdd55
feat: added render utility support for custom renderers
mpeyper Jan 4, 2021
ba99b1c
fix: type catch block errors to fixe lint error
mpeyper Jan 4, 2021
fcc8ba3
chore: ignore lint warning for purposely skipped tests
mpeyper Jan 4, 2021
9ada181
chore: removed unnecessary lint disable comment
mpeyper Jan 4, 2021
81ce711
Merge pull request #522 from testing-library/dependabot/npm_and_yarn/…
joshuaellis Jan 4, 2021
785afd2
feat: renderHook options are now generic based on renderer
mpeyper Jan 6, 2021
a1fa12f
chore: rename file without tsx exension as it no longer contains any jsx
mpeyper Jan 6, 2021
511cb33
fix: refactor type names and removed some unnecessary types
mpeyper Jan 6, 2021
b3ccb32
fix: remove server act login and just use basic act
mpeyper Jan 6, 2021
3dfbbb7
fix: ensure react types are only imported if a react renderer is used
mpeyper Jan 6, 2021
e1d2153
fix: separate types into folders are export types for imports
mpeyper Jan 6, 2021
137f50c
fix: remove unused types, cleanup types and format all files
mpeyper Jan 6, 2021
89e678c
fix: update error message when a renderer cannot be auto-detected
mpeyper Jan 6, 2021
36b81c0
chore: restructure code for better readability after formatting
mpeyper Jan 6, 2021
1c6b9e5
fix: remove unnecessary structures to remove need to cast in renderHook
mpeyper Jan 6, 2021
b936962
fix: remove duplicate type from internal types
mpeyper Jan 6, 2021
080d98a
fix: simplify type of RenderHook
mpeyper Jan 6, 2021
816d312
Merge pull request #1 from testing-library/feature/RHTL-68-suggestions
joshuaellis Jan 6, 2021
209619d
feat: generate submodules as part of build step
mpeyper Jan 6, 2021
e9fa116
fix: don't wait for already resolved promise in waitForNextUpdate
mpeyper Jan 7, 2021
fd00043
fix: ensure submodule directory is cleaned before generating files
mpeyper Jan 7, 2021
16ba7e0
chore: remove unused custom module
mpeyper Jan 7, 2021
6146121
fix: minor renaming of private members
mpeyper Jan 7, 2021
1970833
Merge branch 'beta'
mpeyper Jan 7, 2021
c9460c5
Merge branch 'master' into feature/RHTL-68
mpeyper Jan 7, 2021
e315dce
chore: updated all-contributors to be more accurate
mpeyper Jan 7, 2021
1e2cb37
Merge branch 'master' into feature/RHTL-68
mpeyper Jan 7, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
200 changes: 192 additions & 8 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
],
"imageSize": 100,
"commit": false,
"commitConvention": "none",
"contributors": [
{
"login": "mpeyper",
Expand All @@ -16,13 +17,12 @@
"profile": "https://github.com/mpeyper",
"contributions": [
"code",
"design",
"doc",
"ideas",
"infra",
"platform",
"test",
"tool"
"maintenance",
"question",
"test"
]
},
{
Expand Down Expand Up @@ -201,7 +201,12 @@
"avatar_url": "https://avatars0.githubusercontent.com/u/37798644?v=4",
"profile": "https://github.com/joshuaellis",
"contributions": [
"doc"
"doc",
"question",
"code",
"ideas",
"maintenance",
"test"
]
},
{
Expand Down Expand Up @@ -270,7 +275,186 @@
"code",
"test"
]
},
{
"login": "marcosvega91",
"name": "Marco Moretti",
"avatar_url": "https://avatars2.githubusercontent.com/u/5365582?v=4",
"profile": "https://github.com/marcosvega91",
"contributions": [
"infra"
]
},
{
"login": "ndresx",
"name": "Martin V.",
"avatar_url": "https://avatars0.githubusercontent.com/u/27507295?v=4",
"profile": "https://www.parkside.at/",
"contributions": [
"doc"
]
},
{
"login": "erozak",
"name": "Erozak",
"avatar_url": "https://avatars3.githubusercontent.com/u/22066282?v=4",
"profile": "https://github.com/erozak",
"contributions": [
"doc"
]
},
{
"login": "nickmccurdy",
"name": "Nick McCurdy",
"avatar_url": "https://avatars0.githubusercontent.com/u/927220?v=4",
"profile": "https://nickmccurdy.com/",
"contributions": [
"maintenance"
]
},
{
"login": "aryyya",
"name": "Arya",
"avatar_url": "https://avatars1.githubusercontent.com/u/29365565?v=4",
"profile": "https://codepen.io/aryyya/",
"contributions": [
"doc"
]
},
{
"login": "numb86",
"name": "numb86",
"avatar_url": "https://avatars1.githubusercontent.com/u/16703337?v=4",
"profile": "https://numb86.net/",
"contributions": [
"doc"
]
},
{
"login": "foray1010",
"name": "Alex Young",
"avatar_url": "https://avatars3.githubusercontent.com/u/3212221?v=4",
"profile": "https://github.com/foray1010",
"contributions": [
"maintenance"
]
},
{
"login": "benjdlambert",
"name": "Ben Lambert",
"avatar_url": "https://avatars1.githubusercontent.com/u/3645856?v=4",
"profile": "https://blam.sh/",
"contributions": [
"doc"
]
},
{
"login": "ElRatonDeFuego",
"name": "David Cho-Lerat",
"avatar_url": "https://avatars1.githubusercontent.com/u/12750934?v=4",
"profile": "https://github.com/ElRatonDeFuego",
"contributions": [
"doc"
]
},
{
"login": "evanharmon",
"name": "Evan Harmon",
"avatar_url": "https://avatars1.githubusercontent.com/u/8229989?v=4",
"profile": "https://github.com/evanharmon",
"contributions": [
"doc"
]
},
{
"login": "browniefed",
"name": "Jason Brown",
"avatar_url": "https://avatars1.githubusercontent.com/u/1714673?v=4",
"profile": "http://codedaily.io/",
"contributions": [
"doc"
]
},
{
"login": "kahwee",
"name": "KahWee Teng",
"avatar_url": "https://avatars1.githubusercontent.com/u/262105?v=4",
"profile": "https://github.com/kahwee",
"contributions": [
"doc"
]
},
{
"login": "shagabutdinov",
"name": "Leonid Shagabutdinov",
"avatar_url": "https://avatars2.githubusercontent.com/u/1635613?v=4",
"profile": "http://shagabutdinov.com/",
"contributions": [
"doc"
]
},
{
"login": "LeviButcher",
"name": "Levi Butcher",
"avatar_url": "https://avatars2.githubusercontent.com/u/31522433?v=4",
"profile": "https://levibutcher.dev/",
"contributions": [
"doc"
]
},
{
"login": "7michele7",
"name": "Michele Settepani",
"avatar_url": "https://avatars2.githubusercontent.com/u/17926167?v=4",
"profile": "https://github.com/7michele7",
"contributions": [
"doc"
]
},
{
"login": "samnoh",
"name": "Sam",
"avatar_url": "https://avatars1.githubusercontent.com/u/14857416?v=4",
"profile": "https://github.com/samnoh",
"contributions": [
"doc"
]
},
{
"login": "tanaypratap",
"name": "Tanay Pratap",
"avatar_url": "https://avatars0.githubusercontent.com/u/10216863?v=4",
"profile": "https://github.com/tanaypratap",
"contributions": [
"doc"
]
},
{
"login": "techanvil",
"name": "Tom Rees-Herdman",
"avatar_url": "https://avatars0.githubusercontent.com/u/18395600?v=4",
"profile": "https://github.com/techanvil",
"contributions": [
"doc"
]
},
{
"login": "iqbal125",
"name": "iqbal125",
"avatar_url": "https://avatars2.githubusercontent.com/u/24860061?v=4",
"profile": "https://github.com/iqbal125",
"contributions": [
"doc"
]
},
{
"login": "cliffzhaobupt",
"name": "cliffzhaobupt",
"avatar_url": "https://avatars3.githubusercontent.com/u/7374506?v=4",
"profile": "https://github.com/cliffzhaobupt",
"contributions": [
"maintenance"
]
}
],
"commitConvention": "none"
}
]
}
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
node_modules
coverage
lib
dom
native
server
pure
.docz
site
3 changes: 1 addition & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
"no-await-in-loop": "off",
"no-console": "off",
"import/no-unresolved": "off",
"react-hooks/rules-of-hooks": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/no-invalid-void-type": "off"
},
"parserOptions": {
"project": ["./tsconfig.json", "./test/tsconfig.json"]
"project": ["./tsconfig.json", "./test/tsconfig.json", "./scripts/tsconfig.json"]
}
}
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
node_modules
coverage
lib
dom
native
server
pure
.docz
site
site
.vscode
Loading