You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have set up Jest Chrome in an existing Vue project, and when I run the build the screen fills with 100s and 100s of lines the following:
ERROR in /Volumes/Data/Work/Current/.../node_modules/jest-chrome/types/jest-chrome.d.ts(6092,31):
6092:31 Namespace 'jest' has no exported member 'MockedFunction'.
6090 | * function(string result) {...};
6091 | */
> 6092 | export const getTitle: jest.MockedFunction<typeof chrome.pageAction.getTitle>
| ^
6093 | /**
6094 | * Gets the html document set as the popup for this page action.
6095 | *
ERROR in /Volumes/Data/Work/Current/.../node_modules/jest-chrome/types/jest-chrome.d.ts(6102,31):
6102:31 Namespace 'jest' has no exported member 'MockedFunction'.
6100 | * function(string result) {...};
6101 | */
> 6102 | export const getPopup: jest.MockedFunction<typeof chrome.pageAction.getPopup>
| ^
6103 | /**
6104 | * Sets the icon for the page action. The icon can be specified either as the path to an image file or as the pixel data from a canvas element, or as dictionary of either one of those. Either the path or the imageData property must be specified.
6105 | *
ERROR in /Volumes/Data/Work/Current/.../node_modules/jest-chrome/types/jest-chrome.d.ts(6110,30):
6110:30 Namespace 'jest' has no exported member 'MockedFunction'.
6108 | * function() {...};
6109 | */
> 6110 | export const setIcon: jest.MockedFunction<typeof chrome.pageAction.setIcon>
| ^
6111 |
6112 | /** Fired when a page action icon is clicked. This event will not fire if the page action has a popup. */
6113 | export const onClicked: PageActionClickedEvent
How do we reproduce?
Unsure. This is a Vue project around 18 months old.
Also just upgraded the Vue CLI to the latest copy of everything, which brought its own issues (I think the compiler / linting settings are more aggressive) – not sure if they are connected.
Vue uses its own copy of Jest, but to be on the safe side, I installed Jest again as a peer dependency, but no luck.
Expected behavior
The build compiles with no warnings.
Actual behavior
See above.
The build still works, but the terminal is hosed with messages.
Screenshots
See copy/paste above
Please complete the following information:
Library Version: 0.7.0
Operating System: OSX
Browser: Chrome
Node Version: 12
Additional context
The text was updated successfully, but these errors were encountered:
jacksteamdev
changed the title
100s of warnings of Namespace 'jest' has no exported member 'MockedFunction' during build
Vue CLI: 100s of warnings of Namespace 'jest' has no exported member 'MockedFunction' during build
Sep 15, 2020
Any update on this, or way to mitigate until you get a chance to look at it?
Cheers,
Dave
jacksteamdev
changed the title
Vue CLI: 100s of warnings of Namespace 'jest' has no exported member 'MockedFunction' during build
Vue CLI: Namespace 'jest' has no exported member 'MockedFunction' during build
Sep 17, 2020
Have downgraded packages again to get a build that works.
Got some advice from Lachlan Miller who maintains Vue Test Utils and he suggested upgrading Jest, but critically also Jest types – which perhaps were missed in the previous upgrade – to v25:
Google search terms
The error message of this issue
Describe the bug
Have set up Jest Chrome in an existing Vue project, and when I run the build the screen fills with 100s and 100s of lines the following:
How do we reproduce?
Unsure. This is a Vue project around 18 months old.
Also just upgraded the Vue CLI to the latest copy of everything, which brought its own issues (I think the compiler / linting settings are more aggressive) – not sure if they are connected.
Vue uses its own copy of Jest, but to be on the safe side, I installed Jest again as a peer dependency, but no luck.
Expected behavior
The build compiles with no warnings.
Actual behavior
See above.
The build still works, but the terminal is hosed with messages.
Screenshots
See copy/paste above
Please complete the following information:
Additional context
The text was updated successfully, but these errors were encountered: