0.1.0 • Published 4 years ago
@massalabs/as-tester v0.1.0
Installation
yarn add 'https://gitpkg.now.sh/massalabs/as/tester?main'
To avoid linter warning, you should add a file named tester.d.ts under the directory assembly/__tests__ containing:
/// <reference types="tester/assembly/global" />Usage
Creating tests
describe('imports', () => {
test('a test avoiding assert', () => {
const got = imported();
const want = 41;
if (got != want) {
error('imported() = ' + got.toString() + ', ' + want.toString() + ' was expected.');
return;
}
});
});
// or the same thing, without the test wrapper, using check. But needs to use a specific transformer.
check('imports', import, 41);Running tester
All test files
yarn astester
Only given one
yarn astester assembly/tests/example.spec.ts
Using transformer
yarn astester --transform tester/check_replacer.js
0.0.2-dev.20221118115602
4 years ago
0.0.2-dev.20221109111359
4 years ago
0.0.2-dev.20221114151250
4 years ago
0.1.1-dev.20221202174650
4 years ago
0.0.3-dev.20221125142142
4 years ago
0.1.1-dev.20221207100604
4 years ago
0.0.3-dev.20221118120016
4 years ago
0.0.3-dev.20221129202101
4 years ago
0.0.2-dev.20221107182523
4 years ago
0.1.1-dev.20221130170000
4 years ago
0.1.1-dev.20221130133231
4 years ago
0.1.1-dev.20221202142612
4 years ago
0.0.3-dev.20221129160506
4 years ago
0.1.0
4 years ago
0.0.1
4 years ago
0.0.2
4 years ago
0.0.2-dev.20221116134920
4 years ago
0.0.2-dev.20221114144841
4 years ago
0.0.2-dev.20221024152041
4 years ago
0.0.2-dev.20221024151903
4 years ago
0.0.2-dev.20221024151509
4 years ago
0.0.2-dev.20221024134338
4 years ago
0.0.2-dev.20221024124830.0
4 years ago
0.0.2-dev.0
4 years ago