🎉 Snapshots testing is coming to @CraftCMS!
It's already in PEST but github.com/markhuot/craft… puts some nice Craft-y goodness on top of them.
Match any response, template, DOM node, or Element/Entry to a snapshot!
All normalized databases will eventually denormalize in to key/value caches of specific data needs.
Instead of `post.authors[0].organization.title` I always end up with `post.authorOrgTitle`. ¯\_(ツ)_/¯
Snapshot testing in PEST is great for @CraftCMS migrations. Here I run an import, confirm the import count, and expect that each entry matches the previous snapshot. Now I can change my feed or adjust my transformers with full confidence!
craft-pest.com/snapshots.html
ChatGPT feels impressive when I’m asking it questions about a topic I don’t know anything about.
But once I start asking questions about complex problems that I understand, it feels like I’m talking to someone who is just randomly Googling for answers to my questions.
I'd like to re-record this for Laravel using a traditional request/response/turbo. I know I'll come up against a bunch of focus/UX issues that Remix is able to handle out of the box. Still, would be fun to see how far stock Laravel gets you.
Can anyone tell me why `await $nextTick()` does not focus the input in this example? I think I'm doing exactly what the docs explain…
codepen.io/markhuot/pen/J…
I read a couple tweets about Zuck feeding his cows macadamia nuts and now I’m getting nonstop ads for nuts. And now I’ve tweeted about nuts so here come even more targeted ads and now…
Woo! Arc on iOS supports iOS-native password vault. Just got 1000% easier to switch to Arc.
(I wish they had a webkit-based desktop build now too and I'd be _all_ in on all my devices)
Any @CraftCMS developers know of a good way to type an EntryQuery for custom fields?
I have CustomFieldBehavior typed on to craft\elements\Entry so I can $entry->customField without issue.
But now I want to Entry::find()->customField($value)->one()
Is it crazy that I would love a Terraform as a Service. Something where I can interact with a UI to make all the changes I would normally make in Cloudflare or AWS UIs but those changes are persisted to .tf files and synced to some SCM for me?
Not going to lie. I'm loving queue handling in `craft-pest` now. It's sort of an e2e test masquerading as a unit test but I don't care. The unit of work is saving an entry. I want to test that saving an entry calls the correct queue jobs.