Skip to content

Commit

Permalink
Fix: express (#38)
Browse files Browse the repository at this point in the history
* fix express fixture

* remove node-fetch dependency
  • Loading branch information
jfgreffier authored Jun 27, 2023
1 parent 1423484 commit 3034fa5
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 131 deletions.
4 changes: 2 additions & 2 deletions fixtures/tests/express-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ const test = base.extend<{}, ExpressWorkerFixtures>({
// Start the server.
let server;
console.log('Starting server...');
await new Promise((f) => {
server = app.listen(port);
await new Promise<void>((resolve) => {
server = app.listen(port, () => resolve());
});
console.log('Server ready');

Expand Down
1 change: 0 additions & 1 deletion fixtures/tests/express.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* @see https://playwright.dev/docs/test-fixtures#worker-fixtures
*/
import test from './express-test';
import fetch from 'node-fetch';

test('fetch 1', async ({port}) => {
const result = await fetch(`http://localhost:${port}/1`);
Expand Down
127 changes: 0 additions & 127 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"@axe-core/playwright": "^4.4.4",
"express": "^4.17.2",
"lighthouse": "^9.5.0",
"node-fetch": "^3.1.0",
"typescript": "^4.5.5"
}
}

0 comments on commit 3034fa5

Please sign in to comment.