2023-05-20 21:57:36 +02:00

4.5 KiB

Snapshot report for test/multi-entry/test.js

The actual snapshot is saved in test.js.snap.

Generated by AVA.

multi-entry

Snapshot 1

[
  {
    code: undefined,
    fileName: 'admin/index.html',
    map: undefined,
    source: `<html><head>␊
        </head>␊
        <body>␊
            <div id="root"></div>␊
            <script type="module">import { b as bootstrap } from '../app-01141b67.js';␊
    ␊
    function adminDeps(){␊
        return "robin!";␊
    }␊
    ␊
    bootstrap(document.getElementById('root'), adminDeps());␊
    //# sourceMappingURL=index.html.body.script.js-15dfaff3.js.map␊
    </script>␊
        ␊
    ␊
    </body></html>`,
  },
  {
    code: undefined,
    fileName: 'admin/index.html.body.script.js-15dfaff3.js.map',
    map: undefined,
    source: '{"version":3,"file":"index.html.body.script.js-15dfaff3.js","sources":["../../app/admin-deps.js","../../admin/index.html.body.script.js"],"sourcesContent":["export function adminDeps(){\\n    return \\"robin!\\";\\n}\\n","\\n            import {bootstrap} from \\"../app/app.js\\"\\n            import {adminDeps} from \\"../app/admin-deps.js\\";\\n            bootstrap(document.getElementById(\'root\'), adminDeps());\\n        "],"names":[],"mappings":";;AAAO,SAAS,SAAS,EAAE;AAC3B,IAAI,OAAO,QAAQ,CAAC;AACpB;;ACCY,SAAS,CAAC,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC"}',
  },
  {
    code: `const bootstrap = (el,deps = [])=>{␊
        el.innerHtml = \`␊
            <div>I'm "annoying" ${"in case we need to test \\\`string\\\` escaping."}. Hence this file \\'tries\\' to include all allowed forms of 'it'</div>␊
            <div>Deps: ${deps}</div>␊
        \`;␊
    };␊
    ␊
    export { bootstrap as b };␊
    //# sourceMappingURL=app-01141b67.js.map␊
    `,
    fileName: 'app-01141b67.js',
    map: SourceMap {
      file: 'app-01141b67.js',
      mappings: 'AAAY,MAAC,SAAS,GAAG,CAAC,EAAE,CAAC,IAAI,GAAG,EAAE,GAAG;AACzC,IAAI,EAAE,CAAC,SAAS,GAAG,CAAC;AACpB,4BAA4B,EAAE,8CAA8C,CAAC;AAC7E,mBAAmB,EAAE,IAAI,CAAC;AAC1B,IAAI,CAAC,CAAC;AACN;;;;',
      names: [],
      sources: [
        '../app/app.js',
      ],
      sourcesContent: [
        `export const bootstrap = (el,deps = [])=>{␊
            el.innerHtml = \`␊
                <div>I'm "annoying" ${"in case we need to test \\\`string\\\` escaping."}. Hence this file \\'tries\\' to include all allowed forms of 'it'</div>␊
                <div>Deps: ${deps}</div>␊
            \`;␊
        }␊
        `,
      ],
      version: 3,
    },
    source: undefined,
  },
  {
    code: undefined,
    fileName: 'app-01141b67.js.map',
    map: undefined,
    source: '{"version":3,"file":"app-01141b67.js","sources":["../app/app.js"],"sourcesContent":["export const bootstrap = (el,deps = [])=>{\\n    el.innerHtml = `\\n        <div>I\'m \\"annoying\\" ${\\"in case we need to test \\\\`string\\\\` escaping.\\"}. Hence this file \\\\\'tries\\\\\' to include all allowed forms of \'it\'</div>\\n        <div>Deps: ${deps}</div>\\n    `;\\n}\\n"],"names":[],"mappings":"AAAY,MAAC,SAAS,GAAG,CAAC,EAAE,CAAC,IAAI,GAAG,EAAE,GAAG;AACzC,IAAI,EAAE,CAAC,SAAS,GAAG,CAAC;AACpB,4BAA4B,EAAE,8CAA8C,CAAC;AAC7E,mBAAmB,EAAE,IAAI,CAAC;AAC1B,IAAI,CAAC,CAAC;AACN;;;;"}',
  },
  {
    code: undefined,
    fileName: 'index.html',
    map: undefined,
    source: `<html><head>␊
        </head>␊
        <body>␊
            <div id="root"></div>␊
            <script type="module">import { b as bootstrap } from './app-01141b67.js';␊
    ␊
    bootstrap(document.getElementById('root'), "<none>");␊
    //# sourceMappingURL=index.html.body.script.js-45303f0f.js.map␊
    </script>␊
        ␊
    ␊
    </body></html>`,
  },
  {
    code: undefined,
    fileName: 'index.html.body.script.js-45303f0f.js.map',
    map: undefined,
    source: '{"version":3,"file":"index.html.body.script.js-45303f0f.js","sources":["../index.html.body.script.js"],"sourcesContent":["\\n            import {bootstrap} from \\"./app/app.js\\"\\n            bootstrap(document.getElementById(\'root\'), \\"<none>\\");\\n        "],"names":[],"mappings":";;AAEY,SAAS,CAAC,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC"}',
  },
]