Skip to content

Commit b88c0f3

Browse files
committed
feat: upgrade DOM Testing Library
1 parent 6342b7d commit b88c0f3

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@angular/router": "^9.0.3",
3636
"@ngrx/store": "^9.0.0-rc.0",
3737
"@phenomnomnominal/tsquery": "^3.0.0",
38-
"@testing-library/dom": "^7.0.0-beta.3",
38+
"@testing-library/dom": "^7.0.0-beta.4",
3939
"@testing-library/user-event": "^8.1.0",
4040
"core-js": "^3.1.3",
4141
"rxjs": "^6.5.4",

projects/testing-library/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@angular/core": "^9.0.0"
3030
},
3131
"dependencies": {
32-
"@testing-library/dom": "^7.0.0-beta.3",
32+
"@testing-library/dom": "^7.0.0-beta.4",
3333
"@testing-library/user-event": "^8.1.0",
3434
"@phenomnomnominal/tsquery": "^3.0.0",
3535
"tslint": "^5.16.0"

projects/testing-library/src/lib/testing-library.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export async function render<SutType, WrapperType = SutType>(
128128
};
129129

130130
function componentWait(
131-
callback: () => void,
131+
callback,
132132
options: {
133133
container?: HTMLElement;
134134
timeout?: number;
@@ -162,7 +162,7 @@ export async function render<SutType, WrapperType = SutType>(
162162
return waitForDomChange(options).finally(() => clearInterval(interval));
163163
}
164164

165-
function componentWaitForElement<Result>(
165+
function componentWaitForElement<Result = HTMLElement>(
166166
callback: () => Result,
167167
options: {
168168
container?: HTMLElement;
@@ -180,7 +180,7 @@ export async function render<SutType, WrapperType = SutType>(
180180
return waitForElement(callback, options).finally(() => clearInterval(interval));
181181
}
182182

183-
function componentWaitForElementToBeRemoved<Result>(
183+
function componentWaitForElementToBeRemoved<Result = HTMLElement>(
184184
callback: () => Result,
185185
options: {
186186
container?: HTMLElement;

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,10 +1525,10 @@
15251525
dependencies:
15261526
defer-to-connect "^1.0.1"
15271527

1528-
"@testing-library/dom@^7.0.0-beta.3":
1529-
version "7.0.0-beta.3"
1530-
resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-7.0.0-beta.3.tgz#ff6a970e362451ba811de6218726ba6286bb49e9"
1531-
integrity sha512-RDSQ+j10SGgLKt5K6TkRSH6/mGnaDWvaEkMxN6c20c0o6ZhqDntyB/XUHk4WDvAQMFGoul2SeKfg9dLvC7dZZA==
1528+
"@testing-library/dom@^7.0.0-beta.4":
1529+
version "7.0.0-beta.4"
1530+
resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-7.0.0-beta.4.tgz#611dc2110552e41d0ae8720a09261e229d77e991"
1531+
integrity sha512-Lv+wttj/aVnSvykV9Qw5BK60Na5IAjz75Sy5TYxdFLCakaCj4VXAtveg2pACqI6Dh0aqKF0oThq9KJKEhccUXw==
15321532
dependencies:
15331533
"@babel/runtime" "^7.8.4"
15341534
"@types/testing-library__dom" "^6.12.1"

0 commit comments

Comments
 (0)