Skip to content

Instantly share code, notes, and snippets.

View aalencar's full-sized avatar
✌️

Alex Alencar aalencar

✌️
View GitHub Profile
@aalencar
aalencar / debug_wave_app.json
Created April 12, 2022 07:46
VSCode config to debug wave app
{
"name": "Debug Wave App",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/py/venv/bin/wave",
"python": "${workspaceFolder}/py/venv/bin/python",
"args": [
"run",
"examples.${fileBasename}"
]
@aalencar
aalencar / person.spec.ts
Created March 17, 2020 20:26
Example on how to better organize your test using Jest
describe('Person', () => {
describe('#setName', () => {
it('should set name when name is passed', () => {
const person = new Person();
const name = 'Alex';
person.setName(name);
expect(person.name).toBe(name);
});