Skip to content

Commit 0349825

Browse files
committed
chore: fix spelling
1 parent 932f70b commit 0349825

18 files changed

Lines changed: 42 additions & 42 deletions

File tree

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vscode-webdriverio",
3-
"displayName": "WebDriverIO",
4-
"description": "WebDriverIO for the vscode",
3+
"displayName": "WebdriverIO",
4+
"description": "WebdriverIO for the vscode",
55
"version": "0.0.1",
66
"type": "module",
77
"author": "WebdriverIO Team",
@@ -15,7 +15,7 @@
1515
"url": "https://github.com/webdriverio/vscode-webdriverio/issues"
1616
},
1717
"keywords": [
18-
"WebDriverIO",
18+
"WebdriverIO",
1919
"test",
2020
"typescript",
2121
"javascript"
@@ -37,14 +37,14 @@
3737
"commands": [
3838
{
3939
"command": "webdriverio.configureTests",
40-
"title": "WebDriverIO: Configure Tests"
40+
"title": "WebdriverIO: Configure Tests"
4141
}
4242
],
4343
"viewsContainers": {
4444
"activitybar": [
4545
{
4646
"id": "webdriverio-explorer",
47-
"title": "WebDriverIO Explorer",
47+
"title": "WebdriverIO Explorer",
4848
"icon": "media/icon.svg"
4949
}
5050
]
@@ -89,7 +89,7 @@
8989
"webdriverio.showOutput": {
9090
"type": "boolean",
9191
"default": true,
92-
"description": "Show WebDriverIO output in terminal"
92+
"description": "Show WebdriverIO output in terminal"
9393
}
9494
}
9595
}

