makandra dev

In a Jasmine spec you want to spy on a function that is imported by the code under test. This...

The cards editor has a feature "Cite other card" to create links to other cards in the same deck as...

makandra dev

In esbuild, you usually import other files using relative paths: import './some-related-module' import `../../utils/some-utility-module` import `../../../css/some-css.sass` This is totally fine...

Jasmine specs for the frontend often need some DOM elements to work with. Because creating them is such a common...

Wir arbeiten in einem Umfeld in dem sich fast alles um das Web und HTTP dreht. Wir betreiben Webseiten und...

tl;dr In Chrome DevTools in the Elements tab or in Firefox in the Inspector tab you can right click...

While working on a Rails application, your code base will grow a collection of different file types including: Ruby (business...

DevOps Curriculum

Based on the Ruby Basics Card in the developer Curriculum Ruby is the programming language we use on the backend...

You can use the code below to check whether the browser can make connections to the current site: await isOnline...

If you have a JS fiddle, you can open it in fullscreen by appending /show to the URL. Example: https://...

Testing file download links in an end-to-end test can be painful, especially with Selenium. The attached download_helpers.rb provides...

tl;dr With ES2021 you now can use str.replaceAll(), Promise.any(), logical assignment operators, numeric separators and WeakRef on all major...

tl;dr: Use the URLSearchParams API to make your live easier if you want to get or manipulate query parameters...

Due to the way we setup Jasmine tests in our projects, you may run into various errors when Jasmine boots...

While we are used to run our JavaScript tests on a test page within our Browser, it's also possible...

makandra dev

To ensure a consistent code style for JavaScript code, we use ESLint. The workflow is similar to integrating rubocop...

This are the steps I needed to do to add esbuild to an application that used the vanilla rails asset...

DevOps Curriculum

AWS ist der meist genutzte Cloud Provider. Bei AWS gibt es extrem viele Themengebiete und es ist nicht möglich sich...

Building application assets with esbuild is the new way to do it, and it's great, especially in combination with...

Jasmine is a great tool to unit test your JavaScript components without writing an expensive end-to-end test for...

Resources RubyGuides: Mastering Ruby Regular Expressions Using regular expressions in JavaScript Testing regular expressions visually Regular Expressions: Quantifier modes...

JavaScript code can access and manipulate the browser's DOM tree. Using JavaScript we can add interactive behavior to our...

stackoverflow.com

One really simple way to check whether JavaScript Sentry integration was successful (raven-js or @sentry/browser), is to create an...

Use option:checked to find the currently selected option: select.querySelector('option:checked') Yes, :checked, not :selected. This is the same...