xJet
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, andexpectfunctions. - Powerful mocking: a complete suite of mocking utilities including
fn,mock, andspyOn. - 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:



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.
Links
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.