Commit b2c666ff authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'winh-jest-wrong-file-error' into 'master'

Show error if Jest is used with Karma files

See merge request !17019
parents 34a14995 570921c3
Pipeline #82964922 passed with stages
in 44 minutes and 2 seconds
......@@ -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