Skip to content

Commit 7642d35

Browse files
test(e2e): update inline chunk html runtime expectations
Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
1 parent cf44bf9 commit 7642d35

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/e2e/builder/cases/inline-chunk/index.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ test('inline runtime chunk by default', async ({ page }) => {
8787
),
8888
).toBe(true);
8989

90-
// found builder-runtime file in html
90+
// builder runtime is referenced externally instead of inlined
9191
const indexHtml =
9292
files[path.resolve(__dirname, './dist/html/index/index.html')];
9393

94-
expect(isRuntimeChunkInHtml(indexHtml)).toBeTruthy();
94+
expect(isRuntimeChunkInHtml(indexHtml)).toBeFalsy();
9595

9696
builder.close();
9797
});
@@ -141,14 +141,14 @@ test('inline runtime chunk by default with multiple entries', async () => {
141141
),
142142
).toBe(true);
143143

144-
// found builder-runtime file in html
144+
// builder runtime is referenced externally instead of inlined
145145
const indexHtml =
146146
files[path.resolve(__dirname, './dist/html/index/index.html')];
147147
const anotherHtml =
148148
files[path.resolve(__dirname, './dist/html/another/index.html')];
149149

150-
expect(isRuntimeChunkInHtml(indexHtml)).toBeTruthy();
151-
expect(isRuntimeChunkInHtml(anotherHtml)).toBeTruthy();
150+
expect(isRuntimeChunkInHtml(indexHtml)).toBeFalsy();
151+
expect(isRuntimeChunkInHtml(anotherHtml)).toBeFalsy();
152152
});
153153

154154
test('using RegExp to inline scripts', async () => {

0 commit comments

Comments
 (0)