Skip to content

Commit

Permalink
test: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Jan 2, 2024
1 parent 0cd4f82 commit 43c64d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions playground/js-sourcemap/__tests__/js-sourcemap.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,10 @@ describe.runIf(isBuild)('build tests', () => {
"version": 3,
}
`)
//
const js = findAssetFile(/after-preload-dynamic.*\.js$/)
expect(js.trim().split('\n').at(-1)).toMatch(
/^\/\/# sourceMappingURL=after-preload-dynamic.*\.js\.map$/,
)
})
})

0 comments on commit 43c64d4

Please sign in to comment.