npm.io
1.5.6 • Published 2d agoCLI

@remotex-labs/xjet

Licence
Mozilla Public License Version 2.0
Version
1.5.6
Deps
7
Size
1.3 MB
Vulns
0
Weekly
0
Stars
3

xJet

Documentation npm version downloads License: MPL 2.0 Test CI Discord Ask DeepWiki

A powerful, flexible testing framework for JavaScript and TypeScript applications. Its mission is to help you "Run Automated Tests Anywhere, Effortlessly."

It provides a Jest-like API with describe, it, test, and expect, a complete suite of mocking utilities, configurable CLI options, and multiple output reporters, all with first-class TypeScript support.

Key Features

  • Familiar API: a Jest-like interface with describe, it, test, and expect functions.
  • Powerful mocking: a complete suite of mocking utilities including fn, mock, and spyOn.
  • CLI options: configurable through command-line arguments.
  • Multiple reporters: support for different output formats including human-readable, JSON, and JUnit XML.
  • TypeScript support: first-class TypeScript support with type definitions included.

Installation

npm install @remotex-labs/xjet
# or
pnpm add @remotex-labs/xjet
# or
yarn add @remotex-labs/xjet

xJet requires Node.js 20 or later.

Quick start

Create a test file and start writing tests immediately:

// example.test.ts
describe('Calculator', () => {
    test('should add two numbers correctly', () => {
        const result = 1 + 2;
        expect(result).toBe(3);
    });

    it('should subtract two numbers correctly', () => {
        const result = 5 - 2;
        expect(result).toBe(3);
    });
});

Running the suite:

Run

Run

Run

Compatibility

  • Node.js 20 or later
  • All modern browsers (via bundlers)
  • TypeScript 4.5 or later

Documentation

Full guides and the complete API reference live at remotex-labs.github.io/xJet:

Contributing

Contributions are welcome!
Please see our Contributing Guide for details.

Documentation, GitHub Repository, Issue Tracker, npm Package

License

This project is licensed under the Mozilla Public License 2.0 - see the LICENSE file for details.