Skip to content

Commit

Permalink
feat: update @testing-library/DOM (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver authored Jun 30, 2021
1 parent 4b269bc commit 489e135
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"rules": {}
},
{
"files": ["*.ts", "*.js", "*.json", "*.md"],
"files": ["*.ts", "*.js"],
"extends": ["prettier"]
}
]
Expand Down
5 changes: 4 additions & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
module.exports = { '*.{ts,js}': ['eslint --fix', 'git add'], '*.{json,md}': ['prettier --write', 'git add'] };
module.exports = {
'*.{ts,js}': ['eslint --fix', 'git add'],
'*.{json,md}': ['prettier --write', 'git add'],
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@ngrx/store": "12.0.0",
"@nrwl/angular": "12.0.3",
"@nrwl/nx-cloud": "11.2.0",
"@testing-library/dom": "7.29.4",
"@testing-library/dom": "^8.0.0",
"@testing-library/user-event": "^13.1.9",
"core-js": "^3.6.5",
"rxjs": "^6.5.5",
Expand Down
2 changes: 1 addition & 1 deletion projects/testing-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@angular/core": ">= 10.0.0"
},
"dependencies": {
"@testing-library/dom": "7.29.4",
"@testing-library/dom": "^8.0.0",
"tslib": "^2.0.0"
},
"publishConfig": {
Expand Down
5 changes: 2 additions & 3 deletions projects/testing-library/src/lib/models.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Type, DebugElement } from '@angular/core';
import { ComponentFixture } from '@angular/core/testing';
import { Routes } from '@angular/router';
import { BoundFunction, Queries, queries, Config as dtlConfig } from '@testing-library/dom';
import { OptionsReceived } from 'pretty-format';
import { BoundFunction, Queries, queries, Config as dtlConfig, PrettyDOMOptions } from '@testing-library/dom';

export type RenderResultQueries<Q extends Queries = typeof queries> = { [P in keyof Q]: BoundFunction<Q[P]> };
export interface RenderResult<ComponentType, WrapperType = ComponentType> extends RenderResultQueries {
Expand All @@ -23,7 +22,7 @@ export interface RenderResult<ComponentType, WrapperType = ComponentType> extend
debug: (
element?: Element | HTMLDocument | (Element | HTMLDocument)[],
maxLength?: number,
options?: OptionsReceived,
options?: PrettyDOMOptions,
) => void;
/**
* @description
Expand Down

0 comments on commit 489e135

Please sign in to comment.