- Add 'test:visualRegression' grunt task. - Run 'test:visualRegression' as part of npm script 'test'. - Add 'clean:screenshots task'. - Clean screenshots/session when funtional tests are run.
12 lines
467 B
JavaScript
12 lines
467 B
JavaScript
module.exports = function (grunt) {
|
|
let modules = Object.keys(grunt.config.get('deepModules'));
|
|
return {
|
|
build: 'build',
|
|
target: 'target',
|
|
screenshots: 'test/screenshots/session',
|
|
testsFromModules: 'build/kibana/node_modules/**/{test,tests}/**',
|
|
deepModuleBins: 'build/kibana/node_modules/*/node_modules/**/.bin/{' + modules.join(',') + '}',
|
|
deepModules: 'build/kibana/node_modules/*/node_modules/**/{' + modules.join(',') + '}/',
|
|
};
|
|
};
|