Yarn test failing in some machines











up vote
0
down vote

favorite












Yarn test is failing. However in other developer machines it successfully running.



● Test suite failed to run



D:xxxconfigjestsetupTests.js:2
import { configure } from 'enzyme';
^^^^^^

SyntaxError: Unexpected token import

at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:316:17)


Note: version of node.js and yarn is same across all machines. All node_modules inside global yarn and global node deleted. Still it is failing.



yarn 1.3.2
node v8.9.4










share|improve this question
























  • Is there a .babelrc file in the project's root on both machines?
    – bamse
    Jul 26 at 8:02















up vote
0
down vote

favorite












Yarn test is failing. However in other developer machines it successfully running.



● Test suite failed to run



D:xxxconfigjestsetupTests.js:2
import { configure } from 'enzyme';
^^^^^^

SyntaxError: Unexpected token import

at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:316:17)


Note: version of node.js and yarn is same across all machines. All node_modules inside global yarn and global node deleted. Still it is failing.



yarn 1.3.2
node v8.9.4










share|improve this question
























  • Is there a .babelrc file in the project's root on both machines?
    – bamse
    Jul 26 at 8:02













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Yarn test is failing. However in other developer machines it successfully running.



● Test suite failed to run



D:xxxconfigjestsetupTests.js:2
import { configure } from 'enzyme';
^^^^^^

SyntaxError: Unexpected token import

at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:316:17)


Note: version of node.js and yarn is same across all machines. All node_modules inside global yarn and global node deleted. Still it is failing.



yarn 1.3.2
node v8.9.4










share|improve this question















Yarn test is failing. However in other developer machines it successfully running.



● Test suite failed to run



D:xxxconfigjestsetupTests.js:2
import { configure } from 'enzyme';
^^^^^^

SyntaxError: Unexpected token import

at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:316:17)


Note: version of node.js and yarn is same across all machines. All node_modules inside global yarn and global node deleted. Still it is failing.



yarn 1.3.2
node v8.9.4







node.js npm jestjs yarnpkg






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 7 at 7:53









skyboyer

2,69511027




2,69511027










asked Jul 24 at 11:01









Gupta Sandeepkumar

17417




17417












  • Is there a .babelrc file in the project's root on both machines?
    – bamse
    Jul 26 at 8:02


















  • Is there a .babelrc file in the project's root on both machines?
    – bamse
    Jul 26 at 8:02
















Is there a .babelrc file in the project's root on both machines?
– bamse
Jul 26 at 8:02




Is there a .babelrc file in the project's root on both machines?
– bamse
Jul 26 at 8:02

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51496974%2fyarn-test-failing-in-some-machines%23new-answer', 'question_page');
}
);

Post as a guest





































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51496974%2fyarn-test-failing-in-some-machines%23new-answer', 'question_page');
}
);

Post as a guest




















































































這個網誌中的熱門文章

Tangent Lines Diagram Along Smooth Curve

Yusuf al-Mu'taman ibn Hud

Zucchini