Skip to content

Commit

Permalink
Update test refs
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Apr 29, 2024
1 parent d5109c6 commit b975de0
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import _JSXStyle from "styled-jsx/style";
import React from "react";
// This should error with https://nextjs.org/docs/messages/nested-styled-jsx-tags
// but instead it crashes SWC.
export default function Home() {
return <div className={"jsx-915beb22be3340e9"}>

<div className={"jsx-915beb22be3340e9"}>

<div className={"jsx-915beb22be3340e9" + " " + "text animated"}>Text</div>



<_JSXStyle id={"915beb22be3340e9"}>{".text.jsx-915beb22be3340e9:hover{color:#ff0!important}"}</_JSXStyle>

</div>



<style jsx>{`
.text:hover {
color: yellow !important;
}
`}</style>

</div>;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

x Detected nested styled-jsx tag.
| Read more: https://nextjs.org/docs/messages/nested-styled-jsx-tags
,-[input.js:21:1]
21 |
22 | ,-> <style jsx>{`
23 | | .text:hover {
24 | | color: yellow !important;
25 | | }
26 | `-> `}</style>
27 | </div>
`----
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import _JSXStyle from "styled-jsx/style";
import React from "react";
// This should error with https://nextjs.org/docs/messages/nested-styled-jsx-tags
// but instead it crashes SWC.
export default function Home() {
return <div className={"jsx-915beb22be3340e9"}>

<div className={"jsx-915beb22be3340e9"}>

<div className={"jsx-915beb22be3340e9" + " " + "text animated"}>Text</div>



<_JSXStyle id={"915beb22be3340e9"}>{".text.jsx-915beb22be3340e9:hover{color:#ff0!important}"}</_JSXStyle>

</div>



<style jsx>{`
.text:hover {
color: yellow !important;
}
`}</style>

</div>;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

x Detected nested styled-jsx tag.
| Read more: https://nextjs.org/docs/messages/nested-styled-jsx-tags
,-[input.js:21:1]
21 |
22 | ,-> <style jsx>{`
23 | | .text:hover {
24 | | color: yellow !important;
25 | | }
26 | `-> `}</style>
27 | </div>
`----

0 comments on commit b975de0

Please sign in to comment.