Some often used shortcuts by the team.
log
Cursor position is located at pipes. Nice for logging thing: thing
.
console.log('| :', |);
here
Great for just marking which line number in which file you've placed this.
console.log('***** Here! -> line #XXX in DIR/FILENAME *****');
tabl
Console log table for a variable.
console.table()
stringy
For getting a formatted json object stringified for display in the console or UI. Cursor will be ready for you to enter the variable to stringify.
JSON.stringify(your_var, null, 2)
Console log table for a variable.
console.table()
jester
Quickly scaffold out a test describe
block with it
statement.
You may TAB through this code to traverse describe, it, and //test
.
describe('', () => {
it('should...', ()=> {
// test
});
});
Please do!