From 1de37f6965fb2e23a45ae3d6ce9ea8ac509ed833 Mon Sep 17 00:00:00 2001 From: Cole Bemis Date: Tue, 19 Jan 2021 16:51:09 -0800 Subject: [PATCH 1/2] Don't exclude test files in tsconfig --- tsconfig.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 3b74eab07a2..ef289a85766 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,6 +15,5 @@ "skipLibCheck": true, "forceConsistentCasingInFileNames": true }, - "include": ["src/**/*.js", "src/**/*.ts", "src/**/*.tsx"], - "exclude": ["**/__tests__/**"] + "include": ["src/**/*.js", "src/**/*.ts", "src/**/*.tsx"] } From d522d01fc74c34ed3375064bf75e73f97eb4004f Mon Sep 17 00:00:00 2001 From: Cole Bemis Date: Tue, 19 Jan 2021 16:54:23 -0800 Subject: [PATCH 2/2] Install @types/jest-axe --- package.json | 1 + yarn.lock | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b474309b8ba..5e961b53736 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,7 @@ "@testing-library/react": "11.2.2", "@testing-library/user-event": "12.6.0", "@types/jest": "26.0.20", + "@types/jest-axe": "3.5.1", "@wojtekmaj/enzyme-adapter-react-17": "0.3.2", "babel-core": "7.0.0-bridge.0", "babel-plugin-add-react-displayname": "0.0.5", diff --git a/yarn.lock b/yarn.lock index e099719189e..dfc6ed04ae9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1645,7 +1645,15 @@ dependencies: "@types/istanbul-lib-report" "*" -"@types/jest@26.0.20": +"@types/jest-axe@3.5.1": + version "3.5.1" + resolved "https://registry.yarnpkg.com/@types/jest-axe/-/jest-axe-3.5.1.tgz#122c3864e361c8d699e60814a6a7f6851101d263" + integrity sha512-yelGgELc6iJEPShJ3/XEu6uUr5rCGi/Md0QzMuoo53y0WpR2lyFM3mjdpo8Q+PPd3onHOpIw6BBzEAIU65ZFSA== + dependencies: + "@types/jest" "*" + axe-core "^3.5.5" + +"@types/jest@*", "@types/jest@26.0.20": version "26.0.20" resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.20.tgz#cd2f2702ecf69e86b586e1f5223a60e454056307" integrity sha512-9zi2Y+5USJRxd0FsahERhBwlcvFh6D2GLQnY2FH2BzK8J9s9omvNHIbvABwIluXa0fD8XVKMLTO0aOEuUfACAA== @@ -2483,6 +2491,11 @@ aws4@^1.8.0: resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.11.0.tgz#d61f46d83b2519250e2784daf5b09479a8b41c59" integrity sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA== +axe-core@^3.5.5: + version "3.5.5" + resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-3.5.5.tgz#84315073b53fa3c0c51676c588d59da09a192227" + integrity sha512-5P0QZ6J5xGikH780pghEdbEKijCTrruK9KxtPZCFWUpef0f6GipO+xEZ5GKCb020mmqgbiNO6TcA55CriL784Q== + axe-core@^4.0.1: version "4.1.1" resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.1.1.tgz#70a7855888e287f7add66002211a423937063eaf"