Skip to content

Commit

Permalink
Add jsdom types for benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 committed Nov 22, 2022
1 parent b27ca25 commit 8335731
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
1 change: 0 additions & 1 deletion benchmark/suite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import fs from 'fs';
import path from 'path';

import { Suite, Event } from 'benchmark';
// @ts-expect-error `jsdom` types currently collide with `parse5` types.
import { JSDOM } from 'jsdom';
import { Script } from 'vm';
import cheerio from '../lib/index.js';
Expand Down
35 changes: 35 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"@octokit/graphql": "^5.0.4",
"@types/benchmark": "^2.1.2",
"@types/jest": "^29.2.3",
"@types/jsdom": "^20.0.1",
"@types/node": "^18.11.9",
"@types/whatwg-mimetype": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^5.44.0",
Expand Down

0 comments on commit 8335731

Please sign in to comment.