The actual snapshot is saved in test.js.snap
.
Generated by AVA.
Snapshot 1
`'use strict';␊
␊
var require$$0 = "default";␊
␊
var main = require$$0;␊
␊
module.exports = main;␊
`
Snapshot 1
`'use strict';␊
␊
function getAugmentedNamespace(n) {␊
var f = n.default;␊
if (typeof f == "function") {␊
var a = function () {␊
return f.apply(this, arguments);␊
};␊
a.prototype = f.prototype;␊
} else a = {};␊
Object.defineProperty(a, '__esModule', {value: true});␊
Object.keys(n).forEach(function (k) {␊
var d = Object.getOwnPropertyDescriptor(n, k);␊
Object.defineProperty(a, k, d.get ? d : {␊
enumerable: true,␊
get: function () {␊
return n[k];␊
}␊
});␊
});␊
return a;␊
}␊
␊
const value = "value";␊
␊
var esm = /*#__PURE__*/Object.freeze({␊
__proto__: null,␊
value: value␊
});␊
␊
var require$$0 = /*@__PURE__*/getAugmentedNamespace(esm);␊
␊
var main = require$$0;␊
␊
module.exports = main;␊
`
Snapshot 1
`'use strict';␊
␊
Object.defineProperty(exports, '__esModule', { value: true });␊
␊
var main = {};␊
␊
/* eslint-disable */␊
␊
function shuffleArray(array) {␊
for (let i = array.length - 1; i > 0; i--) {␊
const j = Math.floor(Math.random() * (i + 1));␊
[array[i], array[j]] = [array[j], array[i]];␊
}␊
}␊
␊
var shuffleArray_1 = main.shuffleArray = shuffleArray;␊
␊
exports["default"] = main;␊
exports.shuffleArray = shuffleArray_1;␊
`
Snapshot 1
`'use strict';␊
␊
const obj = {␊
a: 'b',␊
b: 'c'␊
};␊
␊
var main = {␊
...obj␊
};␊
␊
module.exports = main;␊
`
Snapshot 1
`var foo$1 = 21;␊
␊
const foo = foo$1;␊
␊
if (typeof exports !== 'undefined') {␊
throw new Error('There should be no global exports in an ES module');␊
}␊
␊
export { foo as default };␊
`