Skip to content

Commit

Permalink
Add link
Browse files Browse the repository at this point in the history
  • Loading branch information
fatso83 committed Oct 18, 2023
1 parent 0e1b9eb commit 9c41dae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ coverage/
_site
docs/vendor/
vendor/
.bundle
4 changes: 4 additions & 0 deletions docs/assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ body {
// Content
.content {
padding: 60px 0px;

& h5 {
font-weight: 600; // make h5 visible: otherwise no difference is shown
}
}

// Pages
Expand Down
2 changes: 1 addition & 1 deletion docs/release-source/release/sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ Usually one intends to _replace_ the value or getter of a field, but there are u

##### Use case: no-frills dependency injection in ESM with cleanup

One use case can be to conveniently allow ESM module stubbing using pure dependency injection, having Sinon help you with the cleanup, without resorting to external machinery such as module loaders or require hooks (see [#2403](https://github.com/sinonjs/sinon/issues/2403)). This would then work regardless of bundler, browser or server environment.
One use case can be to conveniently allow ESM module stubbing using pure dependency injection, having Sinon help you with the cleanup, without resorting to external machinery such as module loaders or require hooks (see [the case study on module mocking Typescript](/how-to/typescript-swc/#version-2-using-sinons-auto-cleanup) for an example). This approach works regardless of bundler, browser or server environment.

#### `sandbox.replaceGetter(object, property, replacementFunction);`

Expand Down

0 comments on commit 9c41dae

Please sign in to comment.