#!/usr/bin/env bash

bats_require_minimum_version 1.5.0

TEST_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
SHELLOPS_DIR="$(cd "$TEST_DIR/.." && pwd)"
export SHELLOPS_DIR
export PROJ="$TEST_DIR"

source "$SHELLOPS_DIR/.envrc"

import \
  "$SHELLOPS_DIR/lib/markdown.api.sh" \
  "$SHELLOPS_DIR/lib/releases.api.sh" \
  "$SHELLOPS_DIR/lib/versions.api.sh" \
  "$SHELLOPS_DIR/lib/labels.api.sh"

__releases_api__CONFIG_FILE="$TEST_DIR/fixtures/releases.json"

load "$TEST_DIR/lib/bats-support/load.bash"
load "$TEST_DIR/lib/bats-assert/load.bash"
