Skip to content

Commit 46fe8a6

Browse files
authored
test(engine-server): assert HMR not supported (#4482)
1 parent 6b6d1f7 commit 46fe8a6

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright (c) 2024, Salesforce, Inc.
3+
* All rights reserved.
4+
* SPDX-License-Identifier: MIT
5+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
6+
*/
7+
import { swapComponent, swapStyle, swapTemplate } from '../index';
8+
9+
it('throws error for swapComponent', () => {
10+
expect(swapComponent).toThrow(
11+
/swapComponent is not supported in @lwc\/engine-server, only @lwc\/engine-dom/
12+
);
13+
});
14+
15+
it('throws error for swapStyle', () => {
16+
expect(swapStyle).toThrow(
17+
/swapStyle is not supported in @lwc\/engine-server, only @lwc\/engine-dom/
18+
);
19+
});
20+
21+
it('throws error for swapTemplate', () => {
22+
expect(swapTemplate).toThrow(
23+
/swapTemplate is not supported in @lwc\/engine-server, only @lwc\/engine-dom/
24+
);
25+
});

0 commit comments

Comments
 (0)