Git Product home page Git Product logo

ama's Introduction

ama's People

Contributors

sapegin avatar sindresorhus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ama's Issues

How to find a job in Europe/Germany

Hey, it's me again with almost the same question.

So now I'm considering moving to Berlin and I would like to find a job there as a frontend developer, I'm afraid to send CV to big companies like MS, Amazon, Here etc because I don't feel I'm good enough, but I definitely find at a job there, so what would be your advice, where to start? could you please share how you found the job in Berlin?

react-testing-library

Hi Artem,

I am doing a POC on UTC automation for one of the projects and I am running into some issues and was hoping if you could please take out some time to help me with the same.

I am planning on using this in my office project. We have not decided yet on what to use with Jest. But I am doing a POC and writing these test cases. But with all cases I am running in to a timeout issue

"Timeout - Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout."

I have created gists for as small component

Component
https://gist.github.com/bishwenduk029/a64aef3ac60b240039760697144c9851

Test Case:
https://gist.github.com/bishwenduk029/2d317e0482bab9d952697111e64572b1

If possible can you please have a look at it, and let me know If I am doing something wrong. Any suggestions would be great.

What's the Berlin tech scene like?

Hi!

Our company is about to expand to Europe, and will open a new office in Berlin. What do you think of the tech scene in Berlin? I read on some blogs that there aren't a lot of tech startups, but that the number of interesting startups / scaleups is growing. Do you agree? How do you get in touch with other software developers outside of works?

Vernon

What does cypress-axe actually run?

Hey Artem,
As the maintainer of cypress-axe, do you have a definitive list of the accessibility checks that get completed when cy.checkA11y() is triggered?

I would like to compare the A11y checks covered in cypress-axe to the checks that are covered in Accessibility Insights for Web to see if any are duplicated when completing A11y testing.

tia

Is it Okay to translate your article and post it on my blog?

Hi, I'm a just-start frontend developer.
Struggling on how should I test my code, I found your article about modern react testing, and I found it quite helpful. So I think it would be helpful too, to translate it and make more developers could read it.

if you have any opinion, notice me :)

Could you give some advices for photography beginners?

Hi, Artem @sapegin !
First of all thank you for react-styleguidist. It was a real pleasure using it in our development.

I know that you're a great photographer :)
I've seen your photos on Unsplash and they are really amazing.

I'm a fan of landscape/street/architecture photography, so I learned a bit about shutter speed, ISO, aperture and bought my first DSLR camera. But I feel I am lacking in knowledge and skills to start.

Could you share some advices/books/resources that helped you at the beginning ?
What resources/books do you recommend to read about photo post-processing ?

Thanks in advance!

Can you give advice for mastering UX/UI design?

Hi, Artem!

Currently, I'm creating websites on php + js (both frontend and backend). But I want to switch to frontend development with a bit of UX/UI design.

Can you give advice for mastering UX/UI design?

What's your feeling about Germany

Hi Artem @sapegin, glad I can ask you. I'm following you for a couple of years on twitter, but I missed your moving to Germany, I know a lot of people are moving there, but could you please share your experience? Maybe you can compare living in Russia (Moscow) with Germany.
Why you decided to move?

Thanks in advance!

Mocking nested children that make network requests

Hi there! I came here from your blog post on Jest and React testing library https://blog.sapegin.me/all/react-testing-3-jest-and-react-testing-library/

Towards the end you mentioned jest and nock to mock modules. More importantly, I noticed that you mocked the responses on a per-test basis.

This is what I was doing for a while too (similar to mocking fetch), however I started to notice problems with mocking resolved value of API responses on a per-test basis. It works perfectly when you are working with the component that makes the request directly. However, let's say you have a super generic component like App which renders a lot of different components.

When testing App you wouldn't know what requests are going to be made and what to mock unless you trace through the entire component hierarchy and mock things out one by one. You may have all kinds of Child components that make network requests on mount.

A solution might be to use shallow rendering, or adopt the mockist style of TDD by mocking/spying those components but obviously there's a reason why react testing library doesn't encourage this style of TDD.

React testing library seems to follow the classical style of TDD where our units actually exercise their collaborators instead of mocking them out. Therefore, a more appropriate solution seems to be using nock or Mock service worker and defining global handlers for them.

This seems to be a good solution, however, I also faced the problem where sometimes it feels like you are having to reimplement your entire backend.

Any thoughts on this?

Reliance on code coverage.

Hi Artem,
I was just reading your excellent article on modern react testing.
I'm struggling with the code coverage reports coming out of Jest. Obviously way more complicated than what I can understand, but all I have to do is render one component and check a header and I get 80% coverage on that file and 40% coverage on most of the other components in other TSX files in that library even if not referenced in the the file I'm testing. Not sure if it is because of Typescript, Functional Components, Nrwl Nx, or just the nature of render in React Testing Library. On our Java server code, we look at that coverage closely to see if we've written proper tests.

So my questions to you is if you see same result? Do you care? Have you seen any good articles on this you could pass along? If not, maybe you could do one.

Thanks in advance.

How do I send the node data to the terminal using Cypress-Axe

Hi, I can see the node target values in the browser console, and I can send some output to the terminal with
cy.task('log','message')
But, I'd like to output the target values from the nodes for each violation. That way I can find the location when running Cypress headless. Could you possibly share an example?

Thanks!

Broad knowledge or narrow specialization?

Is it necessary for frontend developer to know backend stuff (databases, servers, e.t.c)? Do you read articles or watch videos on technical themes beyond the frontend?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.