Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { ChildProcess } from '../../../shared/utilities/processUtils'
import { assertTelemetryCurried } from '../../testUtil'
import { HttpResourceFetcher } from '../../../shared/resourcefetcher/httpResourceFetcher'
import { SamCliInfoInvocation } from '../../../shared/sam/cli/samCliInfo'
import { CodeScansState } from '../../../codewhisperer'

interface TestScenario {
toolID: AwsClis
Expand Down Expand Up @@ -81,6 +82,12 @@ const scenarios: TestScenario[] = [
]

describe('AppBuilder Walkthrough', function () {
before(async function () {
// ensure auto scan is disabled before testrun
await CodeScansState.instance.setScansEnabled(false)
assert.strictEqual(CodeScansState.instance.isScansEnabled(), false)
})

describe('Reopen template after reload', function () {
let sandbox: sinon.SinonSandbox
let spyExecuteCommand: sinon.SinonSpy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ describe('CodeWhisperer-basicCommands', function () {
sinon.restore()
})

after(async function () {
// disable auto scan after testrun
await CodeScansState.instance.setScansEnabled(false)
assert.strictEqual(CodeScansState.instance.isScansEnabled(), false)
})

describe('toggleCodeSuggestion', function () {
class TestCodeSuggestionsState extends CodeSuggestionsState {
public constructor(initialState?: boolean) {
Expand Down
Loading