import execa from "execa" ; import { dirname , join } from "path" ; import { installPackage } from "../../../run" ; const testDir = dirname ( __dirname ) ; let result ; beforeAll ( async ( ) => { await installPackage ( testDir , "yaml" ) ; } ) ; beforeEach ( async ( ) => { result = await execa . node ( join ( testDir , "index.mjs" ) , { cwd : testDir } ) ; } ) ; test ( "should load Kubernetes objects" , ( ) => { expect ( result . stdout ) . toMatchSnapshot ( ) ; } ) ;