smart-rocket-unit

This is common test case library for frontend and backend. We extract common functions for test case data, in order to reduce codes development and increase maintainability.

Usage no npm install needed!

<script type="module">
  import smartRocketUnit from 'https://cdn.skypack.dev/smart-rocket-unit';
</script>

README

smart-rocket-unit

This is common test case library for frontend and backend. We extract common functions for test case data, in order to reduce codes development and increase maintainability.

  • Installation
npm i smart-rocket-unit
  • Usage
import { TestCaseTransformer } from 'smart-rocket-unit';
or
const { TestCaseTransformer } = require('smart-rocket-unit');

const testCaseTransformer = new TestCaseTransformer();
testCaseTransformer.testCaseData = {};
testCaseTransformer.variablesData = {};
testCaseTransformer.typeSystemData = {};
testCaseTransformer.transform();
  • Install dependencies
yarn
  • Development
yarn dev
  • ES6 style packaging
yarn run build:esm
  • CommonJS style packaging
yarn run build:esm
  • ES6 and CommonJS style packaging
yarn run build:umd
  • ES6 and CommonJS style Minimum version packaging
yarn run build:min
  • Publish all kinds of versions, include 'esm', 'cjs', 'umd'
yarn run build