Skip to content

Commit 072442f

Browse files
committed
Adding a new mock for clipboard
1 parent 9762a2b commit 072442f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

__mocks__/vscode.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ module.exports = {
7676
createStatusBarItem: jest.fn(),
7777
showQuickPick: jest.fn(),
7878
},
79+
env: {
80+
clipboard: {
81+
readText: jest.fn(),
82+
writeText: jest.fn()
83+
}
84+
},
7985
workspace: {
8086
getConfiguration: jest.fn(() => ({
8187
get: jest.fn(),

0 commit comments

Comments
 (0)