We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c1e73d commit 117f85fCopy full SHA for 117f85f
packages/launcher/test/unit/detect.spec.ts
@@ -246,15 +246,15 @@ describe('detect', () => {
246
})
247
248
249
- it('rejects when there was no matching versionRegex', () => {
250
- // @ts-ignore
251
- return detectByPath('/not/a/browser', goalBrowsers)
252
- .then(() => {
+ it('rejects when there was no matching versionRegex', async () => {
+ try {
+ // @ts-expect-error
+ await detectByPath('/not/a/browser', goalBrowsers)
253
+
254
throw Error('Should not find a browser')
- })
255
- .catch((err) => {
+ } catch (err) {
256
expect(err.notDetectedAtPath).toBe(true)
257
+ }
258
259
260
it('rejects when there was an error executing the command', async () => {
0 commit comments