Skip to content

Commit

Permalink
Upgrade Fresh test to Babel 7 transform
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Apr 21, 2020
1 parent cceb1fb commit 3f4bea8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ describe('ReactFreshBabelPlugin', () => {
}
`,
{
plugins: ['transform-es2015-modules-commonjs'],
plugins: ['@babel/transform-modules-commonjs'],
},
),
).toMatchSnapshot();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,13 +289,12 @@ exports[`ReactFreshBabelPlugin includes custom hooks into the signatures when co
Object.defineProperty(exports, "__esModule", {
value: true
});
var _s = $RefreshSig$();
exports.default = App;
var _hooks = require("./hooks");
var _s = $RefreshSig$();
function App() {
_s();
Expand Down

0 comments on commit 3f4bea8

Please sign in to comment.