Testing

Test Runner

Built-in test runner with describe/it/expect.

1 min readDocumentationEdit this page

Usage#

typescript
import { describe, it, expect } from '@AxilJS/testing'
 
describe('Math', () => {
  it('adds numbers', () => {
    expect(1 + 1).toBe(2)
  })
})

Hooks#

beforeAll, afterAll, beforeEach, afterEach

Run#

bash
rest test
rest test users

Help improve the documentation

AxilJS is open source and documentation improvements are welcome.

AxilJS DocumentationMIT License · Built by SyntaxilitY