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 @@ ...@@ -253,7 +253,6 @@
"semver": "7.3.7", "semver": "7.3.7",
"shell-quote": "1.7.3", "shell-quote": "1.7.3",
"strip-ansi": "6.0.0", "strip-ansi": "6.0.0",
"styled-components": "6.0.0-rc.3",
"styled-jsx": "5.1.6", "styled-jsx": "5.1.6",
"styled-jsx-plugin-postcss": "3.0.2", "styled-jsx-plugin-postcss": "3.0.2",
"swr": "^2.2.4", "swr": "^2.2.4",
......
This diff is collapsed.
...@@ -5,7 +5,7 @@ import { NextInstance } from 'e2e-utils' ...@@ -5,7 +5,7 @@ import { NextInstance } from 'e2e-utils'
import { retry } from 'next-test-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: 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)( ;(process.env.IS_TURBOPACK_TEST ? describe.skip : describe.skip)(
'styled-components SWC transform', 'styled-components SWC transform',
() => { () => {
......
{
"name": "styled-components-disabled",
"private": true,
"dependencies": {
"styled-components": "6.1.16"
}
}
...@@ -13,7 +13,7 @@ const Button = styled.a` ...@@ -13,7 +13,7 @@ const Button = styled.a`
/* The GitHub button is a primary button /* The GitHub button is a primary button
* edit this to target it specifically! */ * edit this to target it specifically! */
${(props) => ${(props) =>
props.primary && props.$primary &&
css` css`
background: white; background: white;
color: black; color: black;
...@@ -27,7 +27,7 @@ export default function Home() { ...@@ -27,7 +27,7 @@ export default function Home() {
href="https://github.com/styled-components/styled-components" href="https://github.com/styled-components/styled-components"
target="_blank" target="_blank"
rel="noopener" rel="noopener"
primary $primary
> >
GitHub GitHub
</Button> </Button>
......
{
"name": "styled-components",
"private": true,
"dependencies": {
"styled-components": "6.1.16"
}
}
...@@ -13,7 +13,7 @@ const Button = styled.a` ...@@ -13,7 +13,7 @@ const Button = styled.a`
/* The GitHub button is a primary button /* The GitHub button is a primary button
* edit this to target it specifically! */ * edit this to target it specifically! */
${(props) => ${(props) =>
props.primary && props.$primary &&
css` css`
background: white; background: white;
color: black; color: black;
...@@ -33,7 +33,7 @@ export default function Home() { ...@@ -33,7 +33,7 @@ export default function Home() {
href="https://github.com/styled-components/styled-components" href="https://github.com/styled-components/styled-components"
target="_blank" target="_blank"
rel="noopener" rel="noopener"
primary $primary
> >
GitHub GitHub
</Button> </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