Posts by Deividson Damasio • 506 points
7 posts
-
4
votes2
answers470
viewsA: How to apply mock in "new date()" using Jest?
The response of Luiz Felipe was very enlightening, so I accepted his reply. But I’m posting here also my answer. From Jest 26, this can be achieved using "modern "fake timers". This was the best…
-
5
votes2
answers470
viewsQ: How to apply mock in "new date()" using Jest?
Please someone knows how to apply mock in the new Date() using the Jest? I tried to do so, but it did not work. The date remains current: jest.spyOn(Date, 'now').mockImplementation(() => { return…
-
2
votes2
answers99
viewsQ: Program a test to check for libraries in the "package.json" type "@types/..." that are in the wrong place. Is it possible?
I’ve taken several times package.json libraries "@types/..." in "dependencies" instead of "devDependencies". It is that they were installed without adding the parameter -D during the yarn add.…
-
3
votes1
answer272
viewsA: PHP character decoding on an IMAP connection
All Subject E-mail that has special characters is encoded. Are the accented letters, the cedilla and etc. I don’t know exactly why this coding is done, because I’m not familiar with the SMTP…
-
2
votes1
answer5424
viewsA: API BB web system implementation
Banco do Brasil recently released an API for developers. Official website: https://developers.bb.com.br Documentation: https://developers.bb.com.br/docs/ But the project is still in beta phase.…
-
18
votes4
answers23311
viewsA: Force Javascript File Update Without Disabling Cache
Hello. There is a technique called "Ghost Querystring" that solves this problem in most browsers. In PHP it is done like this: <link href="/file-css.css?<?php echo time(); ?>"…
-
1
votes1
answer350
viewsA: Internet Explorer 11 x Reporting Services
I was having the same problem in Internet Explorer 11, for in the Internet Explorer 9 works normally. I’m using Microsoft.ReportViewer.Webforms 10. I have tried several types of META tag listed here…
reporting-servicesanswered Deividson Damasio 506