{{!-- Sample Test Template --}}
{{!-- Generated by @soapjs/integr8 --}}

{{#if imports}}
{{#each imports}}
import { {{this}} } from '{{@key}}';
{{/each}}
{{/if}}

{{#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}}
describe('Sample Integration Test', () => {
  it('should be able to connect to the environment', async () => {
    const ctx = getEnvironmentContext();
    
    // Your integration test here
    expect(ctx).toBeDefined();
    expect(ctx.http).toBeDefined();
    expect(ctx.db).toBeDefined();
  });
});