Shows a list of all node processes and lets you select which one you want to debug.
For example
$ debug.sh
1) 73428 node webpack/webpackDevServer.js
2) 73494 node build/dist/server.js
Select which process to debug: █
'use strict'; | |
let fact = (() => { | |
var _ref = _asyncToGenerator(function* () { | |
const response = yield fetch('https://catfact.ninja/fact'); | |
const data = yield response.json(); | |
return data.fact; | |
}); | |
return function fact() { |
async function fact() { | |
const response = await fetch('https://catfact.ninja/fact') | |
const data = await response.json() | |
return data.fact | |
} |
//////// CONFIG ///////// | |
// your first direct user name | |
const username = '' | |
// your password (the one it asks for characters from) | |
const password = '' | |
// your memorable word | |
const memorable = '' | |
// set to false if you want to see the browser window as it runs | |
const headless = true |
Shows a list of all node processes and lets you select which one you want to debug.
For example
$ debug.sh
1) 73428 node webpack/webpackDevServer.js
2) 73494 node build/dist/server.js
Select which process to debug: █
// a very short Cypress test suite | |
describe('Admin user', () => { | |
it('Create posts journey', () => { | |
const postTitle = 'Hello testing' | |
cy.get('input[id=title]').type(postTitle) | |
cy.get('button[title=Create]').click() | |
cy.get('table tr:last label').should('contain', postTitle) | |
}) | |
}) |
// a very short TestCafe test suite | |
fixture('Admin user') | |
test('Create posts journey', t => { | |
const postTitle = 'Hello testing' | |
return t | |
.typeText(ReactSelector('PostCreator FormControl'), postTitle) | |
.click(ReactSelector('PostCreator Button')) | |
.expect(ReactSelector('Post').first().find('label').innerText) | |
.eql(postTitle) | |
}) |
Demo showing that by specifying a resolver for a scalar property, you can override the value.
This is useful for authorization as it means you can centrally check permissions per field. Your general resolvers can return whole objects without caring about which fields the current user may or may not be allowed to see.
I hereby claim:
To claim this, I am signing this object:
pull-modules () { | |
BASE_DIR=$(pwd) | |
# find symlinks in node_modules | |
for MODULE in $(find node_modules -type l -depth 1) | |
do | |
cd "$MODULE" | |
BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
echo "Updating $MODULE ($BRANCH)..." |