Run the following command to get coverage with your normal jest tests
npm run test -- --coverage .
You can shift this into the scripts section of package.json too, e.g.
"test:coverage": "react-scripts test --coverage ."
| { | |
| "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
| "version": 2, | |
| "final_space": true, | |
| "secondary_prompt": { | |
| "background": "transparent", | |
| "foreground": "#ffffff", | |
| "template": "-> " | |
| }, | |
| "blocks": [ |
| #!/bin/zsh | |
| echo "Enter a Conventional Commit type (feat, fix, docs, style, refactor, test or chore):" | |
| read type | |
| echo "Enter a Conventional Commit scope if needed or just press Enter (e.g. Frontend, Backend, UI, etc.):" | |
| read scope | |
| echo "Enter a branch name (ideally just the JIRA number or starting with it):" | |
| read branch_name |
Install the CLI and then follow configure steps below https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html
If you have your old config / credentials, copy into C:\Users<userid>.aws\
Install
| param( | |
| [String]$ProjectNameToDecommission, | |
| [String]$SourceAccountName, | |
| [String]$SourceAccountKey, | |
| [String]$DestinationAccountKey, | |
| [Int32]$MaxCount=100 # Number of containers to move at a time | |
| ) | |
| $DestinationAccountName="nameofdestinationaccount" # We'll always use this account | |
| if ($SourceAccountName -eq $DestinationAccountName) { |
| $folder="I:\Folder\Location"; # Directory to place the new folders in. | |
| $txtFile="I:\Folder\Location\The List.txt"; # File with list of new folder-names | |
| $pattern="\d+.+"; # Pattern that lines must match | |
| get-content $txtFile | %{ | |
| if($_ -match $pattern) | |
| { | |
| mkdir "$folder\$_"; |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Document</title> | |
| <style> | |
| body { | |
| font-size: 62.5%; | |
| } |
| # Log in to Portal | |
| $vars = @{UserName='username';Password='********'} # Fieldnames may change with different forms | |
| $login = Invoke-WebRequest https://site.com/Auth/LogOn -SessionVariable sv # Save session in 'sv' | |
| $mainPage = Invoke-WebRequest https://site.com/Auth/Logon -WebSession $sv -Body $vars -Method Post | |
| # RegEx Stuff to strip filenames | |
| $pattern = '[^a-zA-Z]' | |
| # Open the CSV (From a Table export linked to File Ids, assuming file download at known URL+Id) | |
| $path = "C:\Path\To\CSV\export.csv" |
| (dir -include *.cs,*.html,*.cshtml,*.config,*.json,*.css,*.js,*.sql -recurse | select-string .).Count |
| // Place your settings in this file to overwrite the default settings | |
| { | |
| "externalTerminal.windowsExec": "powershell", | |
| "eslint.enable": true, | |
| "eslint.options": { | |
| "rules": { | |
| /* airbnb style rules */ | |
| // enforce spacing inside array brackets |