src/api/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export type WdioConfig = {
1313
// Worker API that extension can call
1414
export type WorkerApi = {
1515
/**
16-
* Run WebDriverIO tests
16+
* Run WebdriverIO tests
1717
*/
1818
runTest(options: RunTestOptions): Promise<TestResult>
1919
/**
@@ -59,7 +59,7 @@ export type ExtensionApi = {
5959
export interface RunTestOptions {
6060
// Path to the test result files
6161
outputDir?: string
62-
// Path to WebDriverIO config file
62+
// Path to WebdriverIO config file
6363
configPath: string
6464
// Spec files to run (optional)
6565
specs?: string[]

src/api/worker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import type { NumericLogLevel } from '../types.js'
1717
const WORKER_PATH = resolve(__dirname, 'worker/index.cjs')
1818

1919
/**
20-
* Manages the WebDriverIO worker process
20+
* Manages the WebdriverIO worker process
2121
*/
2222
export class WdioExtensionWorker {
2323
public cid: string
@@ -62,7 +62,7 @@ export class WdioExtensionWorker {
6262
this._server.unref()
6363
this._wss = new WebSocketServer({ server: this._server })
6464

65-
log.debug(`Starting WebDriverIO worker on port ${this._workerPort}`)
65+
log.debug(`Starting WebdriverIO worker on port ${this._workerPort}`)
6666
log.debug(`Worker path: ${WORKER_PATH}`)
6767

6868
const wsUrl = `ws://localhost:${this._workerPort}`

src/commands/configureTests.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as path from 'node:path'
33
import * as fs from 'node:fs'
44

55
/**
6-
* Configure WebDriverIO test settings
6+
* Configure WebdriverIO test settings
77
*/
88
export async function configureTests(): Promise<void> {
99
// Get workspace folder
@@ -21,7 +21,7 @@ export async function configureTests(): Promise<void> {
2121

2222
// Ask for config file
2323
const configPath = await vscode.window.showInputBox({
24-
prompt: 'Path to WebDriverIO config file (relative to workspace root)',
24+
prompt: 'Path to WebdriverIO config file (relative to workspace root)',
2525
value: currentConfigPath,
2626
validateInput: (value) => {
2727
if (!value) {
@@ -61,7 +61,7 @@ export async function configureTests(): Promise<void> {
6161

6262
const showOutput = await vscode.window
6363
.showQuickPick(['Yes', 'No'], {
64-
placeHolder: 'Show WebDriverIO output in terminal?',
64+
placeHolder: 'Show WebdriverIO output in terminal?',
6565
})
6666
.then((result) => result === 'Yes')
6767

@@ -70,5 +70,5 @@ export async function configureTests(): Promise<void> {
7070
await config.update('testFilePattern', testPattern, vscode.ConfigurationTarget.Workspace)
7171
await config.update('showOutput', showOutput, vscode.ConfigurationTarget.Workspace)
7272

73-
vscode.window.showInformationMessage('WebDriverIO Runner settings updated')
73+
vscode.window.showInformationMessage('WebdriverIO Runner settings updated')
7474
}

src/config/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { findWdioConfig } from './find.js'
55
import { DEFAULT_CONFIG_VALUES, EXTENSION_ID } from '../constants.js'
66
import { log } from '../utils/logger.js'
77

8-
import type { WebDriverIOConfig } from '../types.js'
8+
import type { WebdriverIOConfig } from '../types.js'
99

1010
export const testControllerId = EXTENSION_ID
1111

@@ -19,7 +19,7 @@ type WorkspaceData = {
1919
class WdioConfig extends EventEmitter implements vscode.Disposable {
2020
private _isInitialized = false
2121
private _isMultiWorkspace = false
22-
private _globalConfig: WebDriverIOConfig
22+
private _globalConfig: WebdriverIOConfig
2323
private _workspaceConfigMap = new Map<string, vscode.WorkspaceFolder>()
2424
private _workspaces: WorkspaceData[] | undefined
2525

@@ -71,7 +71,7 @@ class WdioConfig extends EventEmitter implements vscode.Disposable {
7171

7272
for (const prop of _configProperties) {
7373
const configKey = `${EXTENSION_ID}.${prop}`
74-
const newValue = config.get<WebDriverIOConfig[typeof prop]>(prop)
74+
const newValue = config.get<WebdriverIOConfig[typeof prop]>(prop)
7575
if (event.affectsConfiguration(configKey) && newValue !== undefined) {
7676
log.debug(`Update ${prop}: ${newValue}`)
7777
this.emit(`update:${prop}`, newValue)
@@ -136,7 +136,7 @@ export const configManager = new WdioConfig()
136136
// To add install command, the following code seems to be used.
137137
// https://github.com/webdriverio/vscode-webdriverio/issues/8
138138
// /**
139-
// * Generate a default WebDriverIO config file
139+
// * Generate a default WebdriverIO config file
140140
// */
141141
// export function generateDefaultConfig(workspaceRoot: string): string {
142142
// const configPath = path.join(workspaceRoot, 'wdio.conf.js')
@@ -149,8 +149,8 @@ export const configManager = new WdioConfig()
149149
// // Generate default config using wdio config command
150150
// // This would be implemented through child_process
151151
// // For simplicity, we just provide a basic template here
152-
// const configTemplate = `// WebDriverIO configuration file
153-
// // Generated by WebDriverIO Runner extension
152+
// const configTemplate = `// WebdriverIO configuration file
153+
// // Generated by WebdriverIO Runner extension
154154
// exports.config = {
155155
// runner: 'local',
156156
// specs: [

src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const DEFAULT_CONFIG_VALUES = {
99

1010
export const TEST_ID_SEPARATOR = '#WDIO_SEP#'
1111

12-
export const ERROR_MESSAGE_BUG = 'Please report this bug to the WebDriverIO extension repository.'
12+
export const ERROR_MESSAGE_BUG = 'Please report this bug to the WebdriverIO extension repository.'
1313

1414
export enum LOG_LEVEL {
1515
TRACE = 0,

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class WdioExtension implements vscode.Disposable {
2323
private _disposables: vscode.Disposable[] = []
2424

2525
async activate() {
26-
log.info('WebDriverIO Runner extension is now active')
26+
log.info('WebdriverIO Runner extension is now active')
2727

2828
await configManager.initialize()
2929
const configPaths = configManager.getWdioConfigPaths()
@@ -34,7 +34,7 @@ class WdioExtension implements vscode.Disposable {
3434
} catch (error) {
3535
const errorMessage = `Failed to start worker process: ${error instanceof Error ? error.message : String(error)}`
3636
log.error(errorMessage)
37-
vscode.window.showErrorMessage('Failed to start WebDriverIO worker process')
37+
vscode.window.showErrorMessage('Failed to start WebdriverIO worker process')
3838
return
3939
}
4040

src/test/manager.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class RepositoryManager implements vscode.Disposable {
2828
this._loadingTestItem.busy = true
2929
this.controller.items.add(this._loadingTestItem)
3030
this.controller.refreshHandler = async () => {
31-
log.info('Refreshing WebDriverIO tests...')
31+
log.info('Refreshing WebdriverIO tests...')
3232
await this.refreshTests()
3333
}
3434
}
@@ -127,13 +127,13 @@ class RepositoryManager implements vscode.Disposable {
127127
}
128128

129129
/**
130-
* Refresh WebDriverIO tests
130+
* Refresh WebdriverIO tests
131131
*/
132132
public async refreshTests(): Promise<void> {
133133
return vscode.window.withProgress(
134134
{
135135
location: vscode.ProgressLocation.Notification,
136-
title: 'Reloading WebDriverIO tests...',
136+
title: 'Reloading WebdriverIO tests...',
137137
cancellable: false,
138138
},
139139
async () => {
@@ -145,11 +145,11 @@ class RepositoryManager implements vscode.Disposable {
145145
await repo.discoverAllTests()
146146
}
147147

148-
vscode.window.showInformationMessage('WebDriverIO tests reloaded successfully')
148+
vscode.window.showInformationMessage('WebdriverIO tests reloaded successfully')
149149
} catch (error) {
150150
const errorMessage = error instanceof Error ? error.message : String(error)
151151
log.error(`Failed to reload tests: ${errorMessage}`)
152-
vscode.window.showErrorMessage(`Failed to reload WebDriverIO tests: ${errorMessage}`)
152+
vscode.window.showErrorMessage(`Failed to reload WebdriverIO tests: ${errorMessage}`)
153153
}
154154
}
155155
)

src/test/repository.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type { SpecFileTestItem, TestcaseTestItem, VscodeTestData, WdioConfigTest
1212
import type { WdioExtensionWorker } from '../api/index.js'
1313

1414
/**
15-
* TestRepository class that manages all WebDriverIO tests at
15+
* TestRepository class that manages all WebdriverIO tests at
1616
* the single WebdriverIO configuration file
1717
*/
1818
export class TestRepository implements vscode.Disposable {
@@ -35,7 +35,7 @@ export class TestRepository implements vscode.Disposable {
3535
}
3636

3737
/**
38-
* Discover and register all tests from WebDriverIO configuration
38+
* Discover and register all tests from WebdriverIO configuration
3939
*/
4040
public async discoverAllTests(): Promise<void> {
4141
try {
@@ -273,7 +273,7 @@ export class TestRepository implements vscode.Disposable {
273273
}
274274

275275
/**
276-
* Convert spec paths from WebDriverIO config to file system paths
276+
* Convert spec paths from WebdriverIO config to file system paths
277277
*/
278278
private convertPathString(specs: (string | string[])[]) {
279279
return specs.flatMap((spec) =>

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { LOG_LEVEL } from './constants.js'
22

3-
export interface WebDriverIOConfig {
3+
export interface WebdriverIOConfig {
44
configFilePattern: string[]
55
testFilePattern: string[]
66
showOutput: boolean

0 commit comments

Comments
 (0)