@pw-codeceptjs/utils-extension
Adding dependency
- npm
- yarn
npm add -D "@pw-codeceptjs/utils-extension"
yarn 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