Skip to content

Instantly share code, notes, and snippets.

View taras's full-sized avatar

Taras Mankovski taras

View GitHub Profile
type Person {
name: String
accounts: [Account]
}
type Account {
owner: Person! @inverse(of: "Person.accounts")
}

Create a pull request to each repository in an organization with a catalog-info.yaml file

To run this script, download this script to a folder on your computer and run npx zx create-prs.md.

Requirements

You must install the following utilities to run this script.

GitHub CLI

catalog:
locations:
- type: url
target: http://github.com/my-org/my-repo/blob/main/components.yaml
type Component {
ownedBy: ComponentOwners
providesApi: [API]
dependsOn: Component
parentOf: Component
childOf: Component
partOf: PartOf
}
union PartOf = Component | System | Domain
backend:
database:
client: pg
connection:
host: localhost
port: 5432
user: postgres
password: postgres
let app = createAppInteractor();
let signin = createAppInteractor();
describe("sign-in", () => {
describe("when user is anonymous", () => {
beforeEach(async () => {
await app.visit('/sign-in');
});
it("shows sign-in page", () => {
import { TestImplementation, Assertion, Test } from "@bigtest/suite";
const visit = (path: string) => async () => ({ path });
const exists = (selector: string) => () => ({ selector });
const notExists = (selector: string) => () => ({ selector });
const assert = (fn: () => boolean, expected: unknown) => (context: unknown) =>
Promise.resolve(expected);
const click = (selector: string) => async () => Promise.resolve();
const fillIn = (selector: string, value: string) => async () =>
Promise.resolve();
{
description: "Sigin in via Modal",
steps: [
{
description: "visit home",
action: (context) => visit('/')
},
{
description: "does sign in button exist?"
action: Modal.isVisible()
CustomPackageEditVisibility
visiting the package edit page with a hidden package and a hidden reason
✔ displays the correct visibility status
✔ displays the hidden/reason section
✔ disables the save button
clicking cancel
✔ goes to the package show page
toggling the visiblity field
clicking cancel
✔ shows a navigation confirmation modal
@taras
taras / file.js
Last active March 25, 2020 22:28
{ nodeName: 'ROOT',
style: {},
attributes: {},
childNodes:
[ { nodeName: 'DIV',
style: { flexDirection: 'column', flexGrow: 0, flexShrink: 1 },
attributes: {},
childNodes:
[ { nodeName: 'DIV',
style: { flexDirection: 'row', flexGrow: 0, flexShrink: 1 },