File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,21 @@ import * as kubectl from '../helpers/kubectl';
2020let integrationId : string ;
2121let namespace : string ;
2222
23- tap . tearDown ( async ( ) = > {
23+ async function teardown ( ) : Promise < void > {
2424 console . log ( 'Begin removing the snyk-monitor...' ) ;
2525 await setup . removeMonitor ( ) ;
2626 console . log ( 'Removed the snyk-monitor!' ) ;
2727
2828 console . log ( 'Begin removing "kind" network...' ) ;
2929 await setup . removeUnusedKindNetwork ( ) ;
3030 console . log ( 'Removed "kind" network' ) ;
31+ }
32+
33+ tap . tearDown ( teardown ) ;
34+
35+ tap . test ( 'teardown any existing environment' , async ( t ) => {
36+ await teardown ( ) ;
37+ t . pass ( 'starting from a clean environment' ) ;
3138} ) ;
3239
3340// Make sure this runs first -- deploying the monitor for the next tests
You can’t perform that action at this time.
0 commit comments