Skip to content

Commit fda6582

Browse files
committed
switch to node test runner
1 parent cbc4c4a commit fda6582

10 files changed

+326
-152
lines changed

.github/workflows/coverage.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install Application
2222
run: |
2323
npm ci
24-
npm install -g mocha c8
24+
npm install -g c8
2525
2626
- name: Run Coverage Testing
2727
run: npm run coverage

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import browserLauncher from '@httptoolkit/browser-launcher';
22
import { parseVersion } from './utilities.js';
3+
const installedWebBrowsersExpiryMillis = 5 * 60_000;
34
let installedWebBrowsers = [];
45
let installedWebBrowsersMillis = 0;
5-
const installedWebBrowsersExpiryMillis = 5 * 60_000;
66
export const possibleWebBrowserTypes = [
77
'chrome',
88
'chromium',

index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import { type ApplicationVersion, parseVersion } from './utilities.js'
44

55
export type InstalledWebBrowser = browserLauncher.Browser & ApplicationVersion
66

7+
const installedWebBrowsersExpiryMillis = 5 * 60_000
8+
79
let installedWebBrowsers: InstalledWebBrowser[] = []
810
let installedWebBrowsersMillis = 0
9-
const installedWebBrowsersExpiryMillis = 5 * 60_000
1011

1112
export const possibleWebBrowserTypes = [
1213
'chrome',
@@ -53,6 +54,7 @@ async function _loadInstalledWebBrowsers(): Promise<InstalledWebBrowser[]> {
5354
})
5455
}
5556

57+
// eslint-disable-next-line write-good-comments/write-good-comments
5658
/**
5759
* Retrieves a list of installed web browsers that optionally match the given types.
5860
* @param webBrowserTypes - An optional web browser type or list of web browser types to filter by.

0 commit comments

Comments
 (0)