Skip to content

Commit 40b6970

Browse files
committed
update more test
1 parent f6f0581 commit 40b6970

File tree

14 files changed

+25
-25
lines changed
  • crates
    • swc_ecma_transforms_compat/tests
    • swc_ecma_transforms_react/tests

14 files changed

+25
-25
lines changed

crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2018_object_rest_spread.rs/rest_export.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// ExportNamedDeclaration
21
var { b } = asdf2, c = _object_without_properties(asdf2, [
32
"b"
43
]);
4+
// ExportNamedDeclaration
55
export { b, c };
66
// Skip
77
export var { bb, cc } = ads;

crates/swc_ecma_transforms_compat/tests/optional-chaining/private-field-call/output.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// @target: es2015
21
var _fieldFunc = /*#__PURE__*/ new WeakMap();
2+
// @target: es2015
33
class A {
44
test() {
55
var _this, _this1, _ref;

crates/swc_ecma_transforms_react/tests/__swc_snapshots__/src/refresh/tests.rs/issue_6022.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/* @refresh reset */ var _s = $RefreshSig$();
2-
import { useState } from 'react';
1+
var _s = $RefreshSig$();
2+
/* @refresh reset */ import { useState } from 'react';
33
function Counter() {
44
_s();
55
const [count, setCount] = useState(0);

crates/swc_ecma_transforms_react/tests/integration/fixture/with-pragma/output.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**@jsxRuntime automatic */ import { jsxDEV as _jsxDEV, Fragment as _Fragment } from "react/jsx-dev-runtime";
2-
const App = /*#__PURE__*/ _jsxDEV("div", {
1+
import { jsxDEV as _jsxDEV, Fragment as _Fragment } from "react/jsx-dev-runtime";
2+
/**@jsxRuntime automatic */ const App = /*#__PURE__*/ _jsxDEV("div", {
33
children: [
44
/*#__PURE__*/ _jsxDEV("div", {}, void 0, false, {
55
fileName: "input.js",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** @jsxImportSource baz */ import { jsx as _jsx } from "baz/jsx-runtime";
2-
var x = /*#__PURE__*/ _jsx("div", {
1+
import { jsx as _jsx } from "baz/jsx-runtime";
2+
/** @jsxImportSource baz */ var x = /*#__PURE__*/ _jsx("div", {
33
children: /*#__PURE__*/ _jsx("span", {})
44
});
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @jsxImportSource react */ import { jsx as _jsx } from "react/jsx-runtime";
2-
const p = ()=>/*#__PURE__*/ _jsx("div", {
1+
import { jsx as _jsx } from "react/jsx-runtime";
2+
/* @jsxImportSource react */ const p = ()=>/*#__PURE__*/ _jsx("div", {
33
children: "Hello World"
44
});

crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-4703/1/output.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/** @jsx foo */ import { jsx as _jsx } from "react/jsx-runtime";
2-
function ProductItem() {
1+
import { jsx as _jsx } from "react/jsx-runtime";
2+
/** @jsx foo */ function ProductItem() {
33
return /*#__PURE__*/ _jsx("div", {
44
children: "Hello World"
55
});
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
/* @jsx h */ /*#__PURE__*/ import { jsx as _jsx } from "react/jsx-runtime";
2-
_jsx("div", {});
1+
import { jsx as _jsx } from "react/jsx-runtime";
2+
/* @jsx h */ /*#__PURE__*/ _jsx("div", {});
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
/* @jsx h */ /*#__PURE__*/ import { jsx as _jsx } from "react/jsx-runtime";
2-
_jsx("div", {});
1+
import { jsx as _jsx } from "react/jsx-runtime";
2+
/* @jsx h */ /*#__PURE__*/ _jsx("div", {});
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
/* @jsx h */ /*#__PURE__*/ import { jsx as _jsx } from "react/jsx-runtime";
2-
_jsx("div", {});
1+
import { jsx as _jsx } from "react/jsx-runtime";
2+
/* @jsx h */ /*#__PURE__*/ _jsx("div", {});

0 commit comments

Comments
 (0)