Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ test('should compile', async ({ page, fileAction, rspack }) => {
),
);

await expect(async () => {
await page.reload();
expect(await page.locator('#index1').innerText()).toBe('index1 updated');
}).toPass();
await expect(page.locator('#index1')).toContainText('index1 updated');

await expect(page.locator('#index2')).toHaveCount(0);
await expect(page.locator('#webpack-dev-server-client-overlay')).toHaveCount(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ module.exports = {
},
context: __dirname,
mode: 'development',
optimization: {
runtimeChunk: 'single',
},
plugins: [
new rspack.HtmlRspackPlugin(),
function (compiler) {
Expand Down
Loading