Skip to content

Commit

Permalink
Merge pull request #175 from tonlabs/tests-readme
Browse files Browse the repository at this point in the history
Version: 1.3.2
  • Loading branch information
g9d authored Dec 11, 2020
2 parents 69d5b39 + 618fb32 commit fd2f809
Show file tree
Hide file tree
Showing 12 changed files with 53 additions and 14 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Release Notes
All notable changes to this project will be documented in this file.

## 1.3.2 - Dec 11, 2020

### Fix
- `lib-web` index-template matches the documentation now

## 1.3.1 - Dec 9, 2020

### Fix
Expand Down
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,37 @@ Also the archives will be created to be published on the TON Labs cloud storage.
- `packages/lib-react-native/ios/publish`
- `packages/lib-react-native/android/publish`

# Run tests

This suite has test packages:
- `tests` – common test package containing all unit tests for a library.
- `tests-node` – tests runner on node js.
- `tests-web` – tests runner on web browser.
- `tests-react-native` – tests runner on react native platform.

## Run tests on node js

```shell script
cd packages/tests-node
npm i
node run
```

## Run tests on web browser

```shell script
cd packages/tests-web
npm i
node run
```

## Run tests on react native platform

```shell script
cd packages/tests-react-native
npm i
node run
```

---
Copyright 2018-2020 TON DEV SOLUTIONS LTD.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"packages": [
"packages/*"
],
"version": "independent",
"version": "1.3.2",
"command": {
"version": {
"message": "Release",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/core",
"version": "1.3.1",
"version": "1.3.2",
"description": "TON Client for Java Script",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/lib-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/lib-node",
"version": "1.3.1",
"version": "1.3.2",
"description": "TON Client NodeJs AddOn",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/lib-react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/lib-react-native",
"version": "1.3.1",
"version": "1.3.2",
"description": "TON Client React Native Module",
"main": "index.js",
"repository": {
Expand Down
12 changes: 7 additions & 5 deletions packages/lib-web/lib/index-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ const workerScript = '';

//---

function load(options) {
let options = null;

export function libWebSetup(libOptions) {
options = libOptions;
}

export function libWeb() {
function debugLog(message) {
if (options && options.debugLog) {
options.debugLog(message);
Expand Down Expand Up @@ -134,7 +140,3 @@ function load(options) {

return Promise.resolve(library);
}

export default function wasmModule(options) {
return () => load(options);
}
2 changes: 1 addition & 1 deletion packages/lib-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/lib-web",
"version": "1.3.1",
"version": "1.3.2",
"description": "TON Client WASM module for browsers",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/tests-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/tests-node",
"version": "1.3.0",
"version": "1.3.2",
"private": true,
"description": "TON Client Tests runner on NodeJs",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/tests-react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/tests-react-native",
"version": "1.3.0",
"version": "1.3.2",
"private": true,
"main": "index.js",
"browser": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/tests-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/tests-web",
"version": "1.3.0",
"version": "1.3.2",
"private": true,
"description": "TON Client WASM module tests runner",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/tests",
"version": "1.3.0",
"version": "1.3.2",
"private": true,
"description": "TON Client Tests",
"main": "dist/index.js",
Expand Down

0 comments on commit fd2f809

Please sign in to comment.