Skip to content

Commit 6535986

Browse files
authored
Merge pull request #501 from mcous/docs-vitest
docs: add testdouble-vitest links to docs
2 parents 47bf3da + 5f1a959 commit 6535986

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ may also want to check out one of these extensions:
5555
* [testdouble-chai](https://github.com/basecase/testdouble-chai)
5656
* [testdouble-jasmine](https://github.com/BrianGenisio/testdouble-jasmine)
5757
* [testdouble-qunit](https://github.com/alexlafroscia/testdouble-qunit/tree/master/packages/testdouble-qunit)
58+
* [testdouble-vitest](https://github.com/mcous/testdouble-vitest)
5859

5960
## Getting started
6061

Diff for: docs/A-plugins.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,23 @@ your preferred testing framework. However, it may be the case that you'd prefer
1717
to bridge the `verify()` method of testdouble.js with your preferred assertion
1818
API for aesthetic or error-handling reasons.
1919

20-
Thes plugins developed by ourselves & the community:
20+
These plugins developed by ourselves & the community:
2121

22-
* [testdouble-jest](https://github.com/testdouble/testdouble-jest) - module mocking support for Jest users
2322
* [testdouble-chai](https://github.com/basecase/testdouble-chai) - Chai assertions
2423
* [testdouble-jasmine](https://github.com/BrianGenisio/testdouble-jasmine) -
2524
Jasmine `expect` matchers (by @BrianGenisio)
2625
* [testdouble-qunit](https://github.com/alexlafroscia/testdouble-qunit) -
2726
QUnit assertion
2827

28+
## Module Replacement Plugins
29+
30+
Some testing frameworks have built-in module replacement systems for injecting
31+
fakes into your tests. Depending on the framework and your configuration,
32+
you may need a plugin to use `replace()` / `replaceEsm()` in your tests:
33+
34+
* [testdouble-jest](https://github.com/testdouble/testdouble-jest) - module mocking support for Jest users
35+
* [testdouble-vitest](https://github.com/mcous/testdouble-vitest) - module module support for Vitest users
36+
2937
## Build Plugins
3038

3139
Sometimes, it can be handy to have a ready-made shim to pull in and configure the

0 commit comments

Comments
 (0)