Skip to content

Commit

Permalink
Try to fix AppVeyor (facebook#11702)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored and madeinfree committed Nov 30, 2017
1 parent 5bab5e0 commit 0a53c41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react/src/__tests__/ReactClassEquivalence-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ describe('ReactClassEquivalence', () => {

function runJest(testFile) {
var cwd = process.cwd();
var result = spawnSync('yarn', ['test', testFile], {
var extension = process.platform === 'win32' ? '.cmd' : '';
var result = spawnSync('yarn' + extension, ['test', testFile], {
cwd,
env: Object.assign({}, process.env, {
REACT_CLASS_EQUIVALENCE_TEST: 'true',
Expand Down

0 comments on commit 0a53c41

Please sign in to comment.