Problem: We need to rename a DB column, but we want to avoid a breaking change.
Solution:
1. Add new column (Ticket 1)
2. Update all code to reference new column (Ticket 2)
3. Release. Now no code references the old column. 😀
4. Delete the old DB column (Ticket 3)
TIL:
you can optimize your @vitest suite for a few milliseconds by adding comments like "// @vitest-environment jsdom|happydom|node" to your test files:
vitest.dev/guide/environment…
I still prefer to have different vite.config.ts by test type but this can be a handy workaround 🪄
Solemos hablar de testing y muchas veces los ejemplos que vemos nos parecen poco realistas.
"Si intento hacer eso yo donde trabajo…"
Hoy veremos ejemplos prácticos de Approval Testing para validar sistemas legacy sin tests, APIs HTTP, UI, y mucho más gracias a @borillo, invitado de lujo hoy😊
¡Os esperamos en el directo a las 18h CEST!
👇👇👇👇👇👇
youtube.com/watch?v=2mKPEDix…
👆👆👆👆👆👆
TIL: You can forget about using the right command (npm, yarn, pnpm...) when jumping between projects/setups thanks to ni by the great @antfu7
You can also install it in your CI setup so that your CI commands will be package manager agnostic 💫
github.com/antfu/ni
New content: eferro's random stuff: Thin infrastructure wrappers eferro.net/2023/04/thin-infr…@pmareke We will continue the conversation in a few days :)
Likes, RTs, feedback, and comments are welcome.
Esta tarde tenemos un workshop en vivo con la gente de @CodelyTV Vamos a ver programar en directo a @JavierCane y @ronny_ancorini 😱😱
Y lo más importante, si quieres vas a poder seguir el workshop tú también desde casa 👏👏👏
Nos vemos esta tarde!
ALT Thumbnail del vídeo. Mejora tus tests. Ronny, Javi y Pedro en primer plano. Mutantes de X-men por ahí en medio con los logos de TypeScript, Jest, y Stryker
En medio de la vorágine de ChatGPT-4, y las predicciones sobre cómo afectará a nuestra vida, en #bikolabs nos preguntamos si nuestra necesidad de anticiparnos al futuro favorece que HOY se esté usando IA como si fuera una bola de cristal que nos permite predecirlo 🔮🧙♀️ 👇
💡VS Code extension that uses, for instance, @mattpocockuk content as chatGPT promt to allow asking for TS types with natural language.
How are content authors remunerated if someone uses paid content for the prompt? Does it incentivate more open source content?
New blog post:
medium.com/itnext/tailwind-b…
Edge case: I wanted to programatically generate tailwind class names 🤖
Found a creative solution to reduce the css bundle size from 2.5MB to 21kB 📦
It feels a bit over-engineered but maybe could inspire you ✌️
@vitest_dev has this feature to disallow your commit (via lint-staged) when the tests related to your current changes are broken:
vitest.dev/guide/cli.html#vi…
It will be painful if:
- your tests are slow
- your PRs are too big
So it can be a useful tool to enforce good practices.