jest Archives - draghici.net https://draghici.net/tag/jest/ A web developer's ideas Sun, 02 Jun 2024 12:49:06 +0000 en-US hourly 1 https://wordpress.org/?v=7.1.5 https://draghici.net/app/uploads/2017/06/cropped-keyboard-grayscale-150x150.jpg jest Archives - draghici.net https://draghici.net/tag/jest/ 32 32 How to test your frontend applications https://draghici.net/testing-your-frontend-applications/ Fri, 26 Apr 2024 05:34:11 +0000 https://draghici.net/?p=5567 Testing an application is more important than one might think. The two best reasons that come to mind is quality assurance and the time you save by using them. I imagine that all developers do the minimal manual testing for their applications 🙂 , so the point of this article is to talk about the […]

The post How to test your frontend applications appeared first on draghici.net.

]]>
Jest error: “Ran 100000 timers, and there are still more!” https://draghici.net/jest-error-ran-100000-timers-still/ Fri, 26 Jan 2018 00:32:12 +0000 https://draghici.net/?p=959 Vue.js jest tests error encountered: “Ran 100000 timers, and there are still more! Assuming we’ve hit an infinite recursion and bailing out”. Using mock could be a solution. E.g. jest.mock('lodash/debounce', () => jest.fn(fn => fn)); or jest.mock('lodash.debounce', () => jest.fn(fn => fn)); Add the file above in your files, before your code. Source:

The post Jest error: “Ran 100000 timers, and there are still more!” appeared first on draghici.net.

]]>
Jest testing useful commands https://draghici.net/jest-testing-useful-commands/ Tue, 23 Jan 2018 19:55:54 +0000 https://draghici.net/?p=972 Here are some commands useful with the lovely jest. The setup, enable the jest command in the console: npm install -g jest-cli Run a single test with detailed output: jest <path to the test>/<test name>.spec.js --verbose Run tests without cache: jest --nocache Run tests matching a certain name and show detailed output: jest -t '<name of […]

The post Jest testing useful commands appeared first on draghici.net.

]]>