You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running tests in vscode with version >= 1.2.4 of the plugin in a react environment with @testing-library/react runs seems to be using an incorrect environment.
This causes an error on the following invocation:
import{render}from'@testing-library/react';constcreateTestTarget=()=>{// Fails with errorconstresult=render(<MyComponent/>);
}
act(...) is not supported in production builds of React
git clone https://github.com/zthun/cirque
cd cirque
yarn install
# Works Just fine
yarn test
Navigate vscode to packages/cirque-react/src/tod/checklist/checklist.spec.tsx
Click Run Tests
Output
[INFO 2:34:33 PM] Running 1 file(s) with name pattern: ^\s?ZChecklist
[2:34:33 PM] The runner is starting because tests /Users/zthun/Development/cirque/packages/cirque-react/src/todo/checklist/checklist.spec.tsx were started due to a file change
[2:34:33 PM] Enqueuing "ZChecklist[2:34:33 PM] Enqueuing "should start as empty
[2:34:33 PM] Enqueuing "Adding items[2:34:33 PM] Enqueuing "should add an item.
[2:34:33 PM] Enqueuing "should add new items to the end of the list[2:34:34 PM] No task result for "should start as empty", assuming the test just started running[2:34:34 PM] No task result for "should add an item.", assuming the test just started running[2:34:34 PM] No task result for "should add new items to the end of the list", assuming the test just started running[2:34:34 PM] No errors found for "[@zthun/cirque-react] checklist.spec.tsx"[2:34:34 PM] No errors found for "ZChecklist"[2:34:34 PM] Marking "should start as empty" as failed with 1 errors[2:34:34 PM] No errors found for "Adding items"[2:34:34 PM] Marking "should add an item." as failed with 1 errors[2:34:34 PM] Marking "should add new items to the end of the list" as failed with 1 errors[2:34:34 PM] No errors found for "[@zthun/cirque-react] checklist.spec.tsx"[2:34:34 PM] Ending test run packages/cirque-react/src/todo/checklist/checklist.spec.tsx
Version
1.2.5
Validations
Check that you are using the latest version of the extension
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Describe the bug
Running tests in vscode with version >= 1.2.4 of the plugin in a react environment with @testing-library/react runs seems to be using an incorrect environment.
This causes an error on the following invocation:
Reverting back to 1.2.3 solves this problem.
Reproduction
https://github.com/zthun/cirque
Output
Version
1.2.5
Validations
The text was updated successfully, but these errors were encountered: