We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef37f83 commit f2f667bCopy full SHA for f2f667b
src/__mocks__/vscode.js
@@ -17,9 +17,11 @@ const vscode = {
17
window: {
18
showInformationMessage: jest.fn(),
19
showErrorMessage: jest.fn(),
20
- createTextEditorDecorationType: jest.fn().mockReturnValue({
+ createTextEditorDecorationType: jest.fn().mockImplementation((options) => ({
21
+ ...options,
22
dispose: jest.fn(),
- }),
23
+ key: Math.random().toString(),
24
+ })),
25
tabGroups: {
26
onDidChangeTabs: jest.fn(() => {
27
return {
0 commit comments