diff --git a/.eslintrc.json b/.eslintrc.json index 5125274f..7b537000 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -115,7 +115,7 @@ "rules": {} }, { - "files": ["*.ts", "*.js", "*.json", "*.md"], + "files": ["*.ts", "*.js"], "extends": ["prettier"] } ] diff --git a/lint-staged.config.js b/lint-staged.config.js index 68b831db..a10d3ccf 100644 --- a/lint-staged.config.js +++ b/lint-staged.config.js @@ -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'], +}; diff --git a/package.json b/package.json index fd008e45..aa4e8a86 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/projects/testing-library/package.json b/projects/testing-library/package.json index b50e7b1a..f1922ae6 100644 --- a/projects/testing-library/package.json +++ b/projects/testing-library/package.json @@ -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": { diff --git a/projects/testing-library/src/lib/models.ts b/projects/testing-library/src/lib/models.ts index b1984477..54b5f2ee 100644 --- a/projects/testing-library/src/lib/models.ts +++ b/projects/testing-library/src/lib/models.ts @@ -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 = { [P in keyof Q]: BoundFunction }; export interface RenderResult extends RenderResultQueries { @@ -23,7 +22,7 @@ export interface RenderResult extend debug: ( element?: Element | HTMLDocument | (Element | HTMLDocument)[], maxLength?: number, - options?: OptionsReceived, + options?: PrettyDOMOptions, ) => void; /** * @description