1.0.12 • Published 5 years ago

@bizzy-phoenix/test-helpers v1.0.12

Weekly downloads
-
License
Apache-2.0
Repository
bitbucket
Last release
5 years ago

@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