@@ -10,29 +10,28 @@ import { detectSamProjects } from '../../../awsService/appBuilder/explorer/detec
1010import { SamAppLocation } from '../../../awsService/appBuilder/explorer/samProject'
1111import { AppNode } from '../../../awsService/appBuilder/explorer/nodes/appNode'
1212import { ResourceNode } from '../../../awsService/appBuilder/explorer/nodes/resourceNode'
13- import sinon from 'sinon'
13+ import * as sinon from 'sinon'
1414import { writeSamconfigGlobal , SamConfig } from '../../../shared/sam/config'
1515import { globals , sleep } from '../../../shared'
1616import path from 'path'
1717
1818describe ( 'Application Builder' , async ( ) => {
1919 let rootNode : sinon . SinonSpiedInstance < AppBuilderRootNode >
2020 let projects : SamAppLocation [ ]
21- let sandbox : sinon . SinonSandbox
2221 let originalWalkThroughState : boolean
2322 let projectNodes : any [ ]
2423
2524 before ( async ( ) => {
26- sandbox = sinon . createSandbox ( )
2725 // Set the workspace to the testFixtures folder to avoid side effects from other tests.
28- sandbox . stub ( vscode . workspace , 'workspaceFolders' ) . value ( [
26+ sinon . stub ( vscode . workspace , 'workspaceFolders' ) . value ( [
2927 {
3028 index : 0 ,
3129 name : 'workspaceFolder' ,
3230 uri : vscode . Uri . file ( path . join ( __dirname , '../../../../src/testFixtures/workspaceFolder' ) ) ,
3331 } ,
3432 ] )
35- rootNode = sandbox . spy ( AppBuilderRootNode . instance )
33+ rootNode = sinon . spy ( AppBuilderRootNode . instance )
34+
3635 projects = await detectSamProjects ( )
3736
3837 // Set the walkthrough status to true to ensure the root node has a walkthrough node
@@ -41,9 +40,9 @@ describe('Application Builder', async () => {
4140 } )
4241
4342 after ( async ( ) => {
44- sandbox . restore ( )
4543 // Restore original status of walkthroughCompleted status
4644 await globals . globalState . update ( 'aws.toolkit.lambda.walkthroughCompleted' , originalWalkThroughState )
45+ sinon . restore ( )
4746 } )
4847
4948 describe ( 'root node' , async ( ) => {
0 commit comments