Unverified Commit de08b1ff authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Remove unsupported examples (#26075)

Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent 8fd5d927
......@@ -10,7 +10,7 @@ The reason this is going away is that we want to make things very predictable an
#### Possible Ways to Fix It
https://github.com/zeit/next-codemod#url-to-withrouter
https://nextjs.org/docs/advanced-features/codemods#url-to-withrouter
Since Next 5 we provide a way to explicitly inject the Next.js router object into pages and all their descending components.
The `router` property that is injected will hold the same values as `url`, like `pathname`, `asPath`, and `query`.
......@@ -33,4 +33,4 @@ export default withRouter(Page)
We provide a codemod (a code to code transformation) to automatically change the `url` property usages to `withRouter`.
You can find this codemod and instructions on how to run it here: https://github.com/zeit/next-codemod#url-to-withrouter
You can find this codemod and instructions on how to run it here: https://nextjs.org/docs/advanced-features/codemods#url-to-withrouter
......@@ -4,4 +4,4 @@ export const CMS_URL = 'https://www.agilitycms.com'
export const CMS_LANG = 'en-us'
export const CMS_CHANNEL = 'website'
export const HOME_OG_IMAGE_URL =
'https://og-image.vercel.app/Next.js%20Blog%20Example%20with%20**Agility%20CMS**.png?theme=light&md=1&fontSize=75px&images=https%3A%2F%2Fassets.zeit.co%2Fimage%2Fupload%2Ffront%2Fassets%2Fdesign%2Fnextjs-black-logo.svg&images=https%3A%2F%2Fcdn.agilitycms.com%2Fcontent-manager%2Fimages%2Flogos%2F3d69eddf6f00b8824feb126d9ac2bed3ec6e85c0.png&widths=undefined&widths=350&heights=200&heights=auto'
'https://og-image.vercel.app/Next.js%20Blog%20Example%20with%20**Agility%20CMS**.png?theme=light&md=1&fontSize=75px&images=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Ffront%2Fassets%2Fdesign%2Fnextjs-black-logo.svg&images=https%3A%2F%2Fcdn.agilitycms.com%2Fcontent-manager%2Fimages%2Flogos%2F3d69eddf6f00b8824feb126d9ac2bed3ec6e85c0.png&widths=undefined&widths=350&heights=200&heights=auto'
......@@ -27,7 +27,7 @@ export default function Alert({ preview }) {
<>
The source code for this blog is{' '}
<a
href={`https://github.com/zeit/next.js/tree/canary/examples/${EXAMPLE_PATH}`}
href={`https://github.com/vercel/next.js/tree/canary/examples/${EXAMPLE_PATH}`}
className="underline hover:text-success duration-200 transition-colors"
>
available on GitHub
......
......@@ -17,7 +17,7 @@ export default function Footer() {
Read Documentation
</a>
<a
href={`https://github.com/zeit/next.js/tree/canary/examples/${EXAMPLE_PATH}`}
href={`https://github.com/vercel/next.js/tree/canary/examples/${EXAMPLE_PATH}`}
className="mx-3 font-bold hover:underline"
>
View on GitHub
......
{
"presets": ["next/babel"],
"plugins": [
[
"import",
{
"libraryName": "antd-mobile",
"style": "css"
}
]
]
}
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# next.js
/.next/
/out/
# production
/build
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local
# vercel
.vercel
# Ant Design Mobile example
This example features how you use [antd-mobile](https://github.com/ant-design/ant-design-mobile) (Ant Design Mobile FrontEnd Framework) with Next.js.
## Deploy your own
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-ant-design-mobile&project-name=with-ant-design-mobile&repository-name=with-ant-design-mobile)
## How to use
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:
```bash
npx create-next-app --example with-ant-design-mobile with-ant-design-mobile-app
# or
yarn create next-app --example with-ant-design-mobile with-ant-design-mobile-app
```
Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
import { NavBar, Icon, WingBlank } from 'antd-mobile'
import { withRouter } from 'next/router'
import Head from 'next/head'
export default withRouter(({ router, children, title }) => (
<div>
<Head>
<title>{title}</title>
</Head>
<NavBar
mode="light"
icon={<Icon type="left" />}
onLeftClick={() => router.back()}
>
Ant Design Mobile example
</NavBar>
<h1>{title}</h1>
<style jsx>{`
h1 {
padding: 15px 0 9px 15px;
color: #000;
font-size: 16px;
line-height: 16px;
height: 16px;
font-weight: bolder;
position: relative;
}
`}</style>
<WingBlank>{children}</WingBlank>
</div>
))
const withCSS = require('@zeit/next-css')
module.exports = withCSS({
webpack: (config, { isServer }) => {
if (isServer) {
const antStyles = /antd-mobile\/.*?\/style.*?/
const origExternals = [...config.externals]
config.externals = [
(context, request, callback) => {
if (request.match(antStyles)) return callback()
if (typeof origExternals[0] === 'function') {
origExternals[0](context, request, callback)
} else {
callback()
}
},
...(typeof origExternals[0] === 'function' ? [] : origExternals),
]
config.module.rules.unshift({
test: antStyles,
use: 'null-loader',
})
}
return config
},
})
{
"name": "with-ant-design-mobile",
"version": "1.1.0",
"dependencies": {
"@zeit/next-css": "1.0.1",
"antd-mobile": "2.2.5",
"babel-plugin-import": "^1.2.1",
"next": "latest",
"null-loader": "2.0.0",
"react": "^16.7.0",
"react-dom": "^16.7.0"
},
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
},
"license": "MIT"
}
import App from 'next/app'
import Head from 'next/head'
export default class CustomApp extends App {
render() {
const { Component, pageProps } = this.props
return (
<>
<Head>
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
/>
<style global jsx>{`
html,
body {
font-family: 'Helvetica Neue', 'Hiragino Sans GB', Helvetica,
'Microsoft YaHei', Arial;
margin: 0;
}
`}</style>
</Head>
<Component {...pageProps} />
</>
)
}
}
import Layout from '../components/Layout'
import { Button } from 'antd-mobile'
import Link from 'next/link'
export default function About() {
return (
<Layout title="About">
<Link href="/">
<Button>Go to Index</Button>
</Link>
</Layout>
)
}
import Layout from '../components/Layout'
import { Button } from 'antd-mobile'
import Link from 'next/link'
export default function Home() {
return (
<Layout title="Index">
<Link href="/about">
<Button>Go to About</Button>
</Link>
</Layout>
)
}
# Example app with aphrodite
This example features how to use a different styling solution than [styled-jsx](https://github.com/zeit/styled-jsx) that also supports universal styles. That means we can serve the required styles for the first render within the HTML and then load the rest in the client. In this case we are using [Aphrodite](https://github.com/Khan/aphrodite/).
This example features how to use a different styling solution than [styled-jsx](https://github.com/vercel/styled-jsx) that also supports universal styles. That means we can serve the required styles for the first render within the HTML and then load the rest in the client. In this case we are using [Aphrodite](https://github.com/Khan/aphrodite/).
For this purpose we are extending the `<Document />` and injecting the server side rendered styles into the `<head>`.
......
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# next.js
/.next/
/out/
# production
/build
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local
# vercel
.vercel
# Example app with [astroturf](https://github.com/4Catalyzer/astroturf)
This example features how to use [astroturf](https://github.com/4Catalyzer/astroturf) as the zero-runtime CSS-in-JS styling solution instead of [styled-jsx](https://github.com/zeit/styled-jsx).
## Deploy your own
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-astroturf&project-name=with-astroturf&repository-name=with-astroturf)
## How to use
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:
```bash
npx create-next-app --example with-astroturf with-astroturf-app
# or
yarn create next-app --example with-astroturf with-astroturf-app
```
Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
const withCSS = require('@zeit/next-css')
module.exports = withCSS({
cssModules: true,
webpack: (config) => {
config.module.rules.push({
test: /\.js$/,
use: ['astroturf/loader'],
})
return config
},
})
{
"name": "with-astroturf",
"version": "1.0.0",
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
},
"dependencies": {
"@zeit/next-css": "^1.0.1",
"astroturf": "^0.9.2",
"next": "latest",
"postcss-nested": "^4.1.2",
"react": "^16.8.6",
"react-dom": "^16.8.6"
},
"license": "MIT"
}
import styled from 'astroturf'
const Button = styled('button')`
color: black;
border: 1px solid black;
background-color: white;
&.primary {
color: blue;
border: 1px solid blue;
}
&.color-green {
color: green;
}
`
const IndexPage = () => (
<Button primary color="green">
A styled button
</Button>
)
export default IndexPage
module.exports = {
plugins: {
'postcss-nested': {},
},
}
# Example app with [Compiled](https://github.com/atlassian-labs/compiled) (CSS-in-JS)
This example features how to use [Compiled](https://github.com/atlassian-labs/compiled) as the build time CSS-in-JS styling solution instead of [styled-jsx](https://github.com/zeit/styled-jsx).
This example features how to use [Compiled](https://github.com/atlassian-labs/compiled) as the build time CSS-in-JS styling solution instead of [styled-jsx](https://github.com/vercel/styled-jsx).
## Preview
......
# Example app with cxs
This example shows how to use a different styling solution than [styled-jsx](https://github.com/zeit/styled-jsx) that also supports universal styles. That means we can serve the required styles for the first render within the HTML and then load the rest in the client. In this case we are using [cxs](https://github.com/jxnblk/cxs/).
This example shows how to use a different styling solution than [styled-jsx](https://github.com/vercel/styled-jsx) that also supports universal styles. That means we can serve the required styles for the first render within the HTML and then load the rest in the client. In this case we are using [cxs](https://github.com/jxnblk/cxs/).
For this purpose we are extending the `<Document />` and injecting the server side rendered styles into the `<head>`.
......
# Example app with Fela
This example features how to use a different styling solution than [styled-jsx](https://github.com/zeit/styled-jsx) that also supports universal styles. That means we can serve the required styles for the first render within the HTML and then load the rest in the client. In this case we are using [fela](https://github.com/rofrischmann/fela).
This example features how to use a different styling solution than [styled-jsx](https://github.com/vercel/styled-jsx) that also supports universal styles. That means we can serve the required styles for the first render within the HTML and then load the rest in the client. In this case we are using [fela](https://github.com/rofrischmann/fela).
For this purpose we are extending the `<Document />` and injecting the server side rendered styles into the `<head>`.
......
......@@ -46,11 +46,10 @@ export default function GuestbookEntry(props) {
<div className={guestbookEntryShare.className}>
<a
href={`http://twitter.com/share?text=${encodeURIComponent(
props.story + ' @faunadb @zeithq'
props.story + ' @faunadb @vercel'
)}&url=${encodeURIComponent(
'https://fauna.com'
)}&hashtags=graphql,nextjs
`}
)}&hashtags=graphql,nextjs`}
target="_blank"
rel="noopener noreferrer"
className={guestbookEntryShareTwitterButton.className}
......
......@@ -17,7 +17,7 @@ const SgProfile = () => {
Static Generation (SG)
</a>{' '}
and the <a href="/api/user">/api/user</a> route (using{' '}
<a href="https://github.com/zeit/swr">SWR</a>)
<a href="https://github.com/vercel/swr">SWR</a>)
</h2>
<p style={{ fontStyle: 'italic' }}>
......
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# next.js
/.next/
/out/
# production
/build
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local
# vercel
.vercel
# Example app with Monaco Editor
This example adds support for [Monaco Editor](https://github.com/Microsoft/monaco-editor) integration using the
[`react-monaco-editor`](https://github.com/react-monaco-editor/react-monaco-editor) library.
## Deploy your own
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-monaco-editor&project-name=with-monaco-editor&repository-name=with-monaco-editor)
## How to use
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:
```bash
npx create-next-app --example with-monaco-editor with-monaco-editor-app
# or
yarn create next-app --example with-monaco-editor with-monaco-editor-app
```
Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
export default `class Animal {
constructor(public name: string) { }
move(meters: number) {
console.log(this.name + " moved " + meters + "m.");
}
}
class Snake extends Animal {
move() {
console.log("Slithering...");
super.move(5);
}
}
class Horse extends Animal {
move() {
console.log("Galloping...");
super.move(45);
}
}
var sam = new Snake("Sammy the Python")
var tom: Animal = new Horse("Tommy the Palomino")
sam.move()
tom.move(34)`
const withCSS = require('@zeit/next-css')
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
module.exports = withCSS({
webpack: (config) => {
config.module.rules.push({
test: /\.(png|jpg|gif|svg|eot|ttf|woff|woff2)$/,
use: {
loader: 'url-loader',
options: {
limit: 100000,
},
},
})
config.plugins.push(
new MonacoWebpackPlugin({
// Add languages as needed...
languages: ['javascript', 'typescript'],
filename: 'static/[name].worker.js',
})
)
return config
},
})
{
"name": "with-monaco-editor",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"@zeit/next-css": "^1.0.1",
"monaco-editor": "^0.20.0",
"monaco-editor-webpack-plugin": "^1.9.0",
"next": "9.3.1",
"next-fonts": "^1.0.3",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-monaco-editor": "^0.34.0"
},
"license": "MIT"
}
import dynamic from 'next/dynamic'
import sample from '../code-sample'
const MonacoEditor = dynamic(import('react-monaco-editor'), { ssr: false })
function IndexPage() {
return (
<MonacoEditor
height={'600px'}
language="typescript"
theme="vs-dark"
value={sample}
onChange={console.log}
editorDidMount={() => {
window.MonacoEnvironment.getWorkerUrl = (moduleId, label) => {
if (label === 'json') return '/_next/static/json.worker.js'
if (label === 'css') return '/_next/static/css.worker.js'
if (label === 'html') return '/_next/static/html.worker.js'
if (label === 'typescript' || label === 'javascript')
return '/_next/static/ts.worker.js'
return '/_next/static/editor.worker.js'
}
}}
/>
)
}
export default IndexPage
# Example app with react-with-styles
This example features how you use a different styling solution than [styled-jsx](https://github.com/zeit/styled-jsx) that also supports universal styles.
This example features how you use a different styling solution than [styled-jsx](https://github.com/vercel/styled-jsx) that also supports universal styles.
That means we can serve the required styles for the first render within the HTML and then load the rest in the client.
In this case we are using [react-with-styles](https://github.com/airbnb/react-with-styles).
......
......@@ -13,7 +13,6 @@
"author": "arnarkari93@gmail.com",
"license": "MIT",
"dependencies": {
"@zeit/next-css": "1.0.1",
"bs-fetch": "0.5.2",
"bs-platform": "7.2.2",
"graphql": "15.0.0",
......
......@@ -3,7 +3,7 @@
This is a full-stack TypeScript example using:
- Frontend:
- Next.js and [SWR](https://github.com/zeit/swr)
- Next.js and [SWR](https://github.com/vercel/swr)
- [react-stripe-js](https://github.com/stripe/react-stripe-js) for [Checkout](https://stripe.com/checkout) and [Elements](https://stripe.com/elements)
- Backend
- Next.js [API routes](https://nextjs.org/docs/api-routes/introduction)
......@@ -47,7 +47,7 @@ Once you have access to [the environment variables you'll need](#required-config
- Custom Amount Donation with redirect to Stripe Checkout:
- Frontend: [pages/donate-with-checkout.tsx](pages/donate-with-checkout.tsx)
- Backend: [pages/api/checkout_sessions/](pages/api/checkout_sessions/)
- Checkout payment result page that uses [SWR](https://github.com/zeit/swr) hooks to fetch the CheckoutSession status from the API route: [pages/result.tsx](pages/result.tsx).
- Checkout payment result page that uses [SWR](https://github.com/vercel/swr) hooks to fetch the CheckoutSession status from the API route: [pages/result.tsx](pages/result.tsx).
- Stripe Elements
- Custom Amount Donation with Stripe Elements & PaymentIntents (no redirect):
- Frontend: [pages/donate-with-elements.tsx](pages/donate-with-checkout.tsx)
......
# Example app with styled-components
This example features how you use a different styling solution than [styled-jsx](https://github.com/zeit/styled-jsx) that also supports universal styles. That means we can serve the required styles for the first render within the HTML and then load the rest in the client. In this case we are using [styled-components](https://github.com/styled-components/styled-components).
This example features how you use a different styling solution than [styled-jsx](https://github.com/vercel/styled-jsx) that also supports universal styles. That means we can serve the required styles for the first render within the HTML and then load the rest in the client. In this case we are using [styled-components](https://github.com/styled-components/styled-components).
For this purpose we are extending the `<Document />` and injecting the server side rendered styles into the `<head>`, and also adding the `babel-plugin-styled-components` (which is required for server side rendering). Additionally we set up a global [theme](https://www.styled-components.com/docs/advanced#theming) for styled-components using NextJS custom [`<App>`](https://nextjs.org/docs/advanced-features/custom-app) component.
......
# With styled-jsx plugins
Next.js ships with [styled-jsx](https://github.com/zeit/styled-jsx) allowing you
Next.js ships with [styled-jsx](https://github.com/vercel/styled-jsx) allowing you
to write scope styled components with full css support. This is important for
the modularity and code size of your bundles and also for the learning curve of the framework. If you know css you can write styled-jsx right away.
This example shows how to configure styled-jsx to use external plugins to modify the output. Using this you can use PostCSS, SASS (SCSS), LESS, or any other pre-processor with styled-jsx. You can define plugins in `.babelrc`. In this case PostCSS was used as an example. PostCSS plugins are defined in `package.json`.
More details about how plugins work can be found in the [styled-jsx readme](https://github.com/zeit/styled-jsx#css-preprocessing-via-plugins)
More details about how plugins work can be found in the [styled-jsx readme](https://github.com/vercel/styled-jsx#css-preprocessing-via-plugins)
## Deploy your own
......
# With styled-jsx SASS / SCSS
Next.js ships with [styled-jsx](https://github.com/zeit/styled-jsx) allowing you
Next.js ships with [styled-jsx](https://github.com/vercel/styled-jsx) allowing you
to write scope styled components with full css support. This is important for
the modularity and code size of your bundles and also for the learning curve of the framework. If you know css you can write styled-jsx right away.
This example shows how to configure styled-jsx to use external plugins to modify the output. Using this you can use PostCSS, SASS (SCSS), LESS, or any other pre-processor with styled-jsx. You can define plugins in `.babelrc`. This example shows how to implement the SASS plugin.
More details about how plugins work can be found in the [styled-jsx readme](https://github.com/zeit/styled-jsx#css-preprocessing-via-plugins)
More details about how plugins work can be found in the [styled-jsx readme](https://github.com/vercel/styled-jsx#css-preprocessing-via-plugins)
## Preview
......
# Example app with styletron
This example features how yo use a different styling solution than [styled-jsx](https://github.com/zeit/styled-jsx) that also supports universal styles. That means we can serve the required styles for the first render within the HTML and then load the rest in the client. In this case we are using [styletron](https://github.com/rtsao/styletron).
This example features how yo use a different styling solution than [styled-jsx](https://github.com/vercel/styled-jsx) that also supports universal styles. That means we can serve the required styles for the first render within the HTML and then load the rest in the client. In this case we are using [styletron](https://github.com/rtsao/styletron).
For this purpose we are extending the `<Document />` and injecting the server side rendered styles into the `<head>`.
......
# Example app with typestyle
This example features how you use a different styling solution than [styled-jsx](https://github.com/zeit/styled-jsx) that also supports universal styles. That means we can serve the required styles for the first render within the HTML and then load the rest in the client. In this case we are using [typestyle](https://github.com/typestyle/typestyle).
This example features how you use a different styling solution than [styled-jsx](https://github.com/vercel/styled-jsx) that also supports universal styles. That means we can serve the required styles for the first render within the HTML and then load the rest in the client. In this case we are using [typestyle](https://github.com/typestyle/typestyle).
For this purpose we are extending the `<Document />` and injecting the server side rendered styles into the `<head>`. Refer to [with-typescript](https://github.com/vercel/next.js/tree/master/examples/with-typescript) to use this with typescript.
......
......@@ -8,7 +8,7 @@ const About = () => (
<a>Go Back</a>
</Link>
</div>
<img width={200} src="/static/zeit.png" />
<img width={200} src="/static/vercel.png" />
</div>
)
......
......@@ -256,7 +256,7 @@ export async function createApp({
return '.'.concat(name)
}
// README.md is ignored by webpack-asset-relocator-loader used by ncc:
// https://github.com/zeit/webpack-asset-relocator-loader/blob/e9308683d47ff507253e37c9bcbb99474603192b/src/asset-relocator.js#L227
// https://github.com/vercel/webpack-asset-relocator-loader/blob/e9308683d47ff507253e37c9bcbb99474603192b/src/asset-relocator.js#L227
case 'README-template.md': {
return 'README.md'
}
......
......@@ -12,7 +12,7 @@
"*.d.ts",
"*.js"
],
"author": "Joe Haddad <timer@zeit.co>",
"author": "Joe Haddad <timer@vercel.com>",
"license": "MIT",
"scripts": {
"prepublish": "tsc -d -p tsconfig.json",
......
......@@ -219,7 +219,7 @@ const runTests = (dev = false) => {
})
// Added because of a regression in react-hot-loader, see issues: #4246 #4273
// Also: https://github.com/zeit/styled-jsx/issues/425
// Also: https://github.com/vercel/styled-jsx/issues/425
it('should update styles correctly', async () => {
let browser
try {
......@@ -258,7 +258,7 @@ const runTests = (dev = false) => {
})
// Added because of a regression in react-hot-loader, see issues: #4246 #4273
// Also: https://github.com/zeit/styled-jsx/issues/425
// Also: https://github.com/vercel/styled-jsx/issues/425
it('should update styles in a stateful component correctly', async () => {
let browser
const pagePath = join(
......@@ -297,7 +297,7 @@ const runTests = (dev = false) => {
})
// Added because of a regression in react-hot-loader, see issues: #4246 #4273
// Also: https://github.com/zeit/styled-jsx/issues/425
// Also: https://github.com/vercel/styled-jsx/issues/425
it('should update styles in a dynamic component correctly', async () => {
let browser = null
let secondBrowser = null
......
......@@ -143,7 +143,7 @@ export default (context, renderViaHTTP) => {
})
// Added because of a regression in react-hot-loader, see issues: #4246 #4273
// Also: https://github.com/zeit/styled-jsx/issues/425
// Also: https://github.com/vercel/styled-jsx/issues/425
it('should update styles correctly', async () => {
let browser
try {
......@@ -180,7 +180,7 @@ export default (context, renderViaHTTP) => {
})
// Added because of a regression in react-hot-loader, see issues: #4246 #4273
// Also: https://github.com/zeit/styled-jsx/issues/425
// Also: https://github.com/vercel/styled-jsx/issues/425
it('should update styles in a stateful component correctly', async () => {
let browser
const pagePath = join(
......@@ -219,7 +219,7 @@ export default (context, renderViaHTTP) => {
})
// Added because of a regression in react-hot-loader, see issues: #4246 #4273
// Also: https://github.com/zeit/styled-jsx/issues/425
// Also: https://github.com/vercel/styled-jsx/issues/425
it('should update styles in a dynamic component correctly', async () => {
let browser = null
let secondBrowser = null
......
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