salesforcedx-vscode icon indicating copy to clipboard operation
salesforcedx-vscode copied to clipboard

import { createElement } causes "LWC1702: lwc" in jest test

Open rohledermarc opened this issue 3 months ago • 2 comments

Type: Bug

Expected Behavior Using the lightning web components extension and doing the following in a jest test with ignoring /tests/ through the .forceignore should not cause any problems: import { createElement } from "lwc";

Actual Behavior: Using the lightning web components extension and doing the following in a jest test with ignoring /tests/ through the .forceignore CAUSES problems: import { createElement } from "lwc"; Problem: LWC1702: lwc

Extension version: 60.4.1 VS Code version: Code 1.87.2 (863d2581ecda6849923a2118d93a088b0745d9d6, 2024-03-08T15:20:57.520Z) OS version: Darwin arm64 23.3.0 Modes:

rohledermarc avatar Mar 18 '24 13:03 rohledermarc

This issue has been linked to a new work item: W-15275731

git2gus[bot] avatar Mar 18 '24 15:03 git2gus[bot]