From 3843ae5ac71ecd0f3f987191e5de718b76df11bc Mon Sep 17 00:00:00 2001 From: Chandler Prall Date: Mon, 16 Dec 2019 11:22:25 -0700 Subject: [PATCH 1/2] exclude *.test.tsx? files from eui.d.ts --- scripts/dtsgenerator.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/dtsgenerator.js b/scripts/dtsgenerator.js index 6cb719150d5..4ea78dab266 100644 --- a/scripts/dtsgenerator.js +++ b/scripts/dtsgenerator.js @@ -32,6 +32,8 @@ const generator = dtsGenerator({ 'node_modules/**/*.d.ts', '*/custom_typings/**/*.d.ts', 'src-framer/**/*', + '**/*.test.ts', + '**/*.test.tsx', ], resolveModuleId(params) { if ( From 84241ddbbcf75c5f3d5137410054ded957f5a9eb Mon Sep 17 00:00:00 2001 From: Chandler Prall Date: Mon, 16 Dec 2019 11:27:55 -0700 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad1f35b9040..2cc87724ec2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ - Reverted docs changes in `17.2.0` that caused the build script to die ([#2672](https://github.com/elastic/eui/pull/2672)) +**Bug fixes** + +- Removed TypeScript definitions in `*.test.tsx?` files from _eui.d.ts_ ([#2673](https://github.com/elastic/eui/pull/2673)) + ## [`17.2.0`](https://github.com/elastic/eui/tree/v17.2.0) - Improved a11y of `EuiNavDrawer` lock button state via `aria-pressed` ([#2643](https://github.com/elastic/eui/pull/2643))