Skip to content

Instantly share code, notes, and snippets.

@drunewin
drunewin / use-react-element.ts
Created November 16, 2024 02:37
Codemod that migrates deprecated JSX.Element type to ReactElement
// Generated by Copilot
import { API, FileInfo, Options } from 'jscodeshift';
export default function transformer(file: FileInfo, api: API, options: Options) {
const j = api.jscodeshift;
const root = j(file.source);
// Check if JSX.Element is used
const jsxElementUsage = root.find(j.TSTypeReference, {
@drunewin
drunewin / SketchSystems.spec
Last active July 15, 2020 03:24 — forked from ryanlucas/SketchSystems.spec
Embedding Figma frames*
Embedding Figma frames*
Default*
click Tickets -> Tickets
Tickets
click Shop -> Shop
@drunewin
drunewin / SketchSystems.spec
Last active July 15, 2020 03:36
Activity Tab
Activity Tab
Default view*
tap card -> Card details modal
Card details modal
tap close btn -> Default view
@drunewin
drunewin / SketchSystems.spec
Last active November 19, 2019 22:06
Unlinked Home Screen
Unlinked Home Screen
add benefits pressed -> Linking Flow
Linking Flow
Verify Birthday*
submitted valid and unknown email -> Verify Last 4 SSN
submitted valid and known email -> Onboarding Flow
submitted invalid -> Verify Birthday with Error Msg
Verify Birthday with Error Msg
submitted valid and unknown email -> Verify Last 4 SSN