Precise DOM morphing
morphing typescript dom
at main 7 lines 693 B view raw view rendered
1- I’m using bun to manage packages. 2- Don’t create a summary document. 3- Running all the tests with `bun run test` is cheap, so do it all the time. Don’t do too much before running tests. You can also run browser tests with `bun run test:browser`. 4- Try to maintain 100% test coverage. Use `bun run test --coverage`. 5- Make sure you leave things in a good state. No warnings. No type errors. 6- We use tabs for indentation and sometimes additional spaces for alignment 7- When writing new tests, put them under `test/new` and use `test` instead of `it`. 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.