{{!-- Setup and Teardown Template --}}
{{!-- Generated by @soapjs/integr8 --}}

{{#if setup}}
// Global setup
beforeAll(async () => {
  {{#if (endsWith configPath ".json")}}
  const config = require('{{relativePath testFilePath configPath}}');
  {{else}}
  const configModule = require('{{relativePath testFilePath configPath}}');
  const config = configModule.default || configModule;
  {{/if}}
  
  await setupEnvironment(config);
});

{{/if}}
{{#if teardown}}
// Global teardown
afterAll(async () => {
  await teardownEnvironment();
});

{{/if}}
