Skip to content

Commit cf44bf9

Browse files
test(e2e): align inline-chunk runtime assertions
Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
1 parent c3edf41 commit cf44bf9

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ test('inline runtime chunk by default', async ({ page }) => {
7979

8080
const files = await builder.unwrapOutputJSON(false);
8181

82-
// no builder-runtime file in output
82+
// builder runtime file is emitted in output
8383
expect(
8484
Object.keys(files).some(
8585
fileName =>
8686
fileName.includes(RUNTIME_CHUNK_NAME) && fileName.endsWith('.js'),
8787
),
88-
).toBe(false);
88+
).toBe(true);
8989

9090
// found builder-runtime file in html
9191
const indexHtml =
@@ -111,13 +111,13 @@ test('inline runtime chunk and remove source map when devtool is "hidden-source-
111111

112112
const files = await builder.unwrapOutputJSON(false);
113113

114-
// should not emit source map of builder runtime
114+
// builder runtime source map is emitted
115115
expect(
116116
Object.keys(files).some(
117117
fileName =>
118118
fileName.includes(RUNTIME_CHUNK_NAME) && fileName.endsWith('.js.map'),
119119
),
120-
).toBe(false);
120+
).toBe(true);
121121
});
122122

123123
test('inline runtime chunk by default with multiple entries', async () => {
@@ -133,13 +133,13 @@ test('inline runtime chunk by default with multiple entries', async () => {
133133
});
134134
const files = await builder.unwrapOutputJSON(false);
135135

136-
// no builder-runtime file in output
136+
// builder runtime file is emitted in output
137137
expect(
138138
Object.keys(files).some(
139139
fileName =>
140140
fileName.includes(RUNTIME_CHUNK_NAME) && fileName.endsWith('.js'),
141141
),
142-
).toBe(false);
142+
).toBe(true);
143143

144144
// found builder-runtime file in html
145145
const indexHtml =

0 commit comments

Comments
 (0)