Skip to content

Commit

Permalink
Format json and markdown with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
andys8 committed Sep 16, 2018
1 parent b409b3a commit a661d01
Show file tree
Hide file tree
Showing 8 changed files with 382 additions and 357 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"printWidth": 100
}
3 changes: 2 additions & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.vscode/**
.gitignore
.gitignore
node_modules/**
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Changelog

[Releases](https://github.com/andys8/vscode-jest-snippets/releases)
[Releases](https://github.com/andys8/vscode-jest-snippets/releases)
116 changes: 58 additions & 58 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,71 +10,71 @@ Below is a list of all available snippets and the triggers of each one. The **

### Globals

| Trigger | Content |
| -------: | ------- |
| `desc→` | describe |
| `desco→` | describe.only |
| `descs→` | describe.skip |
| `ae→` | after each |
| `aa→` | after all |
| `be→` | before each |
| `ba→` | before all |
| Trigger | Content |
| -------: | ------------- |
| `desc→` | describe |
| `desco→` | describe.only |
| `descs→` | describe.skip |
| `ae→` | after each |
| `aa→` | after all |
| `be→` | before each |
| `ba→` | before all |

### Tests

| Trigger | Content |
| -------: | ------- |
| `it→` | it |
| `ito→` | it.only |
| `its→` | it.skip |
| `ita→` | it(..., async ...) |
| `test→` | test |
| `testo→` | test.only |
| `tests→` | test.skip |
| `testa→` | test(..., async ...) |
| Trigger | Content |
| -------: | -------------------- |
| `it→` | it |
| `ito→` | it.only |
| `its→` | it.skip |
| `ita→` | it(..., async ...) |
| `test→` | test |
| `testo→` | test.only |
| `tests→` | test.skip |
| `testa→` | test(..., async ...) |

### Expect

| Trigger | Content |
| -------: | ------- |
| `exp→` | expect |
| `expr→` | expect.resolves |
| `exprj→` | expect.rejects |
| `tb→` | toBe |
| `tbct→` | toBeCloseTo |
| `tbd→` | toBeDefined |
| `tbf→` | toBeFalsy |
| `tbgt→` | toBeGreaterThan |
| `tbgte→` | toBeGreaterThanOrEqual |
| `tbi→` | toBeInstanceOf |
| `tblt→` | toBeLessThan |
| `tblte→` | toBeLessThanOrEqual |
| `tbn→` | toBeNull |
| `tbt→` | toBeTruthy |
| `tbu→` | toBeUndefined |
| `tc→` | toContain |
| `tce→` | toContainEqual |
| `te→` | toEqual |
| `tse→` | toStrictEqual |
| `thbc→` | toHaveBeenCalled |
| `thbct→` | toHaveBeenCalledTimes |
| `thbcw→` | toHaveBeenCalledWith |
| `thblcw→` | toHaveBeenLastCalledWith |
| `thl→` | toHaveLength |
| `thp→` | toHaveProperty |
| `tm→` | toMatch |
| `tmo→` | toMatchObject |
| `tms→` | toMatchSnapshot |
| `tt→` | toThrow |
| `tte→` | toThrowError |
| `ttems→` | toThrowErrorMatchingSnapshot |
| Trigger | Content |
| --------: | ---------------------------- |
| `exp→` | expect |
| `expr→` | expect.resolves |
| `exprj→` | expect.rejects |
| `tb→` | toBe |
| `tbct→` | toBeCloseTo |
| `tbd→` | toBeDefined |
| `tbf→` | toBeFalsy |
| `tbgt→` | toBeGreaterThan |
| `tbgte→` | toBeGreaterThanOrEqual |
| `tbi→` | toBeInstanceOf |
| `tblt→` | toBeLessThan |
| `tblte→` | toBeLessThanOrEqual |
| `tbn→` | toBeNull |
| `tbt→` | toBeTruthy |
| `tbu→` | toBeUndefined |
| `tc→` | toContain |
| `tce→` | toContainEqual |
| `te→` | toEqual |
| `tse→` | toStrictEqual |
| `thbc→` | toHaveBeenCalled |
| `thbct→` | toHaveBeenCalledTimes |
| `thbcw→` | toHaveBeenCalledWith |
| `thblcw→` | toHaveBeenLastCalledWith |
| `thl→` | toHaveLength |
| `thp→` | toHaveProperty |
| `tm→` | toMatch |
| `tmo→` | toMatchObject |
| `tms→` | toMatchSnapshot |
| `tt→` | toThrow |
| `tte→` | toThrowError |
| `ttems→` | toThrowErrorMatchingSnapshot |

### Templates

| Trigger | Content |
| -------: | ------- |
| `cut→` | test a class under test |
| `jfn→` | jest.fn |
| Trigger | Content |
| ------: | ----------------------- |
| `cut→` | test a class under test |
| `jfn→` | jest.fn |

## Settings

Expand All @@ -86,5 +86,5 @@ The `editor.snippetSuggestions` setting in vscode `settings.json` will show snip

## Credits

* Thanks to [xabikos](https://github.com/xabikos) for [vscode-jasmine](https://github.com/xabikos/vscode-jasmine)
* Thanks to [martinlechner1](https://github.com/martinlechner1) for contribution
- Thanks to [xabikos](https://github.com/xabikos) for [vscode-jasmine](https://github.com/xabikos/vscode-jasmine)
- Thanks to [martinlechner1](https://github.com/martinlechner1) for contribution
14 changes: 14 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"publisher": "andys8",
"icon": "images/jest_snippets_icon.png",
"license": "MIT",
"scripts": {
"format": "prettier --write *.md snippets/*"
},
"repository": {
"type": "git",
"url": "https://github.com/andys8/vscode-jest-snippets"
Expand Down Expand Up @@ -39,5 +42,8 @@
"path": "./snippets/snippets.json"
}
]
},
"devDependencies": {
"prettier": "^1.14.2"
}
}
}
Loading

0 comments on commit a661d01

Please sign in to comment.