From a0cca53b58e3b0e6c7318d28476e27ba6e5146c7 Mon Sep 17 00:00:00 2001 From: Oleg Levshin Date: Mon, 17 Feb 2020 17:04:27 +0300 Subject: [PATCH] fix: Remove hardcoded tests directory path pattern --- show-snapshots.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/show-snapshots.js b/show-snapshots.js index cec6298..7b7bee2 100644 --- a/show-snapshots.js +++ b/show-snapshots.js @@ -7,7 +7,7 @@ let fs = require('fs') let readFile = promisify(fs.readFile) module.exports = async function showSnapshots (print, cwd, filter) { - let snaps = await globby('**/test/**/*.snap', { + let snaps = await globby('**/*.snap', { cwd, ignore: ['node_modules'] })