@siberianmh/cosmosjs
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

CosmosJS

Install

Install with yarn

yarn add --dev @siberianmh/cosmosjs

Or npm

npm install --save-dev @siberianmh/cosmosjs

Usage

Create file named index.test.js. This will contain our test:

const { describe, it, expect, end } = require('@siberianmh/cosmosjs');

function sum (a, b) {
  return a + b;
};

describe('sum', () => {
  it('adds 1 + 2 to equal 3', () => {
    expect(sum(1, 2)).toBe(3);
  })
});

end()

Add the following section to your package.json:

{
  "scripts": {
    "test": "cosmosjs ./index.test.js"
  }
}

Finally, run yarn test or npm test and Cosmos will print this message:

 => sum
    OK  adds 1 + 2 to equal 3

...........................................................

Test Summary

   Success: 1

License

Licensed under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i @siberianmh/cosmosjs

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

87.9 kB

Total Files

35

Last publish

Collaborators

  • hashimoto