ember-a11y-testing: TypeScript fails when using latest `@ember/test-helpers`
The latest version of @ember/test-helpers ships its own types, so @types/ember__test-helpers is obsolete now (see https://github.com/typed-ember/ember-cli-typescript/pull/1545).
In a project with that setup (i.e. no @types/ember__test-helpers) I am getting this when installing ember-a11y-testing:
../node_modules/.pnpm/ember-a11y-testing@5.2.0_xxksirw4yhzqkev2rkehjstyum/node_modules/ember-a11y-testing/test-support/setup-middleware-reporter.d.ts:1:23 - error TS2688: Cannot find type definition file for 'ember__test-helpers'
[tests] 1 /// <reference types="ember__test-helpers" />
See the <reference types="ember__test-helpers" /> in the compiled setup-middleware-reporter.d.ts, which now references a non-existing file.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 16 (6 by maintainers)
Commits related to this issue
- Expose _registerHook/_runHooks argument and return types Unblocks https://github.com/ember-a11y/ember-a11y-testing/issues/498 — committed to gitKrystan/ember-test-helpers by gitKrystan a year ago
PR up for
@ember/test-helpers: https://github.com/emberjs/ember-test-helpers/pull/1344Whoops I didn’t see that so duplicated your work. I’ll close mine. 😅