Skip to content

Commit

Permalink
test(babel-preset-gatsby): Remove beforeEach in tests on production env
Browse files Browse the repository at this point in the history
  • Loading branch information
luisFilipePT committed Jun 28, 2019
1 parent 1058936 commit 488b9a0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/babel-preset-gatsby/src/__tests__/index.js
Expand Up @@ -121,11 +121,9 @@ it(`Allows to configure browser targets`, () => {
})

describe(`in production mode`, () => {
beforeEach(() => {
it(`specifies proper presets`, () => {
process.env.GATSBY_BUILD_STAGE = `build-javascript`
})

it(`specifies proper presets`, () => {
const targets = `last 1 version`
const { presets, plugins } = preset(null, { targets })

Expand Down

0 comments on commit 488b9a0

Please sign in to comment.