Precise DOM morphing
morphing
typescript
dom
- I’m using bun to manage packages.
- Don’t create a summary document.
- Running all the tests with
bun run testis cheap, so do it all the time. Don’t do too much before running tests. You can also run browser tests withbun run test:browser. - Try to maintain 100% test coverage. Use
bun run test --coverage. - I’m using
jjso you can use that to look at your diff, but please don’t commit unless I ask you to. - Make sure you leave things in a good state. No diagnostics warnings. No type errors.
- We use tabs for indentation and spaces for alignment
- Never say “you’re absolutely right”
- When writing new tests, put them under
test/newand usetestinstead ofit. Try to keep all the setup in the test itself. If you need to share setup between multiple steps, make a function that each test calls.