aboutsummaryrefslogtreecommitdiff
path: root/integration
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-09-27 01:45:53 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-09-27 01:45:53 -0700
commit54dc9cfc8be040e04d0b5d10c5801f33433ec53e (patch)
tree4dad6d4c7d703f1873d0947acf71fd55409fec3d /integration
parent1ed51e88669a28b159018f005cab1db4942d9703 (diff)
downloadbun-54dc9cfc8be040e04d0b5d10c5801f33433ec53e.tar.gz
bun-54dc9cfc8be040e04d0b5d10c5801f33433ec53e.tar.zst
bun-54dc9cfc8be040e04d0b5d10c5801f33433ec53e.zip
upgrade
Diffstat (limited to 'integration')
-rw-r--r--integration/snapshots/multiple-imports.hmr.js7
-rw-r--r--integration/snapshots/multiple-imports.js7
-rw-r--r--integration/snapshots/spread_with_key.hmr.tsx7
-rw-r--r--integration/snapshots/spread_with_key.tsx7
-rw-r--r--integration/snapshots/styledcomponents-output.hmr.js8
-rw-r--r--integration/snapshots/styledcomponents-output.js8
6 files changed, 14 insertions, 30 deletions
diff --git a/integration/snapshots/multiple-imports.hmr.js b/integration/snapshots/multiple-imports.hmr.js
index dc222cf25..c4a089fd9 100644
--- a/integration/snapshots/multiple-imports.hmr.js
+++ b/integration/snapshots/multiple-imports.hmr.js
@@ -10,7 +10,7 @@ __HMRModule as HMR
import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
var JSXClassic = require($bbcd215f);
-var jsx = require(JSX).jsxDEV, fileName = "multiple-imports.js", JSXFrag = require(JSXClassic).Fragment;
+var jsx = require(JSX).jsxDEV, JSXFrag = require(JSXClassic).Fragment;
var { default: React} = require($bbcd215f);
var { default: React2} = require($bbcd215f);
@@ -21,10 +21,7 @@ var hmr = new HMR(2165509932, "multiple-imports.js"), exports = hmr.exports;
const bacon = React;
const bacon2 = jsx(JSXFrag, {
children: ["hello"]
- }, undefined, true, {
- fileName,
- lineNumber: 92
- }, this);
+ }, undefined, true, {}, this);
function test() {
console.assert(bacon === React);
console.assert(bacon === React2);
diff --git a/integration/snapshots/multiple-imports.js b/integration/snapshots/multiple-imports.js
index b96b270cf..dd2c11d93 100644
--- a/integration/snapshots/multiple-imports.js
+++ b/integration/snapshots/multiple-imports.js
@@ -4,7 +4,7 @@ __require as require
import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
var JSXClassic = require($bbcd215f);
-var jsx = require(JSX).jsxDEV, fileName = "multiple-imports.js", JSXFrag = require(JSXClassic).Fragment;
+var jsx = require(JSX).jsxDEV, JSXFrag = require(JSXClassic).Fragment;
var { default: React} = require($bbcd215f);
var { default: React2} = require($bbcd215f);
@@ -12,10 +12,7 @@ const bacon = React;
const bacon2 = jsx(JSXFrag, {
children: ["hello"]
-}, undefined, true, {
- fileName,
- lineNumber: 92
-}, this);
+}, undefined, true, {}, this);
export function test() {
console.assert(bacon === React);
console.assert(bacon === React2);
diff --git a/integration/snapshots/spread_with_key.hmr.tsx b/integration/snapshots/spread_with_key.hmr.tsx
index 093d061da..0209cb3e2 100644
--- a/integration/snapshots/spread_with_key.hmr.tsx
+++ b/integration/snapshots/spread_with_key.hmr.tsx
@@ -10,7 +10,7 @@ __HMRModule as HMR
import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
var JSXClassic = require($bbcd215f);
-var jsx = require(JSX).jsxDEV, fileName = "spread_with_key.tsx", jsxEl = require(JSXClassic).createElement;
+var jsx = require(JSX).jsxDEV, jsxEl = require(JSXClassic).createElement;
var { default: React} = require($bbcd215f);
Bun.activate(false);
@@ -31,10 +31,7 @@ var hmr = new HMR(2717584935, "spread_with_key.tsx"), exports = hmr.exports;
function test() {
console.assert(React.isValidElement(jsx(SpreadWithTheKey, {
className: "foo"
- }, undefined, true, {
- fileName,
- lineNumber: 375
- }, this)));
+ }, undefined, true, {}, this)));
return testDone(import.meta.url);
}
hmr.exportAll({
diff --git a/integration/snapshots/spread_with_key.tsx b/integration/snapshots/spread_with_key.tsx
index 1490c9b1a..f6cd64c31 100644
--- a/integration/snapshots/spread_with_key.tsx
+++ b/integration/snapshots/spread_with_key.tsx
@@ -4,7 +4,7 @@ __require as require
import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
var JSXClassic = require($bbcd215f);
-var jsx = require(JSX).jsxDEV, fileName = "spread_with_key.tsx", jsxEl = require(JSXClassic).createElement;
+var jsx = require(JSX).jsxDEV, jsxEl = require(JSXClassic).createElement;
var { default: React} = require($bbcd215f);
export function SpreadWithTheKey({
@@ -23,9 +23,6 @@ export function SpreadWithTheKey({
export function test() {
console.assert(React.isValidElement(jsx(SpreadWithTheKey, {
className: "foo"
- }, undefined, true, {
- fileName,
- lineNumber: 375
- }, this)));
+ }, undefined, true, {}, this)));
return testDone(import.meta.url);
}
diff --git a/integration/snapshots/styledcomponents-output.hmr.js b/integration/snapshots/styledcomponents-output.hmr.js
index 20066f16f..f3743d4a3 100644
--- a/integration/snapshots/styledcomponents-output.hmr.js
+++ b/integration/snapshots/styledcomponents-output.hmr.js
@@ -8,7 +8,7 @@ import {
__HMRModule as HMR
} from "http://localhost:8080/__runtime.js";
import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
-var jsx = require(JSX).jsxDEV, fileName = "styledcomponents-output.js";
+var jsx = require(JSX).jsxDEV;
import * as $d4051a2e from "http://localhost:8080/node_modules/styled-components/dist/styled-components.browser.esm.js";
var { default: styled} = require($d4051a2e);
@@ -54,16 +54,14 @@ var hmr = new HMR(1290604342, "styledcomponents-output.js"), exports = hmr.expor
ReactDOM.render(jsx(ErrorScreenRoot, {
id: "error-el",
children: ["The react child should have this text"]
- }, undefined, true, {
- fileName,
- lineNumber: 805
- }, this), reactEl);
+ }, undefined, true, {}, this), reactEl);
const style = document.querySelector("style[data-styled]");
console.assert(style, "style tag should exist");
console.assert(style.textContent.split("").every((a) => a.codePointAt(0) < 128), "style tag should not contain invalid unicode codepoints");
console.assert(document.querySelector("#error-el").textContent === "The react child should have this text");
ReactDOM.unmountComponentAtNode(reactEl);
reactEl.remove();
+ style.remove();
testDone(import.meta.url);
}
hmr.exportAll({
diff --git a/integration/snapshots/styledcomponents-output.js b/integration/snapshots/styledcomponents-output.js
index 38da378e6..54464dc9a 100644
--- a/integration/snapshots/styledcomponents-output.js
+++ b/integration/snapshots/styledcomponents-output.js
@@ -2,7 +2,7 @@ import {
__require as require
} from "http://localhost:8080/__runtime.js";
import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
-var jsx = require(JSX).jsxDEV, fileName = "styledcomponents-output.js";
+var jsx = require(JSX).jsxDEV;
import * as $d4051a2e from "http://localhost:8080/node_modules/styled-components/dist/styled-components.browser.esm.js";
var { default: styled} = require($d4051a2e);
@@ -45,15 +45,13 @@ export function test() {
ReactDOM.render(jsx(ErrorScreenRoot, {
id: "error-el",
children: ["The react child should have this text"]
- }, undefined, true, {
- fileName,
- lineNumber: 805
- }, this), reactEl);
+ }, undefined, true, {}, this), reactEl);
const style = document.querySelector("style[data-styled]");
console.assert(style, "style tag should exist");
console.assert(style.textContent.split("").every((a) => a.codePointAt(0) < 128), "style tag should not contain invalid unicode codepoints");
console.assert(document.querySelector("#error-el").textContent === "The react child should have this text");
ReactDOM.unmountComponentAtNode(reactEl);
reactEl.remove();
+ style.remove();
testDone(import.meta.url);
}