DEV Community

Dan Greene profile picture

Dan Greene

I love to help teams grow and learn about how to write testable, efficient code that delights users.

Location Greater Philadelphia Area, PA Joined Joined on  github website

Work

UI Architect / Tech Lead / Full-Stack Dev

All 31 comments

Don't use fixtures in Cypress and unit tests- use factories

My apologies for not seeing this question sooner. So I would ...

Why I Decided To Stay A Frontend Engineer And Stopped Searching Full-Stack Jobs

As a frequent interviewer and a full stack dev, I can tell yo...

Wow! Cypress can run unit tests! 🥳

They’re really different tools entirely. I’d recommend you tr...

My Completely Biased Reasons for Choosing Angular

You can easily mock/spy your dependencies without dependency ...

My Completely Biased Reasons for Choosing Angular

You don’t have to use CSS-in-JS with React. In fact, most peo...

Introduction to Micro Frontends with Module Federation, React and Typescript

I feel like a lot of the cons mentioned here are eliminated o...

What are micro frontends?

they can combine existing projects with new ones more easily...

Create Fake Data Easily Using JavaScript

And then the next thing to learn is to use factory functions:...

Status instead of isLoading boolean?

I like that React-query allows for that approach and it works...

Why I moved from Styled Components to (S)CSS modules

I believe there are libraries out there to keep your css clas...

Fixing a 40-year-old Software Bug

I’ve had to fix bugs like this. I feel for you. Fixing a bug ...

Mindblowing 🤯 TypeScript tricks

It might be advisable to share that there’s a reason why Obje...

Using TypeScript without TypeScript 😎

Sure, I hadn’t thought about pushing the transpiration respon...

Using TypeScript without TypeScript 😎

Well, now that Babel can do Typescript transpiration, there r...

Using TypeScript without TypeScript 😎

Many of the projects I’ve seen that use this approach end up ...

Make 2020 brighter --> send an open source maintainer some gratitude

Interestingly enough, I ended up not using Clime and chose OC...

Make 2020 brighter --> send an open source maintainer some gratitude

I'll go first. I found this CLI making tool called clime that...

Does your UI use "build once" for promoting to environments?

Found a great explanation of this problem and the article dat...

Does your UI use "build once" for promoting to environments?

Great, yea I think that’s just one of the responsibilities of...

Does your UI use "build once" for promoting to environments?

Thanks for sharing. Have you thought of a way to motivate any...

Does your UI use "build once" for promoting to environments?

That's an interesting idea. I hadn't thought of a config serv...

⚔️ Cross micro frontends communication 📦

I like the window observable approach you've recommended, but...

⚔️ Cross micro frontends communication 📦

@florianrappl it's a fair point, but at a certain point don'...

Don't use fixtures in Cypress and unit tests- use factories

Thank you kindly Ben. And please ask them to share with other...

'as const' in Typescript, better constant object support in IDE

Hi @tkudlinski , I decided to throw you some attention by lin...

Watch out for fixtures in cypress.io

Really excellent points, but I think the typo aspect points o...

Mocking and Syntax - Comparing Cypress and TestCafe

I enjoyed the article. However, I’m hoping to help move peopl...

Running Cypress against multiple environments

I’ve been using Happo to run my tests on multiple browsers.

Cypress Tests in BDD Style

This is pretty interesting stuff. Now that you’ve tried it a ...

Intellisense for Cypress Fixture Files

Your extension is very cool. I like the ease of use. But ulti...

loading...