Skip to content

Commit

Permalink
test: tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Jan 28, 2024
1 parent 6118a17 commit 013be31
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
10 changes: 4 additions & 6 deletions playground/js-sourcemap/__tests__/js-sourcemap.spec.ts
Expand Up @@ -137,18 +137,16 @@ describe.runIf(isBuild)('build tests', () => {
const map = findAssetFile(/after-preload-dynamic.*\.js\.map/)
expect(formatSourcemapForSnapshot(JSON.parse(map))).toMatchInlineSnapshot(`
{
"mappings": "i3BAQA,OAAO,2BAAuB,EAAC,wBAE/B,QAAQ,IAAI,uBAAuB",
"mappings": "22BAAA,QAAQ,IAAI;AAAA;AAAA;AAAA;AAAA,CAIX,QAED,OAAO,2BAAuB,EAAC,wBAE/B,QAAQ,IAAI,uBAAuB",
"sources": [
"../../after-preload-dynamic.js",
],
"sourcesContent": [
"// false-positive sourcemap comment examples
"console.log(\`
false-positive sourcemap comments
//# sourceMappingURL=1.css.map
/*# sourceMappingURL=2.css.map */
;\`
//# sourceMappingURL=3.css.map
/*# sourceMappingURL=4.css.map */
\`
\`)
import('./dynamic/dynamic-foo')
Expand Down
8 changes: 3 additions & 5 deletions playground/js-sourcemap/after-preload-dynamic.js
@@ -1,10 +1,8 @@
// false-positive sourcemap comment examples
console.log(`
false-positive sourcemap comments
//# sourceMappingURL=1.css.map
/*# sourceMappingURL=2.css.map */
;`
//# sourceMappingURL=3.css.map
/*# sourceMappingURL=4.css.map */
`
`)

import('./dynamic/dynamic-foo')

Expand Down

0 comments on commit 013be31

Please sign in to comment.