Skip to content

Commit

Permalink
fix: hidden test in side panel
Browse files Browse the repository at this point in the history
  • Loading branch information
kitwon authored and zxch3n committed Jul 23, 2022
1 parent 67ba85c commit f89ce2f
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Vitest Snapshot v1

exports[`Link changes the class when hovered 1`] = `
<a
className="normal"
href="http://antfu.me"
onMouseEnter={[Function]}
onMouseLeave={[Function]}
>
Anthony Fu
</a>
`;

exports[`Link changes the class when hovered 2`] = `
<a
className="hovered"
href="http://antfu.me"
onMouseEnter={[Function]}
onMouseLeave={[Function]}
>
Anthony Fu
</a>
`;

exports[`Link changes the class when hovered 3`] = `
<a
className="normal"
href="http://antfu.me"
onMouseEnter={[Function]}
onMouseLeave={[Function]}
>
Anthony Fu
</a>
`;
3 changes: 3 additions & 0 deletions samples/monorepo-no-root/test/no-root-basic.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
test('Basic in root', () => {
expect(1 + 1).toEqual(2)
})
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export async function detectVitestEnvironmentFolders() {
return

for (const folder of vscode.workspace.workspaceFolders) {
if (await isVitestEnv(folder) || getConfig(folder).enable)
if ((await isVitestEnv(folder) || getConfig(folder).enable) && !getRootConfig().disabledWorkspaceFolders.includes(folder.name))
vitestFolders.push(folder)
}
}
Expand Down

0 comments on commit f89ce2f

Please sign in to comment.