mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-25 16:03:48 +00:00
Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
17
jest.config.js
Normal file
17
jest.config.js
Normal file
@ -0,0 +1,17 @@
|
||||
const baseConfig = require('./jest.config.base');
|
||||
|
||||
module.exports = {
|
||||
...baseConfig('spec/frontend'),
|
||||
};
|
||||
|
||||
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);
|
||||
}
|
Reference in New Issue
Block a user