Unverified Commit 2b34bfac authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

[test] Remove global styled-components install (#77782)

parent 88b18f74
......@@ -253,7 +253,6 @@
"semver": "7.3.7",
"shell-quote": "1.7.3",
"strip-ansi": "6.0.0",
"styled-components": "6.0.0-rc.3",
"styled-jsx": "5.1.6",
"styled-jsx-plugin-postcss": "3.0.2",
"swr": "^2.2.4",
......
This diff is collapsed.
......@@ -5,7 +5,7 @@ import { NextInstance } from 'e2e-utils'
import { retry } from 'next-test-utils'
// TODO: Somehow the warning doesn't show up with Turbopack, even though the transform is not enabled.
// TODO: It no longer shows up with Webpack either in tests. Manual repro does work though.
// TODO: It no longer shows up with Webpack either in tests.
;(process.env.IS_TURBOPACK_TEST ? describe.skip : describe.skip)(
'styled-components SWC transform',
() => {
......
{
"name": "styled-components-disabled",
"private": true,
"dependencies": {
"styled-components": "6.1.16"
}
}
......@@ -13,7 +13,7 @@ const Button = styled.a`
/* The GitHub button is a primary button
* edit this to target it specifically! */
${(props) =>
props.primary &&
props.$primary &&
css`
background: white;
color: black;
......@@ -27,7 +27,7 @@ export default function Home() {
href="https://github.com/styled-components/styled-components"
target="_blank"
rel="noopener"
primary
$primary
>
GitHub
</Button>
......
{
"name": "styled-components",
"private": true,
"dependencies": {
"styled-components": "6.1.16"
}
}
......@@ -13,7 +13,7 @@ const Button = styled.a`
/* The GitHub button is a primary button
* edit this to target it specifically! */
${(props) =>
props.primary &&
props.$primary &&
css`
background: white;
color: black;
......@@ -33,7 +33,7 @@ export default function Home() {
href="https://github.com/styled-components/styled-components"
target="_blank"
rel="noopener"
primary
$primary
>
GitHub
</Button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment