@bizzy-phoenix/test-helpers

1.0.12 • Public • Published

@bizzy-phoenix/test-helpers

Testing helper for Bizzy Phoenix projects

version downloads lerna

How to install

$ yarn add @bizzy-phoenix/test-helpers
# or
$ npm i @bizzy-phoenix/test-helpers

Sample Usage

import { shallowMount, createLocalVue } from '@vue/test-utils';
import testHelpers from '@bizzy-phoenix/test-helpers'

const localVue = createLocalVue();
const router = testHelpers.router.initEmptyRouter(localVue);
const i18n = testHelpers.i18n.initI18n(localVue);
const i18n = testHelpers.nuxtDummy.initAllMockDependecies(localVue);
// ...
const apiBasic = testHelpers.apiBasic;

Script for Development

# run eslint
$ yarn run lint

# run test
$ yarn run test

# run build
$ yarn run build

Bizzy Indonesia

Copyright © 2018 by Bizzy Engineering Team

Readme

Keywords

none

Package Sidebar

Install

npm i @bizzy-phoenix/test-helpers

Weekly Downloads

1

Version

1.0.12

License

Apache-2.0

Unpacked Size

23 kB

Total Files

14

Last publish

Collaborators

  • radifan
  • syafrullah
  • irfan.maulana