Skip to content

Commit 489e135

Browse files
feat: update @testing-library/DOM (#226)
1 parent 4b269bc commit 489e135

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

.eslintrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"rules": {}
116116
},
117117
{
118-
"files": ["*.ts", "*.js", "*.json", "*.md"],
118+
"files": ["*.ts", "*.js"],
119119
"extends": ["prettier"]
120120
}
121121
]

lint-staged.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
module.exports = { '*.{ts,js}': ['eslint --fix', 'git add'], '*.{json,md}': ['prettier --write', 'git add'] };
1+
module.exports = {
2+
'*.{ts,js}': ['eslint --fix', 'git add'],
3+
'*.{json,md}': ['prettier --write', 'git add'],
4+
};

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@ngrx/store": "12.0.0",
4242
"@nrwl/angular": "12.0.3",
4343
"@nrwl/nx-cloud": "11.2.0",
44-
"@testing-library/dom": "7.29.4",
44+
"@testing-library/dom": "^8.0.0",
4545
"@testing-library/user-event": "^13.1.9",
4646
"core-js": "^3.6.5",
4747
"rxjs": "^6.5.5",

projects/testing-library/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@angular/core": ">= 10.0.0"
3737
},
3838
"dependencies": {
39-
"@testing-library/dom": "7.29.4",
39+
"@testing-library/dom": "^8.0.0",
4040
"tslib": "^2.0.0"
4141
},
4242
"publishConfig": {

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { Type, DebugElement } from '@angular/core';
22
import { ComponentFixture } from '@angular/core/testing';
33
import { Routes } from '@angular/router';
4-
import { BoundFunction, Queries, queries, Config as dtlConfig } from '@testing-library/dom';
5-
import { OptionsReceived } from 'pretty-format';
4+
import { BoundFunction, Queries, queries, Config as dtlConfig, PrettyDOMOptions } from '@testing-library/dom';
65

76
export type RenderResultQueries<Q extends Queries = typeof queries> = { [P in keyof Q]: BoundFunction<Q[P]> };
87
export interface RenderResult<ComponentType, WrapperType = ComponentType> extends RenderResultQueries {
@@ -23,7 +22,7 @@ export interface RenderResult<ComponentType, WrapperType = ComponentType> extend
2322
debug: (
2423
element?: Element | HTMLDocument | (Element | HTMLDocument)[],
2524
maxLength?: number,
26-
options?: OptionsReceived,
25+
options?: PrettyDOMOptions,
2726
) => void;
2827
/**
2928
* @description

0 commit comments

Comments
 (0)