Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update sinon stub types
Browse files Browse the repository at this point in the history
k80bowman committed Jan 31, 2025
1 parent 0b3560d commit dc23e02
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/cli/test/unit/commands/addons/attach.unit.test.ts
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ import * as nock from 'nock'
import * as confirmCommand from '../../../../src/lib/confirmCommand'
import * as sinon from 'sinon'

let confirmStub: ReturnType<typeof sinon.stub>
let confirmStub: sinon.SinonStub

describe('addons:attach', function () {
beforeEach(function () {
4 changes: 2 additions & 2 deletions packages/cli/test/unit/commands/apps/create.unit.test.ts
Original file line number Diff line number Diff line change
@@ -133,8 +133,8 @@ describe('apps:create', function () {
},
}

let readFileStub: ReturnType<typeof sinon.stub>
let safeLoadStub: ReturnType<typeof sinon.stub>
let readFileStub: sinon.SinonStub
let safeLoadStub: sinon.SinonStub

beforeEach(async function () {
readFileStub = sinon.stub(fse, 'readFile').returns(Promise.resolve((Buffer.from(''))))
4 changes: 2 additions & 2 deletions packages/cli/test/unit/commands/pg/info.unit.test.ts
Original file line number Diff line number Diff line change
@@ -7,8 +7,8 @@ import runCommand from '../../../helpers/runCommand'
const proxyquire = require('proxyquire')
let all = []
let addon
let allSinonStub: ReturnType<typeof sinon.stub>
let addonSinonStub: ReturnType<typeof sinon.stub>
let allSinonStub: sinon.SinonStub
let addonSinonStub: sinon.SinonStub

const getCmd = (resultsObject: {allResult: any, addonResult: any}) => {
const {allResult, addonResult} = resultsObject

0 comments on commit dc23e02

Please sign in to comment.