testing Archives - draghici.net https://draghici.net/tag/testing/ 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 testing Archives - draghici.net https://draghici.net/tag/testing/ 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.

]]>
A modern Vue 3 application for showing TV shows information https://draghici.net/a-modern-vue-3-application-for-showing-tv-shows-information/ Wed, 14 Sep 2022 16:41:00 +0000 https://draghici.net/?p=4466 We will use Typescript, Vue 3, vite, pinia, cypress and other fancy things to create an app which will consume the TVmaze API to display movie information. We will use an open TV shows API http://www.tvmaze.com/api to create an application that allows users to view a few lists (preferable horizontal list) of TV shows based […]

The post A modern Vue 3 application for showing TV shows information 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.

]]>
SlimPHP and PHPunit – “Failed asserting that 200 is identical to 404” https://draghici.net/slimphp-phpunit-failed-asserting-200-identical-404/ Fri, 05 May 2017 22:07:13 +0000 https://draghici.net/?p=925 I got the “Failed asserting that 200 is identical to 404” while using Slim and phpunit. But the API works fine when manually testing. After some digging, I realized that phpunit did not like the way I included files in my app – if replacing require_once with require where used, the test outputs Fatal error: Cannot redeclare class \DBClass in […]

The post SlimPHP and PHPunit – “Failed asserting that 200 is identical to 404” appeared first on draghici.net.

]]>
Licenses https://draghici.net/licenses/ Mon, 01 May 2017 15:27:52 +0000 https://draghici.net/?p=841 Licensing application based on Node.js and React. It manages the activation codes, clients andresellers.

The post Licenses appeared first on draghici.net.

]]>
Fault management project https://draghici.net/fault-management-project/ Thu, 01 Dec 2016 14:30:05 +0000 https://draghici.net/?p=843 Node.js backend and Jade (Pug) frontend based on JQuery and Twitter Bootstrap for interacting with a NAGIOS server with the purpose of monitoring the status of a network. Where Nagios isn’t available, a PING based service has been implemented.

The post Fault management project appeared first on draghici.net.

]]>