Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Alexandre Alencar aalencar

🏠
Working from home
  • Prague, Czech Republic
View GitHub Profile
@aalencar
aalencar / person.spec.ts
Created Mar 17, 2020
Example on how to better organize your test using Jest
View person.spec.ts
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);
});
@aalencar
aalencar / debug_wave_app.json
Created Apr 12, 2022
VSCode config to debug wave app
View debug_wave_app.json
{
"name": "Debug Wave App",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/py/venv/bin/wave",
"python": "${workspaceFolder}/py/venv/bin/python",
"args": [
"run",
"examples.${fileBasename}"
]