We're assuming you already have node.js installed
npm install -g create-react-app
stage('Clone from git') { | |
stage('test nested stages') { | |
sh 'pwd' | |
} | |
deleteDir() | |
} |
> new RegExp( "/" ) | |
/\// | |
> var x = new RegExp( "/" ) | |
undefined | |
> x.test( "/hello" ) | |
true | |
> var y = new RegExp( x.toString() ) | |
undefined | |
> y.test( "/hello" ) | |
false |
/*eslint-env node*/ | |
/* | |
This class is for: | |
1. Creating Authentication HTTP headers | |
2. Creating Accept-Language headers | |
3. Sending a HTTP request |
Having dived a bit deeper, I'm concluding that there are some design decisions which need to be made here.
For a normal scenario like:
Feature: my feature
Scenario: my scenario
Given step 1
When step 2
Then step 3
function sendJSON( method, data, url ) { | |
return fetch( url, { | |
body: data && JSON.stringify( data ), | |
method: "POST", | |
mode: "cors", | |
headers: { | |
"Content-Type": "application/json" |
fetchForLater().then( resp => { | |
if ( !resp.ok ) { throw new Error( "Failed to fetch for later people" ); } | |
return resp.json(); | |
} ).then( json => { | |
const savedForLater = json.map( ( [ id, person ] ) => person ); | |
this.setState( { saved: savedForLater } ); |