Unverified Commit 2d01e12b authored by Niklas Mischkulnig's avatar Niklas Mischkulnig Committed by GitHub

Fix url-imports test (#84922)

It fetches itself from github
parent 43c6ccfd
...@@ -15,10 +15,10 @@ ...@@ -15,10 +15,10 @@
"integrity": "sha512-orh6tVnh1jjxWNNLduiv0pUcW0guzwTmy52JQGdz4D2LL2IgIlJaC0w4+YBtIBXa2kKGho839WgGAK0sC0Folw==", "integrity": "sha512-orh6tVnh1jjxWNNLduiv0pUcW0guzwTmy52JQGdz4D2LL2IgIlJaC0w4+YBtIBXa2kKGho839WgGAK0sC0Folw==",
"contentType": "application/javascript; charset=UTF-8" "contentType": "application/javascript; charset=UTF-8"
}, },
"https://github.com/vercel/next.js/raw/canary/test/integration/url/public/vercel.png": "no-cache", "https://github.com/vercel/next.js/raw/canary/test/e2e/url-imports/public/vercel.png": "no-cache",
"https://github.com/vercel/next.js/raw/canary/test/integration/url/public/vercel.png?_=image": "no-cache", "https://github.com/vercel/next.js/raw/canary/test/e2e/url-imports/public/vercel.png?_=image": "no-cache",
"https://github.com/vercel/next.js/raw/canary/test/integration/url/public/vercel.png?_=ssg": "no-cache", "https://github.com/vercel/next.js/raw/canary/test/e2e/url-imports/public/vercel.png?_=ssg": "no-cache",
"https://github.com/vercel/next.js/raw/canary/test/integration/url/public/vercel.png?_=ssr": "no-cache", "https://github.com/vercel/next.js/raw/canary/test/e2e/url-imports/public/vercel.png?_=ssr": "no-cache",
"https://github.com/vercel/next.js/raw/canary/test/integration/url/public/vercel.png?_=static": "no-cache", "https://github.com/vercel/next.js/raw/canary/test/e2e/url-imports/public/vercel.png?_=static": "no-cache",
"version": 1 "version": 1
} }
.main { .main {
background: url('https://github.com/vercel/next.js/raw/canary/test/integration/url/public/vercel.png'); background: url('https://github.com/vercel/next.js/raw/canary/test/e2e/url-imports/public/vercel.png');
background-size: contain; background-size: contain;
width: 300px; width: 300px;
height: 300px; height: 300px;
......
import Image from 'next/image' import Image from 'next/image'
import logo from 'https://github.com/vercel/next.js/raw/canary/test/integration/url/public/vercel.png?_=image' import logo from 'https://github.com/vercel/next.js/raw/canary/test/e2e/url-imports/public/vercel.png?_=image'
export default () => ( export default () => (
<div> <div>
......
import value from 'http://localhost:12345/value1.js' import value from 'http://localhost:12345/value1.js'
const url = new URL( const url = new URL(
'https://github.com/vercel/next.js/raw/canary/test/integration/url/public/vercel.png?_=ssg', 'https://github.com/vercel/next.js/raw/canary/test/e2e/url-imports/public/vercel.png?_=ssg',
import.meta.url import.meta.url
) )
......
import value from 'http://localhost:12345/value2.js' import value from 'http://localhost:12345/value2.js'
const url = new URL( const url = new URL(
'https://github.com/vercel/next.js/raw/canary/test/integration/url/public/vercel.png?_=ssr', 'https://github.com/vercel/next.js/raw/canary/test/e2e/url-imports/public/vercel.png?_=ssr',
import.meta.url import.meta.url
) )
......
import value from 'http://localhost:12345/value3.js' import value from 'http://localhost:12345/value3.js'
const url = new URL( const url = new URL(
'https://github.com/vercel/next.js/raw/canary/test/integration/url/public/vercel.png?_=static', 'https://github.com/vercel/next.js/raw/canary/test/e2e/url-imports/public/vercel.png?_=static',
import.meta.url import.meta.url
) )
......
...@@ -151,6 +151,7 @@ const isReact18 = parseInt(process.env.NEXT_TEST_REACT_VERSION) === 18 ...@@ -151,6 +151,7 @@ const isReact18 = parseInt(process.env.NEXT_TEST_REACT_VERSION) === 18
"/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js", "/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js",
"/node_modules/next/dist/compiled/react-is/cjs/react-is.production.js", "/node_modules/next/dist/compiled/react-is/cjs/react-is.production.js",
"/node_modules/next/dist/compiled/react-is/index.js", "/node_modules/next/dist/compiled/react-is/index.js",
"/node_modules/next/dist/compiled/safe-stable-stringify/index.js",
"/node_modules/next/dist/compiled/send/index.js", "/node_modules/next/dist/compiled/send/index.js",
"/node_modules/next/dist/compiled/source-map/source-map.js", "/node_modules/next/dist/compiled/source-map/source-map.js",
"/node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js", "/node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js",
...@@ -239,6 +240,7 @@ const isReact18 = parseInt(process.env.NEXT_TEST_REACT_VERSION) === 18 ...@@ -239,6 +240,7 @@ const isReact18 = parseInt(process.env.NEXT_TEST_REACT_VERSION) === 18
"/node_modules/next/dist/compiled/babel-code-frame/index.js", "/node_modules/next/dist/compiled/babel-code-frame/index.js",
"/node_modules/next/dist/compiled/babel/code-frame.js", "/node_modules/next/dist/compiled/babel/code-frame.js",
"/node_modules/next/dist/compiled/next-server/server.runtime.prod.js", "/node_modules/next/dist/compiled/next-server/server.runtime.prod.js",
"/node_modules/next/dist/compiled/safe-stable-stringify/index.js",
"/node_modules/next/dist/compiled/source-map/source-map.js", "/node_modules/next/dist/compiled/source-map/source-map.js",
"/node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js", "/node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js",
"/node_modules/next/dist/compiled/ws/index.js", "/node_modules/next/dist/compiled/ws/index.js",
......
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