Provides Azos base types and services functionality for Java Script apps
ver. 0.0.1 20230923 DKh
rev. 20240918 DKh + KDB
Aver
, Customer
, .myMethod()
)
PascalCase
unless it is a function-specific unit in which case:()
at the end, example: .bufToHex()
my-case-01
)
Since Nov 17, 2023 testing uses
azos/run.js
tiny library (< 300LOC) which replacesmocha
. We could not usemocha
anymore due to its problematic ES module support while bundling for browser which we needed to test against all the time.
You can run test using the following JS runtimes:
Deno
or Bun
- not tried yet# in the root of azos-js
# Test everything
npm test
# Test named units
# Use `~` to negate the pattern: `~*xyz` = NOT something which ends with `xyz`
npm test "/Aver*"
npm test "/Aver* /Types* ~null"
# Test named cases (may use multiple)
npm test "*/UInt8Array */bufToHex()/throws"
# Test named cases under named units
npm test "*/bufToHex()/throws"
As azos-js
is a purely ES6+ module-based project it is impossible to load test assets using file://
protocol, hence you have to bundle and dev-serve your test suite using Parcel
.
#navigate to http://localhost:1234 in any browser, open a console (hit F12)
npm run test-bro
# Starts parcel server with watch+HMR out of ./out/www (temp testing)
# http://localhost:1234
npm run ui
Portions of this work are based on other open source projects, each having their respective licenses: