Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find namespace 'jest' #48

Closed
lukasborawski opened this issue Dec 8, 2019 · 2 comments
Closed

Cannot find namespace 'jest' #48

lukasborawski opened this issue Dec 8, 2019 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@lukasborawski
Copy link

Hi there. I've noticed this issue while running my Nuxt app. This not affects any of my tests but appears always during build process.

vuex-mock-store/src/index.d.ts(15,68):

15:68 Cannot find namespace 'jest'.
    13 | }
    14 |
  > 15 | export class Store<S extends Dict = {}, G extends Dict = {}, Spy = jest.Mock> {
       |                                                                    ^
    16 |   commit: Spy
    17 |   dispatch: Spy
    18 |   state: S
@posva
Copy link
Owner

posva commented Dec 8, 2019

You need to add @types/jest. It should be a peerDep on this project

@posva posva added bug Something isn't working good first issue Good for newcomers labels Dec 8, 2019
@posva
Copy link
Owner

posva commented Dec 8, 2019

done in 5dfe87c

@posva posva closed this as completed Dec 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants