summaryrefslogtreecommitdiff
path: root/packages/astro/test/ssr-split-manifest.test.js
diff options
context:
space:
mode:
authorGravatar Bjorn Lu <bjornlu.dev@gmail.com> 2023-10-20 21:15:30 +0800
committerGravatar GitHub <noreply@github.com> 2023-10-20 21:15:30 +0800
commitc36d80a888a4b953fe9e7ed5a42c52e45e4b6e80 (patch)
treefb85fafd49f9ef7545c994e871434aea067e5fd4 /packages/astro/test/ssr-split-manifest.test.js
parent326e178933f7a22f4e897b763832619f168b53dd (diff)
downloadastro-c36d80a888a4b953fe9e7ed5a42c52e45e4b6e80.tar.gz
astro-c36d80a888a4b953fe9e7ed5a42c52e45e4b6e80.tar.zst
astro-c36d80a888a4b953fe9e7ed5a42c52e45e4b6e80.zip
Handle Rollup 4 hash change (#8875)
Diffstat (limited to '')
-rw-r--r--packages/astro/test/ssr-split-manifest.test.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/astro/test/ssr-split-manifest.test.js b/packages/astro/test/ssr-split-manifest.test.js
index 7df104e76..89c8e00ef 100644
--- a/packages/astro/test/ssr-split-manifest.test.js
+++ b/packages/astro/test/ssr-split-manifest.test.js
@@ -45,7 +45,9 @@ describe('astro:ssr-manifest, split', () => {
const html = await response.text();
const $ = cheerio.load(html);
- expect($('#assets').text()).to.equal('["/_astro/index.a8a337e4.css","/prerender/index.html"]');
+ expect($('#assets').text()).to.match(
+ /\["\/_astro\/index\.([\w-]{8})\.css","\/prerender\/index\.html"\]/
+ );
});
it('should give access to entry points that exists on file system', async () => {