Skip to content

Commit 0202ee9

Browse files
committed
[Tests] build tests in test env
1 parent 4352fd6 commit 0202ee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"prepublishOnly": "npm run build",
1515
"pretest": "npm run lint:fix && npm run flow",
1616
"test": "npm run tests-only",
17-
"build:tests": "npm run build && rimraf __tests-built__ && babel __tests__ --out-dir __tests-built__",
17+
"build:tests": "npm run build && rimraf __tests-built__ && BABEL_ENV=test babel __tests__ --out-dir __tests-built__",
1818
"tests-built": "nyc tape '__tests-built__/**/*.js'",
1919
"tests-only": "nyc tape -r @babel/register '__tests__/**/*.js'",
2020
"prepack": "npm run build"

0 commit comments

Comments
 (0)