Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"markdownlint-cli2": "^0.14.0",
"prettier": "^3.2.5",
"typescript": "^5.4.5",
"vitest": "^2.1.4"
"vitest": "^3.0.6"
},
"dependencies": {
"@dsanders11/vscode-markdown-languageservice": "^0.3.0",
Expand Down
8 changes: 8 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/// <reference types="vitest/config" />
import { defineConfig } from 'vitest/config';
Comment on lines +1 to +2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: the reference to vitest/config is only necessary when importing defineConfig from vite, we don't need it when we're already importing that type directly:

Suggested change
/// <reference types="vitest/config" />
import { defineConfig } from 'vitest/config';
import { defineConfig } from 'vitest/config';

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, that makes sense. I also thought that was odd, but I think @erickzhao and I got confused by the docs, see https://github.com/electron/forge/pull/3797/files#r1909540910. The docs link in those comments is dead now, but I see what you're referring to in the current docs. Good to know going forward, we'll clean them up. Thanks @erikian!


export default defineConfig({
test: {
testTimeout: 30_000,
},
});
Loading
Loading