Skip to content

Commit

Permalink
fix: sort dry-run output (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wil Wilsman authored Apr 1, 2020
1 parent ad16d9a commit ae36f5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,6 @@ export default class Snapshot extends PercyCommand {
const ignore = parseGlobs(configuration['ignore-files'])
const paths = await globby(globs, { cwd: configuration.path, ignore })

console.log(paths.map((p) => configuration['base-url'] + p).join('\n'))
console.log(paths.map((p) => configuration['base-url'] + p).sort().join('\n'))
}
}
2 changes: 1 addition & 1 deletion src/services/image-snapshot-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default class ImageSnapshotService extends PercyClientService {
async snapshotAll({ dry = false }: { dry?: boolean } = {}) {
const globs = parseGlobs(this.configuration.files)
const ignore = parseGlobs(this.configuration.ignore)
const paths = await globby(globs, { cwd: this.configuration.path, ignore })
const paths = (await globby(globs, { cwd: this.configuration.path, ignore })).sort()
let error

if (!paths.length) {
Expand Down

0 comments on commit ae36f5a

Please sign in to comment.