{"id":20196848,"url":"https://github.com/itsjonq/cyan","last_synced_at":"2025-04-10T10:44:37.189Z","repository":{"id":34645417,"uuid":"181261414","full_name":"ItsJonQ/cyan","owner":"ItsJonQ","description":"🐱 Cypress-like testing for React + JSDOM","archived":false,"fork":false,"pushed_at":"2023-01-04T22:53:08.000Z","size":3502,"stargazers_count":8,"open_issues_count":44,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-25T20:22:20.419Z","etag":null,"topics":["cypress","jsdom","open-source","react","testing","testing-library"],"latest_commit_sha":null,"homepage":"https://cyan.netlify.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ItsJonQ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-14T04:46:12.000Z","updated_at":"2021-05-23T14:01:59.000Z","dependencies_parsed_at":"2023-01-15T08:18:50.123Z","dependency_job_id":null,"html_url":"https://github.com/ItsJonQ/cyan","commit_stats":null,"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsJonQ%2Fcyan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsJonQ%2Fcyan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsJonQ%2Fcyan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsJonQ%2Fcyan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ItsJonQ","download_url":"https://codeload.github.com/ItsJonQ/cyan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248200764,"owners_count":21063975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cypress","jsdom","open-source","react","testing","testing-library"],"created_at":"2024-11-14T04:26:19.563Z","updated_at":"2025-04-10T10:44:37.164Z","avatar_url":"https://github.com/ItsJonQ.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐱 Cyan\n\n[![Build Status](https://travis-ci.org/itsjonq/cyan.svg?branch=master)](https://travis-ci.org/itsjonq/cyan)\n[![Coverage Status](https://coveralls.io/repos/github/ItsJonQ/cyan/badge.svg?branch=master)](https://coveralls.io/github/ItsJonQ/cyan?branch=master)\n[![npm version](https://badge.fury.io/js/%40itsjonq%2Fcyan.svg)](https://badge.fury.io/js/%40itsjonq%2Fcyan)\n\n\u003e Cypress-like Testing for React + JSDOM\n\n## Table of Contents\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [Installation](#installation)\n- [Example](#example)\n- [Documentation](#documentation)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## Installation\n\n```\nnpm install --save-dev @itsjonq/cyan\n```\n\n## Example\n\n```jsx\nimport React from 'react'\nimport { cy } from '@itsjonq/cyan'\nimport Modal from '../Modal'\n\ncy.useFakeTimers()\n\ntest('Can open/close a Modal', () =\u003e {\n  cy.render(\n    \u003cModal trigger={\u003cbutton\u003eOpen\u003c/button\u003e}\u003e\n      \u003cdiv className=\"content\"\u003eContent\u003c/div\u003e\n    \u003c/Modal\u003e,\n  )\n\n  cy.get('button').click()\n\n  expect(cy.get('.Modal').hasClass('is-open')).toBeTruthy()\n  expect(cy.get('.content').exists()).toBeTruthy()\n\n  cy.getByCy('CloseButton').click()\n\n  expect(cy.get('.Modal').hasClass('is-open')).toBeFalsy()\n  expect(cy.get('.content').exists()).toBeFalsy()\n})\n```\n\n## Documentation\n\nFor additional information, check out [our documentation](https://cyan-testing.netlify.com)!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsjonq%2Fcyan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsjonq%2Fcyan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsjonq%2Fcyan/lists"}