Skip to content
Merged
Changes from 1 commit
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 guide/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import type { Environment } from 'vitest/environments'
export default <Environment>{
name: 'custom',
viteEnvironment: 'ssr',
// optional - only if you support "experimental-vm" pool
// 可选 - 仅在支持 "experimental-vm" 池的情况下使用
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// 可选 - 仅在支持 "experimental-vm" 池的情况下使用
// 可选 - 仅在支持 "experimental-vm" 的情况下使用

Copy link
Collaborator

Choose a reason for hiding this comment

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

这个 “池” 感觉可以不用翻译,加上还挺奇怪的

async setupVM() {
const vm = await import('node:vm')
const context = vm.createContext()
Expand Down