Skip to main content

@pw-codeceptjs/utils-extension

Adding dependency

npm add -D "@pw-codeceptjs/utils-extension"

Registration

playwright.config.ts
import { CodeceptFixtureConfig } from '@pw-codeceptjs/test'
import { PlaywrightTestConfig } from '@playwright/test'
import { Utils } from '@pw-codeceptjs/utils-extension'

declare global {
namespace codeceptjsFixtureTypes {
type extensions = {
utils: typeof Utils
}
}
}

const config: PlaywrightTestConfig<CodeceptFixtureConfig> = {
use: {
codeceptjs: {
extensions: {
utils: Utils,
},
},
},
}

export default config