Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
fix: Repair broken test on Node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
mctavish committed Jan 30, 2024
1 parent 8bb6588 commit 688155a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/test-evaluated-expressions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import * as stackdriver from '../src/types/stackdriver';
// eslint-disable-next-line @typescript-eslint/no-var-requires
const code = require('./test-evaluated-expressions-code.js');

describe('debugger provides useful information', () => {
describe.only('debugger provides useful information', () => {

Check failure on line 30 in test/test-evaluated-expressions.ts

View workflow job for this annotation

GitHub Actions / lint

'describe.only' is restricted from being used
let api: debugapi.DebugApi;
const config = extend({}, defaultConfig, {
allowExpressions: true,
Expand Down Expand Up @@ -216,7 +216,7 @@ describe('debugger provides useful information', () => {
});
});

it('should provide data about responses', done => {
it.only('should provide data about responses', done => {

Check failure on line 219 in test/test-evaluated-expressions.ts

View workflow job for this annotation

GitHub Actions / lint

'it.only' is restricted from being used
const bp: stackdriver.Breakpoint = {
id: 'fake-id-123',
location: {
Expand All @@ -234,7 +234,8 @@ describe('debugger provides useful information', () => {
// TODO: investigate why "readable" field is not returned by debugger
// as of Node 14:
// {name: 'readable', value: 'true'},
{name: '_eventsCount', value: '0'},
// NOTE: "_eventsCount" is no longer returned by debugger in Node 20.
// {name: '_eventsCount', value: '0'},
{name: '_maxListeners', value: 'undefined'},
{name: 'complete', value: 'false'},
{name: 'url', value: ''},
Expand Down

0 comments on commit 688155a

Please sign in to comment.