Comments (16)
It works now? I opened vitest repository, and it works well with examples sub projects.
from vitest-jetbrains-plugin.
Could you try this version? If all is good and I will release a new version.
vitest-jetbrains-plugin-0.2.2.zip
from vitest-jetbrains-plugin.
@linux-china Not work. And the click icon
disappeared when using the new install file.
from vitest-jetbrains-plugin.
@iamanewofkotlin could you share your demo project on github?
from vitest-jetbrains-plugin.
@iamanewofkotlin I am sorry for this, I can not. It is a monorepo
. Just like vueuse.
But i installing the vites
in packages/foo
dir that is a subproject.
Could you understanding my mean
from vitest-jetbrains-plugin.
Some weird, and it works well on webstorm. You project alike following structure?
could you install this version to test again? If it does not work, could you help me to create a demo project and attach it?
vitest-jetbrains-plugin-0.2.2.zip
from vitest-jetbrains-plugin.
Now the plugin does not support Vitest with tsconfig.json, and you should use import { assert, expect, test } from 'vitest'
.
// tsconfig.json
{
"compilerOptions": {
"types": ["vitest/globals"]
}
}
from vitest-jetbrains-plugin.
@linux-china Pardon. Maybe restarting my webstorm or reinstalling vitest
to my monorepo root dir can resolve the issue. Thanks for your replying.
I will move vitest
to my monorepo root dir.
from vitest-jetbrains-plugin.
the click icon disappeared when using the new install file.
You are using Windows? Adjust logic for Windows path match. Please install new version and restart WebStorm and try it again.
vitest-jetbrains-plugin-0.2.2.zip
from vitest-jetbrains-plugin.
@linux-china My computer is mac, Macos version is 11.5
and webstorm version is 2021.3.3
.
I can not test your updates that are for windows
. Sorry
from vitest-jetbrains-plugin.
:) My laptop is Mac too, and it should work. Ignore that because some developers have reported Windows problem.
from vitest-jetbrains-plugin.
:) My laptop is Mac too, and it should work. Ignore that because some developers have reported Windows problem.
Thanks for your generous contributing for open-source.
from vitest-jetbrains-plugin.
@linux-china Take some time. I need adjust my project. I will reply to you ASAP. Pardon, sir.
from vitest-jetbrains-plugin.
@linux-china It's work for me! But when invoked in the way i clicking describe
beside icon. It will throw error document is not defined
. Becase the one test
of describe
is vue setup
environment
� × packages/vue/test/fields.spec.ts > foo > bar
→ document is not defined
⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
FAIL packages/vue/test/fields.spec.ts > foo > bar
ReferenceError: document is not defined
❯ Proxy.mount node_modules/.pnpm/registry.npmmirror.com+@[email protected][email protected]/node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:7757:14
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
7755| addToDoNotStubComponents(component);
7756| registerStub(originalComponent, component);
7757| var el = document.createElement('div');
| ^
7758| if (options === null || options === void 0 ? void 0 : options.atta…
7759| var to = void 0;
❯ packages/vue/test/fields.spec.ts:42:4
Test Files 1 failed (1)
Tests 1 failed (1)
Time 7.03s (in thread 22ms, 32020.24%)
It is test code. may can help for you.
import { describe, test } from 'vitest';
import { mount } from '@vue/test-utils';
import { defineComponent } from 'vue';
describe('foo', () => {
test('bar', () => {
const props = {
foo: 1
};
const foobar = defineComponent({
name: 'FooBar',
template: `<div>abc</div>`
});
const Root = {
components: {
FooBar: foobar
},
template: `<foo-bar />`,
setup() {}
};
mount(Root);
});
});
from vitest-jetbrains-plugin.
@linux-china and i do not know why the test file had generated two file foo.spec.js
and foo.spec.js.map
in same dir.
from vitest-jetbrains-plugin.
FYI: I have this repo with only the vitest core tests you can use to test the plugin (not yet updated to latest): https://github.com/userquin/vitejs-vite-latest
I will check if your latest changes supporting monorepo with vitest itself is working on windows (with previous version not working).
EDIT: it works also on windows, great work man 👌 , also with colored console: https://imgur.com/wGYEk6S and https://imgur.com/Ox6M4Hu
from vitest-jetbrains-plugin.
Related Issues (20)
- Can't find tests with ' in their names HOT 1
- No test files found HOT 2
- 0.6.6: error when running from intellij on windows HOT 13
- Version 0.6.1 not working with aliases HOT 1
- Backticks used within `it()` throws an error while running single `it()` HOT 1
- Using the test runner in PHPStorm does not work (WSL) HOT 11
- Intellisense/Auto-completion HOT 1
- Support for node v14 HOT 2
- The "pnpm exec" command currently only works with the "-r" option HOT 2
- When test's description/single one contains `(/)` it is skipped, when `(/` it does not run HOT 1
- Monorepo issue with workspace directory HOT 5
- webstorm output garbled characters HOT 4
- Not working with $ in file names
- 0.6.6 source branch/ tag missing HOT 1
- Problems with debugger HOT 2
- Debug-Icon creates wrong config when workspace is other than root HOT 2
- Custom timezone for tests when running from intellij IDEA
- Display vitest gutter icons only on projects using vitests
- resolve path is inconsistent HOT 1
- Add support for PhpStorm 2023.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vitest-jetbrains-plugin.