Skip to content

quickjs-modules/testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

testing

test.js:

import testsuite from "./modules/testing/testsuite.js";
import { isEqual } from "./modules/testing/assert.js";

const { test, run } = testsuite("my_module");

test("simple test", () => {
  isEqual(true, true);
});

run();

Run test file:

qjs test.js

Run suite my_module
  Test simple test ... passed
1 passed / 0 failed

About

Testing utilities for QuickJS Modules

Resources

License

Stars

Watchers

Forks