- Published
- Author
- Revath
To avoid diff of package-lock.json in
git show: git show ':(exclude)package-lock.json' At Codemancers, we believe every day is an opportunity to grow. This section is where our team shares bite-sized discoveries, technical breakthroughs and fascinating nuggets of wisdom we've stumbled upon in our work.
git show: git show ':(exclude)package-lock.json' curl -s checkip.dyndns.orgmockRejectedValue with axios the data should be inside response.data. Eg: mockRejectedValue({ response: { data: {errors: []} }, status: 400, statusText: "Bad Request" })mockRejectedValue with axios the data should be inside response.data. Eg: mockRejectedValue({ response: { data: {errors: []} }, status: 400, statusText: "Bad Request" })echo $PATH | sed -e $'s/\:/\\\n/'g or echo $PATH | tr ":" "\n" to see each entry in $PATH in separate line.:focus-within to keep the parent element visible when focus is on child. Helpful on making dropdown menu.jest.fn we can use mockFn.mockRejectedValue and mockFn.mockResolvedValue instead of mockFn.mockReturnValue(Promise.resolve({data: { message: "Failure", count: 1 }}); https://jestjs.io/docs/en/mock-function-api.html#mockfnmockresolvedvaluevaluedate + Time.zone.utc_offset rather than Time.zone.parse(date.to_s) if you are worried about performanceShowing 59 to 61 of 83 results
Codemancers can bring your vision to life and help you achieve your goals