diff --git a/packages/vite-node/src/source-map-handler.ts b/packages/vite-node/src/source-map-handler.ts index 30018eda55c4..b15e7beeb778 100644 --- a/packages/vite-node/src/source-map-handler.ts +++ b/packages/vite-node/src/source-map-handler.ts @@ -175,7 +175,7 @@ function mapSourcePosition(position: OriginalMapping) { } let sourceMap = sourceMapCache[position.source] if (!sourceMap) { - // Call the (overrideable) retrieveSourceMap function to get the source map. + // Call the (overridable) retrieveSourceMap function to get the source map. const urlAndMap = retrieveSourceMap(position.source) if (urlAndMap && urlAndMap.map) { sourceMap = sourceMapCache[position.source] = { @@ -300,7 +300,7 @@ function CallSiteToString(this: CallSite) { const isMethodCall = !(this.isToplevel() || isConstructor) if (isMethodCall) { let typeName = this.getTypeName() - // Fixes shim to be backward compatable with Node v0 to v4 + // Fixes shim to be backward compatible with Node v0 to v4 if (typeName === '[object Object]') { typeName = 'null' } diff --git a/packages/vitest/src/node/error.ts b/packages/vitest/src/node/error.ts index d58d5d568b1c..4e54e32fb1db 100644 --- a/packages/vitest/src/node/error.ts +++ b/packages/vitest/src/node/error.ts @@ -76,7 +76,7 @@ export function printError( } as any } - // Error may have occured even before the configuration was resolved + // Error may have occurred even before the configuration was resolved if (!project) { printErrorMessage(e, logger) return diff --git a/packages/vitest/src/node/state.ts b/packages/vitest/src/node/state.ts index 4129b91dc1e4..4b9cf1ed9f85 100644 --- a/packages/vitest/src/node/state.ts +++ b/packages/vitest/src/node/state.ts @@ -104,7 +104,7 @@ export class StateManager { const currentFile = existing.find( i => i.projectName === file.projectName, ) - // keep logs for the previous file because it should alway be initiated before the collections phase + // keep logs for the previous file because it should always be initiated before the collections phase // which means that all logs are collected during the collection and not inside tests if (currentFile) { file.logs = currentFile.logs @@ -115,7 +115,7 @@ export class StateManager { }) } - // this file is reused by ws-client, and shoult not rely on heavy dependencies like workspace + // this file is reused by ws-client, and should not rely on heavy dependencies like workspace clearFiles( _project: { config: { name: string | undefined; root: string } }, paths: string[] = [],