Skip to content

fix: resolve TypeScript and Jest test issues in transform tests #333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: fix typescrpit test fixtures names
  • Loading branch information
amirabbas-gh committed Apr 2, 2025
commit 803330669d2826124a6a1adece348f542b4a6a05
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ var React = require('react');

const render = () => {
return (
/*1*//*4*//*2*//*3*/<div
/*1*//*2*//*3*/<div
/*8*/className/*9*/=/*10*/"foo"/*11*/
/*12*/
/*13*///17
onClick/*14*/={/*15*/ this.handleClick}/*16*/>
{/*19*///25
<TodoList.Item />/*24*//*20*//*23*//*21*//*22*//*20*//*23*//*21*//*22*//*21*//*22*/}
<span {.../*26*/getProps()/*27*/} />
{/*18*//*19*/<TodoList.Item />/*24*//*20*//*23*//*21*//*22*//*20*//*23*//*21*//*22*//*21*//*22*/}
{//25
<span {.../*26*/getProps()/*27*/} />}
{<input /> /*28*//*29*/}
</div>
/*5*//*6*//*7*//*18*/
</div>/*4*/
/*5*//*6*//*7*/
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ function App({ url }: { url: string }) {
<Page />
</Context>
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ function App({ url }: { url: string }) {

return (
<Context.Provider value={theme}>
<Page />
</Context.Provider>
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ function App({ url }: { url: string }) {

return (
<Context value={theme}>
<Page />
</Context>
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ function App({ url }: { url: string }) {
<Page />
</ThemeContext.Provider>
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ function App({ url }: { url: string }) {
<Page />
</ThemeContext>
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ function App() {

return (
<Context.Provider value={theme}>
<Page />
</Context.Provider>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ function App() {

return (
<Context value={theme}>
<Page />
</Context>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const MyComponent = function Component(
ref: myRef,
...myProps
}: { a: 1 } & {
ref: React.RefObject<unknown>
ref: React.RefObject<unknown>;
}
) {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const MyComponent = function Component(
ref: myRef,
...myProps
}: Props & {
ref: React.RefObject<HTMLButtonElement>
ref: React.RefObject<HTMLButtonElement>;
}
) {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const MyInput = (
ref,
...props
}: { a: string } & {
ref: React.RefObject<RefValueType>
ref: React.RefObject<RefValueType>;
}
) => {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const MyInput = (
ref,
...props
}: Props & {
ref: React.RefObject<HTMLInputElement>
ref: React.RefObject<HTMLInputElement>;
}
) => {
return null;
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy