UPDATE Novembro/2023:
Atualmente existe uma solução com menos passos de configuração para o mesmo relatório:
export const format = (value) => { | |
let formattedValue | |
formattedValue = value.replace(',', '.') | |
formattedValue = Number(formattedValue.split('$')[1].trim()) | |
formattedValue = String(value).includes('-') ? -formattedValue : formattedValue | |
return formattedValue | |
} |
pool: | |
name: Azure Pipelines | |
#Your build pipeline references the ‘BuildConfiguration’ variable, which you’ve selected to be settable at queue time. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971 | |
#Your build pipeline references the ‘BuildConfiguration’ variable, which you’ve selected to be settable at queue time. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971 | |
steps: | |
- task: DotNetCoreCLI@2 | |
displayName: Restore | |
inputs: | |
command: restore |
UPDATE Novembro/2023:
Atualmente existe uma solução com menos passos de configuração para o mesmo relatório:
//adicionar eval(environment.geraDados) no início do pré-request | |
function gera_random(n) { | |
var ranNum = Math.round(Math.random() * n); | |
return ranNum; | |
} | |
function mod(dividendo, divisor) { | |
return Math.round(dividendo - (Math.floor(dividendo / divisor) * divisor)); | |
} |
{ | |
// Editor | |
"editor.parameterHints.enabled": false, | |
"editor.renderLineHighlight": "gutter", | |
"editor.tabSize": 2, | |
"editor.fontSize": 16, | |
"editor.lineHeight": 26, | |
"editor.fontFamily": "Fira Code", | |
"editor.fontLigatures": true, | |
"editor.suggestSelection": "first", |
{ | |
"References Cypress": { | |
"prefix": "cyref", | |
"body": [ | |
"/// <reference types=\"cypress\" />" | |
], | |
"description": "Adiciona autocomplete comandos Cypress" | |
} | |
} |
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Node.js CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] |
"$schema": "https://raw.githubusercontent.com/cypress-io/cypress/develop/cli/schema/cypress.schema.json" |
# This is a basic workflow to help you get started with Actions | |
name: CI | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
branches: [ main ] | |
pull_request: |