...to compile the new main.ts file, e.g.: { // other options like "extents":, "compilerOptions":, "include": "files": [ "src/app/shared/spec/setup/main.ts" ], } Why Use a Custom Test Entry Configure global test environment providers Register custom Jasmine matchers...
...and test utilities Load icons, themes, and other test-wide setup Replace CLI's auto-generated bootstrap with your own Important: Keep TestBed options aligned with CLI defaults (strict error...
...order to open a Nautilus window in your terminal's working directory, you can say:
...this lesson in builder mode. Learning goals You can explain what Bootstrap provides — base styles, a responsive grid, ready-made components and utility classes — and when a project benefits from...
...screen using only utility classes for spacing, display and text — no custom CSS. Build a side-by-side layout with the grid utilities: two content areas next to each other...
Great presentation about writing Javascript like you write everything else: Well-structured and tested. JavaScript is no longer a toy language. Many of our applications can’t function without it...
...the same practices we use with real languages. This framework agnostic talk takes a serious look at how we develop JavaScript applications. Despite its prototypical nature, good object-oriented programming...
...t!. They will raise I18n::MissingTranslationData on a missing translation instead of printing a string like translation missing: de.custom.failure. To turn on raising globally, you need to replace the default...
If you use Tempfile and pass your own filename containing an extension, it will just be consumed by the Tempfile...
Sass variables disappear when the stylesheet is compiled. CSS custom properties stay in the browser: they follow the cascade, can be changed at runtime, and let one value drive a...
...theme. This card teaches you when to reach for which, and how to turn scattered CSS values into a small set of named variables. Important Work on this lesson in...
...or not to gem": Gem is really needed (prefer writing your own code for simple requirements without many edge cases) Gem is tested well (coverage and quality)
...the project requirement Try to avoid gems that do much more than your requirement scope needs Gem has a good maturity and maintenance Gem has a good / familiar DSL
...configured timeout. This can become an issue if you rely on the timeout to strike precisely...
...when they chose MongoDB?” But what you may not realize is that you are seeing the application as it exists today. When the previous developer (or team) had to develop...
...cloak of opacity. You are cursed with the knowledge of the present, so the system seems like a hackjob of bad decisions...
...event. However, this is not defined by the W3C. Most importantly, Firefox does not support it, neither do recent versions of IE. You should completely avoid accessing the global event...
If your railscomplete-deployment uses the net-ssh-gem please ensure you use version 5.2.0 or newer to ensure you can deploy via Capistrano. It's best to use...
...completely remove the old host key on the client run: SERVER="appserver.makandra.de" # remove host entry ssh-keygen -f "$HOME/.ssh/known_hosts" -R "$SERVER" # remove IP entry ssh-keygen -f "$HOME/.ssh/known_hosts" -R "$(getent...
Many applications let users upload files. This lesson covers storing uploads as model attributes with CarrierWave, generating image versions, and testing uploads. Important Work on this lesson in advisor mode...
You can explain how an uploaded file travels from the browser to the server (a multipart form post) and where a Rails app can store it. You can explain...
With gem dependency it is possible to check the dependencies for your gem before you install it.
...records of a Ruby on Rails ActiveRecord model to be organised as a tree structure (or hierarchy). It uses a single, intuitively formatted database column, using a variation on the...
...materialised path pattern. It exposes all the standard tree structure relations (ancestors, parent, root, children, siblings, descendants) and all of them can be fetched in a single sql query. Additional...
...classes with shared example groups. You can explain the trade-off between DRY specs and self-contained examples, and when shared setup is worth its coupling. You can write end...
...shared_examples and it_behaves_like 📄 rspec-core: user-defined metadata and our card on spec-type specific setup — hooks that run only for some specs 📄 Testing shared traits or...
We use Selenium WebDriver with Capybara for end-to-end tests that need a real browser. Important Work on this lesson in advisor mode. Learning goals You can explain how...
...and Capybara::Node::Matchers — the API reference 📄 The two drivers as gems: rack-test and selenium-webdriver Flaky tests and our toolbox 📄 Fixing flaky E2E tests — our card on why...
Many features need data from third-party services. In this lesson you integrate geocoding, maps and a title-autocomplete API from JavaScript, and learn to test code that talks to...
...external services. Important Work on this lesson in builder mode. Learning goals You can explain what is involved when a browser talks to a third-party service: API keys, CORS...
An unresponsive service can be worse than a down one. It can tie up your entire system if not handled properly. All network requests should have a timeout.
...You should avoid Ruby’s Timeout module. The default is no timeout, unless otherwise specified. Enjoy...
Ruby's standard library is in the process of being gemified. It will soon - Ruby 2.5 - consist of RubyGems, which can be updated independently from Ruby. This might mean smoother...
...Ruby upgrades in the future. If breaking API changes happen in standard gems, we can update these before upgrading Ruby...
The Bullet gem is designed to help you increase your application's performance by reducing the number of queries it...
The The U.S. Digital Services Playbook is pretty amazing (context...
...to the Polymer project's paper elements collection. Our goal is to provide a set of AngularJS-native UI elements that implement the material design system...
Holly Schinsky from Adobe shows some of Bootstrap's capabilities. The combination of explanation, screenshots and source code makes it easy to understand