mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* [mkdirp] remove in favor of recursive fs.mkdir * add eslint rule to educate future contributors * reword the eslint error message to prevent copy-pasting callback code * Commit updated kbn-pm dist Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co> * Fix typo Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co> # Conflicts: # renovate.json5
This commit is contained in:
parent
146689829b
commit
bbacb1c365
51 changed files with 177 additions and 220 deletions
|
@ -25,7 +25,6 @@ import Handlebars from 'handlebars';
|
|||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import imageDiff from 'image-diff';
|
||||
import mkdirp from 'mkdirp';
|
||||
import moment from 'moment';
|
||||
import SimpleGit from 'simple-git';
|
||||
|
||||
|
@ -77,8 +76,8 @@ async function compareScreenshots() {
|
|||
const SESSION_SCREENSHOTS_DIR = path.resolve(SCREENSHOTS_DIR, 'session');
|
||||
|
||||
// We don't need to create the baseline dir because it's committed.
|
||||
mkdirp.sync(DIFF_SCREENSHOTS_DIR);
|
||||
mkdirp.sync(SESSION_SCREENSHOTS_DIR);
|
||||
fs.mkdirSync(DIFF_SCREENSHOTS_DIR, { recursive: true });
|
||||
fs.mkdirSync(SESSION_SCREENSHOTS_DIR, { recursive: true });
|
||||
const files = await readDirAsync(SESSION_SCREENSHOTS_DIR);
|
||||
const screenshots = files.filter(file => file.indexOf('.png') !== -1);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue