Commit 570921c3 authored by Winnie Hellmann's avatar Winnie Hellmann Committed by Kushal Pandya

Show error if Jest is used with Karma files

parent 34a14995
......@@ -63,3 +63,15 @@ module.exports = {
IS_EE,
},
};
const karmaTestFile = process.argv.find(arg => arg.includes('spec/javascripts/'));
if (karmaTestFile) {
console.error(`
Files in spec/javascripts/ and ee/spec/javascripts need to be run with Karma.
Please use the following command instead:
yarn karma -f ${karmaTestFile}
`);
process.exit(1);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment