Skip to content

Commit

Permalink
test: remove react jsxdev test (per machine snapshot)
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Oct 7, 2023
1 parent 550b142 commit cfcd6c5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 60 deletions.
51 changes: 0 additions & 51 deletions test/__snapshots__/index.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -88,23 +88,6 @@ export { Foo };
`;

exports[`rollup-plugin-swc3 swc (rollup 2) react 17 jsx transform 2`] = `
"import { jsxDEV } from 'react/jsx-dev-runtime';
function Foo() {
return /*#__PURE__*/ jsxDEV(\\"div\\", {
children: \\"foo\\"
}, void 0, false, {
fileName: \\"/Volumes/rolluppluginswc3test/rollup2/rollup-plugin-swc/react-17-jsx-transform/index.tsx\\",
lineNumber: 1,
columnNumber: 32
}, this);
}
export { Foo };
"
`;

exports[`rollup-plugin-swc3 swc (rollup 2) react 17 jsx transform 3`] = `
"import { jsx } from '@compiled/react/jsx-runtime';
function Foo() {
Expand Down Expand Up @@ -373,23 +356,6 @@ export { Foo };
`;

exports[`rollup-plugin-swc3 swc (rollup 3) react 17 jsx transform 2`] = `
"import { jsxDEV } from 'react/jsx-dev-runtime';
function Foo() {
return /*#__PURE__*/ jsxDEV(\\"div\\", {
children: \\"foo\\"
}, void 0, false, {
fileName: \\"/Volumes/rolluppluginswc3test/rollup3/rollup-plugin-swc/react-17-jsx-transform/index.tsx\\",
lineNumber: 1,
columnNumber: 32
}, this);
}
export { Foo };
"
`;

exports[`rollup-plugin-swc3 swc (rollup 3) react 17 jsx transform 3`] = `
"import { jsx } from '@compiled/react/jsx-runtime';
function Foo() {
Expand Down Expand Up @@ -658,23 +624,6 @@ export { Foo };
`;

exports[`rollup-plugin-swc3 swc (rollup 4) react 17 jsx transform 2`] = `
"import { jsxDEV } from 'react/jsx-dev-runtime';
function Foo() {
return /*#__PURE__*/ jsxDEV(\\"div\\", {
children: \\"foo\\"
}, void 0, false, {
fileName: \\"/Volumes/rolluppluginswc3test/rollup4/rollup-plugin-swc/react-17-jsx-transform/index.tsx\\",
lineNumber: 1,
columnNumber: 32
}, this);
}
export { Foo };
"
`;

exports[`rollup-plugin-swc3 swc (rollup 4) react 17 jsx transform 3`] = `
"import { jsx } from '@compiled/react/jsx-runtime';
function Foo() {
Expand Down

This file was deleted.

4 changes: 0 additions & 4 deletions test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,6 @@ const tests = (rollupImpl: typeof rollup2 | typeof rollup3 | typeof rollup4, iso
await build(rollupImpl, { tsconfig: 'tsconfig.react-jsx.json' }, { input: './index.tsx', dir, external: 'react/jsx-runtime' })
)[0].code.should.matchSnapshot();

(
await build(rollupImpl, { tsconfig: 'tsconfig.react-jsxdev.json' }, { input: './index.tsx', dir, external: 'react/jsx-dev-runtime' })
)[0].code.should.matchSnapshot();

(
await build(rollupImpl, { tsconfig: 'tsconfig.compiled.json' }, { input: './index.tsx', dir, external: '@compiled/react/jsx-runtime' })
)[0].code.should.matchSnapshot();
Expand Down

0 comments on commit cfcd6c5

Please sign in to comment.