@@ -18,6 +18,7 @@
// block until its output is completed, dumping it all into the parser.
const {format, same, strict, match} = require('tcompare')
+const formatSnapshotDefault = obj => format(obj, { sort: true })
const Base = require('./base.js')
const Spawn = require('./spawn.js')
const Stdin = require('./stdin.js')
@@ -1232,7 +1233,7 @@
// use notOk because snap doesn't return a truthy value
const m = this.fullname + ' > ' + message
if (typeof found !== 'string')
- found = (this.formatSnapshot || format)(found)
+ found = (this.formatSnapshot || formatSnapshotDefault)(found)
found = this.cleanSnapshot(found)