Skip to content

v1.0.5

Latest

Choose a tag to compare

@blade47 blade47 released this 08 Oct 07:05

🎉 SemanticTest v1.0.5

🐛 Bug Fixes

Fixed undefined path resolution in ValidateContent

  • Fixed critical bug where undefined values in from/as input were treated as literal strings
  • ValidateContent now properly handles missing data paths and returns validation failures
  • Changed core path resolution from resolveValue() to dataBus.get() for accurate undefined handling

Enhanced array contains operator

  • Arrays now support substring matching: checks if any element contains OR equals the expected value
  • Improves flexibility when validating arrays of strings

📚 Documentation

Complete example documentation (4 new pages)

Updated links and references

🗂️ Examples

Improved example structure

  • Unified all examples into single test-examples/ directory
  • All examples now use context variables (${BASE_URL}, ${USER_ID}) for better reusability
  • Renamed examples for clarity:
    • test-error-reporting.json → validation-test.json
    • test-reporting.json → mock-ai-validation.json
  • Removed environment-dependent examples for better portability

✅ Testing

  • 453 tests passing (420 unit + 23 integration + 10 examples)
  • 100% pass rate across all test suites
  • All documentation examples tested and verified

📦 Installation

npm install @blade47/semantic-test@latest

🔗 Links

- 📖 Documentation: https://docs.semantictest.dev
- 🌐 Website: https://semantictest.dev
- 💻 GitHub: https://github.com/blade47/semantic-test
- 📝 Examples: See test-examples/ directory