Cannot find type definition file for 'jasmine'

See original GitHub issue

Is this a regression?

No

Description

We just upgraded from Angular 11 + Jest 26 + Spectator 7 to Angular 12 + Jest 27 + Spectator 8 and after managing to put all the dependencies in place, we’re getting this: image

I’ve tried to install @types/jasmine but it conflicts with @types/jest is it possible to move that “workaround” to somewhere else in the package config? Thanks in advance

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in

No response

Anything else?

No response

Do you want to create a pull request?

No

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
matheocommented, Jan 7, 2022

@NetanelBasal should I reopen and rename the issue to have createKeyboardEvent for jest?

1reaction
matheocommented, Jan 7, 2022

@bboyle so far I’ve been able to avoid this error importing from @ngneat/spectator/jest in my spec files. The only import I need from @ngneat/spectator is to defineGlobalsInjections in the jest setup file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Jest I get: Cannot find type definition file for 'jasmine'
Go to tsconfig.spec.json in the types field under the compilerOptions and remove jasmine and add jest
Read more >
Cannot find type definition file for 'jasmine/v2' #94 - GitHub
After update to newest version (@types/jasmine 3.4.1 and @types/jasminewd2 2.0.7). I'm still missing the v2 folder with the definition.
Read more >
Cannot find type definition file for 'node' in TypeScript
To solve the error "Cannot find type definition file for node", install the node types by running npm i -D @types/node . If...
Read more >
@types/jasmine - npm
TypeScript definitions for Jasmine. Latest version: 4.3.1, ... Start using @types/jasmine in your project by running `npm i @types/jasmine`.
Read more >
cannot find type definition file for 'jasmine
Answer 1. Looks like the typings in cordova-plugin-file-transfer is incorrect. It should be an external module but it is currently a script file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found