Skip to content

Commit 9dc7512

Browse files
authored
docs: Update Vitest discussion in README (#137)
1 parent 68cc50a commit 9dc7512

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# VS Code Mocks for Jest
1+
# VS Code Mocks for Jest and Vitest
22

33
This packages is was created to help with the painful process of running unit tests on VS Code extensions.
44

@@ -66,6 +66,14 @@ describe('workspace', () => {
6666

6767
## Vitest
6868

69+
Based upon:
70+
71+
- [`vi.Mock()` | Vitest](https://vitest.dev/api/vi.html#vi-mock)
72+
- [Mocking | Guide | Vitest](https://vitest.dev/guide/mocking.html#modules)
73+
- [Mock Functions | Vitest](https://vitest.dev/api/mock.html)
74+
75+
You can add the following file to your project:
76+
6977
**`__mocks__/vscode.cts`**
7078

7179
<!--- @@inject: test-packages/vitest-integration/__mocks__/vscode.cts --->

0 commit comments

Comments
 (0)