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
If you are using neovim, just run :checkhealth floaterm and post the content
below.
Configurations related to vim-floaterm in vimrc(i.e. g:floaterm_xxx):
Describe your question, feature request, or bug.
Hi,
I currently using vim-test to try and run some javascript jest tests through a floaterm.
However when I attempt to run the nearest test to the cursor it fails to find the test.
The command that is being ran by vim-test is the following:
FloatermNew --autoclose=0 node_modules/.bin/jest --no-coverage --runTestsByPath -t '^When we call is HubAPIError\(\) Should return false for a default axios error response$' -- __tests__/errorHelpers-test.js
When I manually run the above jest command in a regular terminal, it successfully finds the test and runs it.
Create a new javascript project with npm init (accept all the defaults as they don't matter here)
Install jest with npm install jest
Run mkdir __tests__
Run the following in your terminal to create a dummy test
cat <<EOF > __tests__/errorHelpers-test.js describe("When we call isHubAPIError()", () => { it("Should return false for a default axios error response", () => { expect(true).toEqual(true); });});EOF
Run vim . to start up vim in your javascript project
Finally run the following vim command to see the error described above:
FloatermNew --autoclose=0 node_modules/.bin/jest --no-coverage --runTestsByPath -t '^When we call is HubAPIError\(\) Should return false for a default axios error response$' -- __tests__/errorHelpers-test.js
Actual behaviour
The jest test is skipped as it seems to not match the regex, even though the same jest command works in a regular terminal.
Expected behaviour
The jest test should be found and run in a floaterm as expected.
Screenshots(Optional, GIF is better)
This a screenshot of the error that I'm getting:
The text was updated successfully, but these errors were encountered:
Before reporting
Please make sure you have searched through the F.A.Q. first.
Please make sure you are using the latest version of this plugin.
It's better to use English as it's more friendly to other non-Chinese native users.
Environment
If you are using vim(not neovim), fill in the following blanks
vim --version
:Platform:
If you are using neovim, just run
:checkhealth floaterm
and post the contentbelow.
Configurations related to vim-floaterm in vimrc(i.e.
g:floaterm_xxx
):Describe your question, feature request, or bug.
Hi,
I currently using vim-test to try and run some javascript jest tests through a floaterm.
However when I attempt to run the nearest test to the cursor it fails to find the test.
The command that is being ran by vim-test is the following:
When I manually run the above jest command in a regular terminal, it successfully finds the test and runs it.
Steps to reproduce
Using the minimal vimrc
Steps to reproduce the behavior:
npm init
(accept all the defaults as they don't matter here)npm install jest
mkdir __tests__
vim .
to start up vim in your javascript projectActual behaviour
The jest test is skipped as it seems to not match the regex, even though the same jest command works in a regular terminal.
Expected behaviour
The jest test should be found and run in a floaterm as expected.
Screenshots(Optional, GIF is better)
This a screenshot of the error that I'm getting:
The text was updated successfully, but these errors were encountered: