79 lines
2.3 KiB
Plaintext
79 lines
2.3 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`basic inline-script 1`] = `
|
|
[
|
|
{
|
|
"code": undefined,
|
|
"fileName": "script.body.script.js.js.map",
|
|
"map": undefined,
|
|
"source": "{"version":3,"file":"script.body.script.js.js","sources":["../batman.js","../script.html.body.script.js"],"sourcesContent":["export const b = ()=>'batman';\\nconsole.log(b());\\n","\\n import {b} from \\"./batman.js\\";\\n document.body.appendChild(\\n document.createTextNode(\`Inline script including \${b()}\`)\\n );\\n "],"names":[],"mappings":"AAAO,MAAM,CAAC,GAAG,IAAI,QAAQ,CAAC;AAC9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;;ACCJ,QAAQ,CAAC,IAAI,CAAC,WAAW;AACrC,gBAAgB,QAAQ,CAAC,cAAc,CAAC,CAAC,wBAAwB,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACzE,aAAa"}",
|
|
},
|
|
{
|
|
"code": undefined,
|
|
"fileName": "script.html",
|
|
"map": undefined,
|
|
"source": "<html><head>
|
|
</head>
|
|
<body>
|
|
<script type="module">const b = ()=>'batman';
|
|
console.log(b());
|
|
|
|
document.body.appendChild(
|
|
document.createTextNode(\`Inline script including \${b()}\`)
|
|
);
|
|
//# sourceMappingURL=script.body.script.js.js.map
|
|
</script>
|
|
|
|
|
|
</body></html>",
|
|
},
|
|
]
|
|
`;
|
|
|
|
exports[`basic simple 1`] = `
|
|
[
|
|
{
|
|
"code": "const b = ()=>'batman';
|
|
console.log(b());
|
|
|
|
export { b };
|
|
//# sourceMappingURL=batman.js.map
|
|
",
|
|
"fileName": "batman.js",
|
|
"map": SourceMap {
|
|
"file": "batman.js",
|
|
"mappings": "AAAY,MAAC,CAAC,GAAG,IAAI,SAAS;AAC9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;;;;",
|
|
"names": [],
|
|
"sources": [
|
|
"../batman.js",
|
|
],
|
|
"sourcesContent": [
|
|
"export const b = ()=>'batman';
|
|
console.log(b());
|
|
",
|
|
],
|
|
"version": 3,
|
|
},
|
|
"source": undefined,
|
|
},
|
|
{
|
|
"code": undefined,
|
|
"fileName": "batman.js.map",
|
|
"map": undefined,
|
|
"source": "{"version":3,"file":"batman.js","sources":["../batman.js"],"sourcesContent":["export const b = ()=>'batman';\\nconsole.log(b());\\n"],"names":[],"mappings":"AAAY,MAAC,CAAC,GAAG,IAAI,SAAS;AAC9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;;;;"}",
|
|
},
|
|
{
|
|
"code": undefined,
|
|
"fileName": "index.html",
|
|
"map": undefined,
|
|
"source": "<html><head>
|
|
</head>
|
|
<body>
|
|
<script src="batman.js" type="module"></script>
|
|
|
|
|
|
</body></html>",
|
|
},
|
|
]
|
|
`;
|