Skip to content

Instantly share code, notes, and snippets.

View marcellkiss's full-sized avatar
🧑‍🚀
Exploring

Marcell Kiss marcellkiss

🧑‍🚀
Exploring
View GitHub Profile
@marcellkiss
marcellkiss / init.md
Created March 24, 2026 12:25
init.md
name init-e2e-tests
description Use this guide to add e2e tests for a new project or app

Execute the following steps

Store the app type

  • Check the package.json file and decide about the type of the app: angular, vue or react
@marcellkiss
marcellkiss / custom-test.md
Created March 24, 2026 11:57
custom-test.md
name generate-cucumber-e2e-test
description Generate project-specific Cucumber e2e tests from a natural-language user request
argument-hint Describe the user flow or acceptance criteria to test
agent agent

Generate Cucumber-based e2e tests for this repository from the user input.

Goal

@marcellkiss
marcellkiss / diff-test.md
Last active March 24, 2026 11:24
diff-test

Compare uncommited git changes with the HEAD. If there are changes implementing new functionality write e2e tests for them, using cucumber. Otherwise, you're done.

@marcellkiss
marcellkiss / gist:7eb46032b345863d598a7f08267b2af5
Created March 24, 2026 07:32
Copilot SDK lifecycle events
type: "session.start";
type: "session.resume";
type: "session.error";
type: "session.idle";
type: "session.title_changed";
type: "session.info";
type: "session.warning";
type: "session.model_change";
type: "session.mode_changed";
type: "session.plan_changed";
@marcellkiss
marcellkiss / custom-builder-debug
Last active December 7, 2023 14:09
Logs: debugging custom-builder
> nx run angularboost:build:production
[DomElementSchemaRegistry::constructor] Reading property Y undefined
[DomElementSchemaRegistry::constructor] Reading property Y undefined
[@angularboost/custom-builder] customApplicationBuilder started
[@angularboost/custom-builder] Detected options: {
customElementsPrefix: 'my-',
customElementsManifestFilePath: 'custom-elements-manifest.json'
}
[@angularboost/custom-builder] Reading property X [Function: X]
[@angularboost/custom-builder] Writing property Y
@marcellkiss
marcellkiss / typescript-decorator-example
Last active June 29, 2022 15:52
Typescript decorator example for unsubscribe
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { ProductDto } from '@ev-customer-portal/frontend/api-client';
import { interval, Subject, takeUntil } from 'rxjs';
@AddDestroy$()
@Component({...})
export class RequestAccessDialogComponent {
public sub = interval(1000)
.pipe(untilDestroy$(this))
.subscribe((v) => {
@marcellkiss
marcellkiss / test-setup.ts
Created March 9, 2022 17:09
Setting registerLocaleData once with jest
import { registerLocaleData } from '@angular/common';
import localeDe from '@angular/common/locales/de';
import { LOCALE_ID } from '@angular/core';
import { TestBed } from '@angular/core/testing';
import 'jest-preset-angular/setup-jest';
registerLocaleData(localeDe);
// Error message:
import { DomElementSchemaRegistry, ElementSchemaRegistry, SchemaMetadata } from '@angular/compiler';
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
/**
* As we are using the custom tags of the si-design-system,
* we are forced to turn off template validation completely (applying CUSTOM_ELEMENTS_SCHEMA)
* Writing a custom SchemaRegistry could be a solution to retain proper validation.
* Still, there's no feasable solution at the moment
{
"event": "Checkout.PaymentComplete",
"eventData": {
"checkout": {
"completed": true,
"id": "187376",
"test_variant": "subscriptionManagement"
},
"product": {
"id": "0",
{
"event": "Checkout.Complete",
"eventData": {
"checkout": {
"completed": true,
"id": "187376",
"test_variant": "subscriptionManagement"
},
"product": {
"id": "0",