update examples

This commit is contained in:
Yury Semikhatsky 2020-01-24 16:15:13 -08:00
parent ec915b9e32
commit 2cf07ba7b9
2 changed files with 2 additions and 8 deletions

View file

@ -8,12 +8,6 @@ This test runner is used internally by Playwright to test Playwright itself.
- modular
- well-isolated state per execution thread
### Installation
```sh
npm install --save-dev @playwright/testrunner
```
### Example
Save the following as `test.js` and run using `node`:
@ -23,7 +17,7 @@ node test.js
```
```js
const {TestRunner, Reporter, Matchers} = require('@playwright/testrunner');
const {TestRunner, Reporter, Matchers} = require('.');
// Runner holds and runs all the tests
const runner = new TestRunner({

View file

@ -5,7 +5,7 @@ This test server is used internally by Playwright to test Playwright itself.
### Example
```js
const {TestServer} = require('@playwright/testrunner');
const {TestServer} = require('.');
(async(() => {
const httpServer = await TestServer.create(__dirname, 8000),