Skip to content

Commit

Permalink
Update test input
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinweber committed May 27, 2020
1 parent 1a9706e commit 18155d4
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -504,10 +504,15 @@ describe('ReactFreshBabelPlugin', () => {
it("respects Babel's envName option", () => {
const envName = 'random';
expect(() =>
transform(`export default function BabelEnv () { return null };`, {
envName,
skipEnvCheck: false,
}),
transform(
`export default function Foo() {
return <h1>Hi</h1>;
}`,
{
envName,
skipEnvCheck: false,
},
),
).toThrowError(
'React Refresh Babel transform should only be enabled in development environment. ' +
'Instead, the environment is: "' +
Expand Down

0 comments on commit 18155d4

Please sign in to comment.