Skip to content

Commit

Permalink
Fix Prettier config
Browse files Browse the repository at this point in the history
  • Loading branch information
fatso83 committed Oct 18, 2023
1 parent cb3d189 commit 2692674
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ tmp/
docs/_site/
docs/js/
docs/assets/js/
vendor
8 changes: 5 additions & 3 deletions docs/_howto/typescript-swc.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,10 @@ export const myMocks = {
set toBeMocked(mockImplementation) {
toBeMocked = mockImplementation;
},
get toBeMocked(){ return _toBeMocked; }
}
get toBeMocked() {
return _toBeMocked;
},
};
```
**main.spec.ts**
Expand All @@ -272,7 +274,7 @@ describe("main", () => {
> [Working code][cjs-mocking]
This is what [the article on _targetting the link seams_][link-seams-cjs] is about. The only difference here is using Quibble instead of Proxyquire. Quibble is slightly terser and also supports being used as a ESM _loader_, making it a bit more modern and useful. The end result:
This is what [the article on _targetting the link seams_][link-seams-cjs] is about. The only difference here is using Quibble instead of Proxyquire. Quibble is slightly terser and also supports being used as a ESM _loader_, making it a bit more modern and useful. The end result looks like this:
```typescript
describe("main module", () => {
Expand Down

0 comments on commit 2692674

Please sign in to comment.