This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { PropsWithChildren, ReactElement, ReactNode } from 'react'; | |
| import React, { Children, cloneElement, isValidElement } from 'react'; | |
| import { render } from '@testing-library/react'; | |
| function setFakeReactDispatcher<T>(action: () => T): T { | |
| /** | |
| * We use some internals from React to avoid a lot of warnings in our tests when faking | |
| * to render server components. If the structure of React changes, this function should still work, | |
| * but the tests will again print warnings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { PropsWithChildren, ReactElement, ReactNode } from 'react'; | |
| import React, { Children, cloneElement, isValidElement } from 'react'; | |
| import { render } from '@testing-library/react'; | |
| function setFakeReactDispatcher<T>(action: () => T): T { | |
| /** | |
| * We use some internals from React to avoid a lot of warnings in our tests when faking | |
| * to render server components. If the structure of React changes, this function should still work, | |
| * but the tests will again print warnings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name StupidJira | |
| // @namespace http://mikebell.io | |
| // @version 0.1 | |
| // @description Add branch details | |
| // @match https://jira.ctidigital.com/browse/* | |
| // @grant none | |
| //allow pasting | |
| // ==/UserScript== |