Skip to content

Instantly share code, notes, and snippets.

@nachbarshund
Last active August 13, 2020 07:25
Show Gist options
  • Save nachbarshund/ba962ca4a98996529cbb1442ac649fee to your computer and use it in GitHub Desktop.
Save nachbarshund/ba962ca4a98996529cbb1442ac649fee to your computer and use it in GitHub Desktop.
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-08-13T07:24:58.506Z","extensionVersion":"v3.4.3"}
[
{
"metadata": {
"id": "1a507ad2-e358-48d8-89fe-f37b12bfff76",
"publisherId": "zovorap.ab-html-formatter",
"publisherDisplayName": "zovorap"
},
"name": "ab-html-formatter",
"publisher": "zovorap",
"version": "0.0.2"
},
{
"metadata": {
"id": "2e9fe0cb-4e63-42fc-a809-fb056aad49c3",
"publisherId": "stevencl.addDocComments",
"publisherDisplayName": "stevencl"
},
"name": "addDocComments",
"publisher": "stevencl",
"version": "0.0.8"
},
{
"metadata": {
"id": "e0b91637-e16b-4a66-b531-4459c494f514",
"publisherId": "cyrilletuzi.angular-schematics",
"publisherDisplayName": "cyrilletuzi"
},
"name": "angular-schematics",
"publisher": "cyrilletuzi",
"version": "4.3.0"
},
{
"metadata": {
"id": "554e8aa9-c5e0-46a0-8b34-50ae047eb036",
"publisherId": "stringham.angular-template-formatter",
"publisherDisplayName": "stringham"
},
"name": "angular-template-formatter",
"publisher": "stringham",
"version": "0.1.2"
},
{
"metadata": {
"id": "214cbfb9-7c06-4467-bad4-357ae83eb587",
"publisherId": "johnpapa.Angular2",
"publisherDisplayName": "johnpapa"
},
"name": "Angular2",
"publisher": "johnpapa",
"version": "9.1.2"
},
{
"metadata": {
"id": "fa57ae0e-d21e-40d8-a0bb-a58b5fd9ead3",
"publisherId": "ms-vscode.atom-keybindings",
"publisherDisplayName": "ms-vscode"
},
"name": "atom-keybindings",
"publisher": "ms-vscode",
"version": "3.0.8"
},
{
"metadata": {
"id": "d3836729-9cc1-42c1-b2af-d50071f57d29",
"publisherId": "formulahendry.auto-close-tag",
"publisherDisplayName": "formulahendry"
},
"name": "auto-close-tag",
"publisher": "formulahendry",
"version": "0.5.8"
},
{
"metadata": {
"id": "697255a9-3f36-44c8-b084-d3b91edfb23a",
"publisherId": "HookyQR.beautify",
"publisherDisplayName": "HookyQR"
},
"name": "beautify",
"publisher": "HookyQR",
"version": "1.5.0"
},
{
"metadata": {
"id": "86968fd3-6e16-461b-9ebf-6103ed8debad",
"publisherId": "RamiroBerrelleza.bitbucket-pull-requests",
"publisherDisplayName": "RamiroBerrelleza"
},
"name": "bitbucket-pull-requests",
"publisher": "RamiroBerrelleza",
"version": "0.3.10"
},
{
"metadata": {
"id": "9af62ee3-0097-4b7b-891a-4a94eb3e1009",
"publisherId": "yummygum.city-lights-theme",
"publisherDisplayName": "yummygum"
},
"name": "city-lights-theme",
"publisher": "yummygum",
"version": "1.1.8"
},
{
"metadata": {
"id": "ed00e895-9cee-4f55-abb9-a5b77409b61d",
"publisherId": "markis.code-coverage",
"publisherDisplayName": "markis"
},
"name": "code-coverage",
"publisher": "markis",
"version": "1.2.3"
},
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.4.3"
},
{
"metadata": {
"id": "f6dbd813-b0a0-42c1-90ea-10dde9d925a7",
"publisherId": "streetsidesoftware.code-spell-checker",
"publisherDisplayName": "streetsidesoftware"
},
"name": "code-spell-checker",
"publisher": "streetsidesoftware",
"version": "1.9.0"
},
{
"metadata": {
"id": "911799f7-d784-4bdc-982b-f78afd435187",
"publisherId": "streetsidesoftware.code-spell-checker-german",
"publisherDisplayName": "streetsidesoftware"
},
"name": "code-spell-checker-german",
"publisher": "streetsidesoftware",
"version": "0.1.4"
},
{
"metadata": {
"id": "121396ad-85a1-45ec-9fd1-d95028a847f5",
"publisherId": "naumovs.color-highlight",
"publisherDisplayName": "naumovs"
},
"name": "color-highlight",
"publisher": "naumovs",
"version": "2.3.0"
},
{
"metadata": {
"id": "0fd4a2e2-f7b7-430e-8ba0-3b44ddfb43f5",
"publisherId": "Compulim.compulim-vscode-closetag",
"publisherDisplayName": "Compulim"
},
"name": "compulim-vscode-closetag",
"publisher": "Compulim",
"version": "1.2.0"
},
{
"metadata": {
"id": "a63b93c7-6024-45ff-92b2-71a271f20537",
"publisherId": "dotcypress.console-log",
"publisherDisplayName": "dotcypress"
},
"name": "console-log",
"publisher": "dotcypress",
"version": "0.6.2"
},
{
"metadata": {
"id": "e3e39410-f11e-48cb-88d0-cd20b9195144",
"publisherId": "WooodHead.disable-eslint-rule",
"publisherDisplayName": "WooodHead"
},
"name": "disable-eslint-rule",
"publisher": "WooodHead",
"version": "0.0.2"
},
{
"metadata": {
"id": "532533c9-a894-4a58-9eee-bbfbe7c06f71",
"publisherId": "mikestead.dotenv",
"publisherDisplayName": "mikestead"
},
"name": "dotenv",
"publisher": "mikestead",
"version": "1.0.1"
},
{
"metadata": {
"id": "f60a60a6-95ba-42d4-b41c-3d24c1b89588",
"publisherId": "EditorConfig.EditorConfig",
"publisherDisplayName": "EditorConfig"
},
"name": "EditorConfig",
"publisher": "EditorConfig",
"version": "0.15.1"
},
{
"metadata": {
"id": "9d8c32ab-354c-4daf-a9bf-20b633734435",
"publisherId": "usernamehw.errorlens",
"publisherDisplayName": "usernamehw"
},
"name": "errorlens",
"publisher": "usernamehw",
"version": "3.2.0"
},
{
"metadata": {
"id": "da88ed17-dd66-424b-8d92-d6a2222ac171",
"publisherId": "oliversturm.fix-json",
"publisherDisplayName": "oliversturm"
},
"name": "fix-json",
"publisher": "oliversturm",
"version": "0.1.2"
},
{
"metadata": {
"id": "d6dc08a8-8614-47e3-9bd0-75dba31d4d9b",
"publisherId": "shaharkazaz.git-merger",
"publisherDisplayName": "shaharkazaz"
},
"name": "git-merger",
"publisher": "shaharkazaz",
"version": "0.4.1"
},
{
"metadata": {
"id": "6d2b4ef2-1d6d-4a1f-91fb-29fcadfb4b0a",
"publisherId": "vector-of-bool.gitflow",
"publisherDisplayName": "vector-of-bool"
},
"name": "gitflow",
"publisher": "vector-of-bool",
"version": "1.2.1"
},
{
"metadata": {
"id": "5960f38e-0bbe-4644-8f9c-9c8824e82511",
"publisherId": "donjayamanne.githistory",
"publisherDisplayName": "donjayamanne"
},
"name": "githistory",
"publisher": "donjayamanne",
"version": "0.6.9"
},
{
"metadata": {
"id": "7328a705-91fc-49e6-8293-da6f112e482d",
"publisherId": "GitHub.github-vscode-theme",
"publisherDisplayName": "GitHub"
},
"name": "github-vscode-theme",
"publisher": "GitHub",
"version": "1.1.3"
},
{
"metadata": {
"id": "4de763bd-505d-4978-9575-2b7696ecf94e",
"publisherId": "eamodio.gitlens",
"publisherDisplayName": "eamodio"
},
"name": "gitlens",
"publisher": "eamodio",
"version": "10.2.2"
},
{
"metadata": {
"id": "9e69a2cb-2094-4a0a-8777-93aae5432a49",
"publisherId": "AndersEAndersen.html-class-suggestions",
"publisherDisplayName": "AndersEAndersen"
},
"name": "html-class-suggestions",
"publisher": "AndersEAndersen",
"version": "1.0.7"
},
{
"metadata": {
"id": "be992f3f-9f22-4b66-a1d2-ecad04c28a28",
"publisherId": "abusaidm.html-snippets",
"publisherDisplayName": "abusaidm"
},
"name": "html-snippets",
"publisher": "abusaidm",
"version": "0.2.1"
},
{
"metadata": {
"id": "236ff452-49f5-47a4-8928-ab18f5b9c7bf",
"publisherId": "eriklynd.json-tools",
"publisherDisplayName": "eriklynd"
},
"name": "json-tools",
"publisher": "eriklynd",
"version": "1.0.2"
},
{
"metadata": {
"id": "3b1db1fc-c7f7-4bd6-9fa4-b499dfa99a8a",
"publisherId": "shd101wyy.markdown-preview-enhanced",
"publisherDisplayName": "shd101wyy"
},
"name": "markdown-preview-enhanced",
"publisher": "shd101wyy",
"version": "0.5.12"
},
{
"metadata": {
"id": "5cbdf58a-694a-4aba-af08-61d00842eb03",
"publisherId": "bierner.markdown-preview-github-styles",
"publisherDisplayName": "bierner"
},
"name": "markdown-preview-github-styles",
"publisher": "bierner",
"version": "0.1.6"
},
{
"metadata": {
"id": "4bf45e86-a448-4531-8c01-ef33f4536306",
"publisherId": "ms-mssql.mssql",
"publisherDisplayName": "ms-mssql"
},
"name": "mssql",
"publisher": "ms-mssql",
"version": "1.9.0"
},
{
"metadata": {
"id": "acfa08ec-e98b-4b39-8561-1bf1938e71da",
"publisherId": "jakebathman.mysql-syntax",
"publisherDisplayName": "jakebathman"
},
"name": "mysql-syntax",
"publisher": "jakebathman",
"version": "1.3.1"
},
{
"metadata": {
"id": "e58f546c-babc-455f-a265-ba40dbd140d4",
"publisherId": "sdras.night-owl",
"publisherDisplayName": "sdras"
},
"name": "night-owl",
"publisher": "sdras",
"version": "1.1.3"
},
{
"metadata": {
"id": "6f35c257-7fd5-4bc2-9cd1-01976589c17a",
"publisherId": "arcticicestudio.nord-visual-studio-code",
"publisherDisplayName": "arcticicestudio"
},
"name": "nord-visual-studio-code",
"publisher": "arcticicestudio",
"version": "0.14.0"
},
{
"metadata": {
"id": "65fca382-b0d0-438c-894a-ea55e4fda477",
"publisherId": "dnlytras.nord-wave",
"publisherDisplayName": "dnlytras"
},
"name": "nord-wave",
"publisher": "dnlytras",
"version": "0.3.4"
},
{
"metadata": {
"id": "dff6b801-247e-40e9-82e8-8c9b1d19d1b8",
"publisherId": "christian-kohler.npm-intellisense",
"publisherDisplayName": "christian-kohler"
},
"name": "npm-intellisense",
"publisher": "christian-kohler",
"version": "1.3.0"
},
{
"metadata": {
"id": "2a3e1925-d174-4cd7-baa7-3e13824d68c7",
"publisherId": "ronnidc.nunjucks",
"publisherDisplayName": "ronnidc"
},
"name": "nunjucks",
"publisher": "ronnidc",
"version": "0.3.0"
},
{
"metadata": {
"id": "4386e6f6-ec10-4463-9d23-c24278718947",
"publisherId": "tomoki1207.pdf",
"publisherDisplayName": "tomoki1207"
},
"name": "pdf",
"publisher": "tomoki1207",
"version": "1.1.0"
},
{
"metadata": {
"id": "d80b9a94-f4a6-4e39-bc42-62212e365682",
"publisherId": "pnp.polacode",
"publisherDisplayName": "pnp"
},
"name": "polacode",
"publisher": "pnp",
"version": "0.3.4"
},
{
"metadata": {
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90",
"publisherId": "esbenp.prettier-vscode",
"publisherDisplayName": "esbenp"
},
"name": "prettier-vscode",
"publisher": "esbenp",
"version": "5.1.3"
},
{
"metadata": {
"id": "67e66172-30c7-4478-8f5d-6eac4ae755dc",
"publisherId": "mohsen1.prettify-json",
"publisherDisplayName": "mohsen1"
},
"name": "prettify-json",
"publisher": "mohsen1",
"version": "0.0.3"
},
{
"metadata": {
"id": "f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5",
"publisherId": "ms-python.python",
"publisherDisplayName": "ms-python"
},
"name": "python",
"publisher": "ms-python",
"version": "2020.7.96456"
},
{
"metadata": {
"id": "ffb0fdce-1a37-40ee-9d88-5e20f2fb0094",
"publisherId": "artdiniz.quitcontrol-vscode",
"publisherDisplayName": "artdiniz"
},
"name": "quitcontrol-vscode",
"publisher": "artdiniz",
"version": "3.1.3"
},
{
"metadata": {
"id": "3792588c-3d35-442d-91ea-fe6a755e8155",
"publisherId": "mechatroner.rainbow-csv",
"publisherDisplayName": "mechatroner"
},
"name": "rainbow-csv",
"publisher": "mechatroner",
"version": "1.7.1"
},
{
"metadata": {
"id": "997fc03c-d81e-4815-8bd1-2c4f9a1ac1a5",
"publisherId": "glen-84.sass-lint",
"publisherDisplayName": "glen-84"
},
"name": "sass-lint",
"publisher": "glen-84",
"version": "1.0.6"
},
{
"metadata": {
"id": "a7fa941e-bcda-486f-8141-8483a6286177",
"publisherId": "SonarSource.sonarlint-vscode",
"publisherDisplayName": "SonarSource"
},
"name": "sonarlint-vscode",
"publisher": "SonarSource",
"version": "1.17.0"
},
{
"metadata": {
"id": "1e0f6104-ad31-4640-9fb7-6d7ac7edb90d",
"publisherId": "jonkwheeler.styled-components-snippets",
"publisherDisplayName": "jonkwheeler"
},
"name": "styled-components-snippets",
"publisher": "jonkwheeler",
"version": "0.6.0"
},
{
"metadata": {
"id": "51cd7dfb-14fa-4fcc-aa42-16add9281456",
"publisherId": "SimonSiefke.svg-preview",
"publisherDisplayName": "SimonSiefke"
},
"name": "svg-preview",
"publisher": "SimonSiefke",
"version": "2.8.3"
},
{
"metadata": {
"id": "261cac81-cd7b-4555-bb41-0c2d2bcd3e70",
"publisherId": "Gruntfuggly.todo-tree",
"publisherDisplayName": "Gruntfuggly"
},
"name": "todo-tree",
"publisher": "Gruntfuggly",
"version": "0.0.178"
},
{
"metadata": {
"id": "6623619a-676d-4cde-943f-a3c193b44fc0",
"publisherId": "ChakrounAnas.turbo-console-log",
"publisherDisplayName": "ChakrounAnas"
},
"name": "turbo-console-log",
"publisher": "ChakrounAnas",
"version": "1.4.0"
},
{
"metadata": {
"id": "0479fc1c-3d67-49f9-b087-fb9069afe48f",
"publisherId": "ms-azuretools.vscode-docker",
"publisherDisplayName": "ms-azuretools"
},
"name": "vscode-docker",
"publisher": "ms-azuretools",
"version": "1.4.1"
},
{
"metadata": {
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a",
"publisherId": "dbaeumer.vscode-eslint",
"publisherDisplayName": "dbaeumer"
},
"name": "vscode-eslint",
"publisher": "dbaeumer",
"version": "2.1.8"
},
{
"metadata": {
"id": "69ddd764-339a-4ecc-97c1-9c4ece58e36d",
"publisherId": "GitHub.vscode-pull-request-github",
"publisherDisplayName": "GitHub"
},
"name": "vscode-pull-request-github",
"publisher": "GitHub",
"version": "0.18.0"
},
{
"metadata": {
"id": "06cc3e44-aedb-41b8-a4ea-29ebf3c491fd",
"publisherId": "jpoissonnier.vscode-styled-components",
"publisherDisplayName": "jpoissonnier"
},
"name": "vscode-styled-components",
"publisher": "jpoissonnier",
"version": "0.0.29"
},
{
"metadata": {
"id": "97a08c5f-6667-4242-a5c5-045dfb6bd4b9",
"publisherId": "wayou.vscode-todo-highlight",
"publisherDisplayName": "wayou"
},
"name": "vscode-todo-highlight",
"publisher": "wayou",
"version": "1.0.4"
},
{
"metadata": {
"id": "07fc4a0a-11fc-4121-ba9a-f0d534c729d8",
"publisherId": "pflannery.vscode-versionlens",
"publisherDisplayName": "pflannery"
},
"name": "vscode-versionlens",
"publisher": "pflannery",
"version": "1.0.8"
}
]
[
{
"key": "cmd+shift+j",
"command": "workbench.action.terminal.focusNext"
},
{
"key": "cmd+shift+k",
"command": "workbench.action.terminal.focusPrevious"
},
{
"key": "cmd+shift+m",
"command": "workbench.action.toggleMaximizedPanel"
},
{
"key": "cmd+shift+s",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "shift+cmd+i",
"command": "editor.action.previousMatchFindAction",
"when": "editorFocus"
},
{
"key": "shift+cmd+g",
"command": "-editor.action.previousMatchFindAction",
"when": "editorFocus"
},
{
"key": "alt+cmd+g",
"command": "editor.action.selectHighlights",
"when": "editorFocus"
},
{
"key": "ctrl+cmd+g",
"command": "-editor.action.selectHighlights",
"when": "editorFocus"
},
{
"key": "shift+cmd+7",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+7",
"command": "-editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+8",
"command": "editor.action.commentLine",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+7",
"command": "-editor.action.commentLine",
"when": "editorTextFocus"
},
{
"key": "cmd+k shift+cmd+7",
"command": "-editor.foldAllBlockComments",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+9",
"command": "editor.emmet.action.toggleComment"
},
{
"key": "ctrl+n",
"command": "explorer.newFile"
},
{
"key": "ctrl+alt+cmd+f",
"command": "editor.foldAllBlockComments",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k shift+cmd+7",
"command": "-editor.foldAllBlockComments",
"when": "editorTextFocus && foldingEnabled"
}
]
{
/*
STYLING
*/
"workbench.colorCustomizations": {
"editor.selectionHighlightBackground": "#0b693d2d",
"editor.selectionBackground": "#1771c5d0",
"terminal.border": "#353535",
"diffEditor.removedTextBackground": "#ff00000d",
"diffEditor.insertedTextBackground": "#00800047"
},
"terminal.integrated.fontFamily": "Meslo LG M DZ for Powerline",
/*
LINTER
*/
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "typescript",
"autoFix": true
},
{
"language": "typescriptreact",
"autoFix": true
}
],
"eslint.autoFixOnSave": true,
/*
TODO PLUGIN
*/
"todo-tree.showCountsInTree": true,
"editor.tabSize": 2,
"workbench.editor.tabSizing": "shrink",
"typescript.preferences.importModuleSpecifier": "non-relative",
"gitlens.keymap": "alternate",
"javascript.updateImportsOnFileMove.enabled": "never",
"editor.tokenColorCustomizations": {
"comments": "#9e9e9e78",
"textMateRules": [
{
"scope": "comment",
"settings": {
"fontStyle": "italic"
}
}
]
},
"todohighlight.isEnable": true,
"todohighlight.isCaseSensitive": true,
"todohighlight.defaultStyle": {
"backgroundColor": "#ffab00"
},
"todohighlight.keywords": [
"DEBUG:",
"REVIEW:",
"NOTE:",
"TODO:",
{
"text": "OPTIMIZE:",
"color": "white",
"backgroundColor": "purple"
},
{
"text": "FIXME:",
"color": "white",
"backgroundColor": "red",
"isWholeLine": false
},
{
"text": "NOTE:",
"color": "white",
"backgroundColor": "darkblue",
"isWholeLine": false
}
],
// this isn't really underline but we hack it to be a thicker cursor
"editor.cursorStyle": "line",
"editor.wordWrap": "on",
"editor.multiCursorModifier": "ctrlCmd",
"editor.fontWeight": "400",
"editor.cursorBlinking": "expand",
"editor.colorDecorators": false,
"editor.minimap.enabled": false,
"workbench.activityBar.visible": true,
"workbench.sideBar.location": "left",
"editor.renderWhitespace": "none",
"editor.rulers": [
80,
100,
120
],
"editor.minimap.showSlider": "always",
"workbench.startupEditor": "newUntitledFile",
"extensions.ignoreRecommendations": false,
"workbench.editor.tabCloseButton": "off",
// show snippets before any other auto completion
"editor.snippetSuggestions": "top",
// this lets you quick open multiple items in a row and now have the previous ones closed on you
"workbench.editor.enablePreviewFromQuickOpen": false,
"window.title": "${dirty} ${activeEditorMedium}${separator}${rootName}",
"atomKeymap.promptV3Features": true,
"window.zoomLevel": 0,
"editor.autoIndent": true,
"git.enableSmartCommit": true,
"workbench.colorTheme": "Nord",
"gitlens.advanced.messages": {
"suppressShowKeyBindingsNotice": true,
"suppressWelcomeNotice": true
},
"terminal.integrated.rendererType": "dom",
"explorer.confirmDragAndDrop": false,
"workbench.statusBar.feedback.visible": false,
"git.confirmSync": false,
"[sql]": {},
"todo-tree.defaultHighlight": {
"foreground": "green",
"type": "none"
},
"todo-tree.customHighlight": {
"TODO": {},
"FIXME": {}
},
"files.associations": {
"*.template": "json",
"Fastfile": "ruby",
"Matchfile": "ruby",
"*.ts": "typescript"
},
"gitlens.views.fileHistory.enabled": true,
"gitlens.views.lineHistory.enabled": true,
"sshfs.configs": [
{
"label": "AWS ECS Server (webCIT) - /usr/local",
"name": "usr/local"
},
{
"host": "35.156.185.248",
"label": "AWS ECS Server (webCIT) - /etc",
"name": "webcit-/etc",
"password": true,
"port": 22,
"root": "/etc",
"username": "nachbarshund"
},
{
"host": "35.156.185.248",
"label": "AWS ECS Server (webCIT) - /",
"name": "root",
"password": true,
"root": "/",
"username": "nachbarshund"
}
],
"eslint.packageManager": "yarn",
"git.autofetch": true,
"typescript.updateImportsOnFileMove.enabled": "never",
"editor.formatOnPaste": true,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"javascript.suggest.autoImports": false,
"files.exclude": {
"**/.DS_Store": true,
"**/.hg": true,
"**/.svn": true,
"**/bower_components": true,
"**/CVS": true
},
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/bower_components/**": true,
"**/dist/**": true
},
"typescript.disableAutomaticTypeAcquisition": true,
"typescript.tsserver.log": "verbose",
"tslint.configFile": "./tslint.json",
"tslint.alwaysShowRuleFailuresAsWarnings": true,
"yaml.schemas": {
"file:///Users/christopher/.vscode/extensions/atlassian.atlascode-1.4.0/resources/schemas/pipelines-schema.json": "bitbucket-pipelines.yml"
},
"prettier.requireConfig": true,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"eslint.alwaysShowStatus": true,
"editor.fontFamily": "\"Dank Mono\", Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 14,
"todo-tree.highlights.customHighlight": {
"TODO": {},
"FIXME": {}
},
"todo-tree.highlights.defaultHighlight": {
"foreground": "green",
"type": "none"
},
"todo-tree.tree.showCountsInTree": true,
"html.format.enable": false,
"[nunjucks]": {},
"python.jediEnabled": false,
"search.searchOnType": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"sync.gist": "ba962ca4a98996529cbb1442ac649fee",
"sync.forceUpload": true,
"sync.autoUpload": true,
"prettier.packageManager": "yarn",
"prettier.singleQuote": true,
"prettier.semi": false,
"editor.formatOnSave": true,
"files.insertFinalNewline": true,
"todo-tree.tree.showScanModeButton": false,
"search.exclude": {
"**/*.code-search": false,
"**/bower_components": false,
"**/coverage": true,
"**/node_modules": false
},
"gitlens.views.repositories.branches.layout": "list",
"diffEditor.ignoreTrimWhitespace": false,
"json.schemas": [
],
"sonarlint.ls.javaHome": "/Users/chzo2309/.vscode/extensions/sonarsource.sonarlint_managed-jre/jre/jdk-11.0.7+10-jre/Contents/Home",
"python.languageServer": "Microsoft",
"editor.semanticTokenColorCustomizations": null,
"workbench.colorCustomizations": {
"panel.dropBorder": "#00AA00"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"cSpell.userWords": [
"berpr",
"checkmark",
"deine",
"digie",
"eingaben",
"fe",
"firstname",
"formdata",
"lastname",
"lieferadresse",
"rechnungs",
"schicken",
"selfcare",
"speichern",
"zahlungsdaten",
"zusammenfassung",
"überprüfe"
]
}
{
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
}
// Modules
import React from "react";
import * as Redux from "react-redux";
// Utils
import { fireEvent, renderWithRouteAndRedux
} from "utils/test-utils";
// Component
import ExampleComponent from "./example";
// Helper
const renderComponent = (props = {}) =>
renderWithRouteAndRedux(<ExampleComponent {...props
} />);
// Mocks
const mockedDispatcher = jest.fn();
Redux.useDispatch = () => mockedDispatcher;
// Tests
describe("Tests for <ExampleComponent />", () => {
it("Render with defaults (without crashing + snapshot)", () => {
const { container
} = renderComponent();
expect(container).toMatchSnapshot();
});
it("Default status is inactive", () => {
const labelIsInactive = "Custom inactive";
const { getByText
} = renderComponent({ labelIsInactive
});
expect(getByText(labelIsInactive)).toBeInTheDocument();
});
it("Status will update after click the button", () => {
const labelIsInactive = "Custom inactive";
const labelIsActive = "Custom is ative";
const { getByText, getByTestId
} = renderComponent({
labelIsInactive,
labelIsActive
});
// First it should be inactive
expect(getByText(labelIsInactive)).toBeInTheDocument();
// Click the button
const button = getByTestId(/toolkit-clickable-text/);
expect(button).toBeTruthy();
fireEvent.click(button);
// Check if status switch to active and display correct message
expect(getByText(labelIsActive)).toBeInTheDocument();
expect(getByText(labelIsInactive)).not.toBeInTheDocument();
// Check if dispatch was successfull
expect(mockedDispatcher).toHaveBeenCalledWith({
type: "USER_UPDATE_STATUS",
payload: { status: true
}
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment