@@ -31,26 +31,26 @@ For full documentation, please see the [Playwright testing docs on the official
3131 // playwright.config.ts
3232
3333 import { expect } from ' @playwright/test' ;
34- import { matchers , createStencilPlaywrightConfig } from ' @stencil/playwright' ;
34+ import { matchers , createConfig } from ' @stencil/playwright' ;
3535
3636 expect .extend (matchers );
3737
38- export default createStencilPlaywrightConfig ();
38+ export default createConfig ();
3939 ```
4040
41411 . At this point, any tests can be executed using ` npx playwright test ` (or by updating the project's test command in the ` package.json ` ). By default, Playwright's test matcher
4242 is configured to run all tests matching the pattern ` *.e2e.ts ` . This can be changed by overriding the default matcher using the
43- [ ` createStencilPlaywrightConfig ()` function] ( #createstencilplaywrightconfigoverrides -createstencilplaywrightconfigoptions-promiseplaywrighttestconfig ) :
43+ [ ` createConfig ()` function] ( #createconfigoverrides -createstencilplaywrightconfigoptions-promiseplaywrighttestconfig ) :
4444
4545 ``` ts
4646 // playwright.config.ts
4747
4848 import { expect } from ' @playwright/test' ;
49- import { matchers , createStencilPlaywrightConfig } from ' @stencil/playwright' ;
49+ import { matchers , createConfig } from ' @stencil/playwright' ;
5050
5151 expect .extend (matchers );
5252
53- export default createStencilPlaywrightConfig ({
53+ export default createConfig ({
5454 // Change which test files Playwright will execute
5555 testMatch: ' *.spec.ts' ,
5656 // Any other Playwright config option can also be overridden
@@ -122,7 +122,7 @@ test.describe('my-component', () => {
122122
123123## API
124124
125- ### ` createStencilPlaywrightConfig (overrides?: CreateStencilPlaywrightConfigOptions): Promise<PlaywrightTestConfig>`
125+ ### ` createConfig (overrides?: CreateStencilPlaywrightConfigOptions): Promise<PlaywrightTestConfig>`
126126
127127Returns a [ Playwright test configuration] ( https://playwright.dev/docs/test-configuration#introduction ) .
128128
@@ -136,11 +136,11 @@ as some options to override specific values in the config options related to the
136136// playwright.config.ts
137137
138138import { expect } from ' @playwright/test' ;
139- import { matchers , createStencilPlaywrightConfig } from ' @stencil/playwright' ;
139+ import { matchers , createConfig } from ' @stencil/playwright' ;
140140
141141expect .extend (matchers );
142142
143- export default createStencilPlaywrightConfig ({
143+ export default createConfig ({
144144 // Change which test files Playwright will execute
145145 testMatch: ' *.spec.ts' ,
146146
0 commit comments