@bizzy-phoenix/test-helpers

Testing helper for Bizzy Phoenix projects - Part of Bizzy Common Web

Usage no npm install needed!

<script type="module">
  import bizzyPhoenixTestHelpers from 'https://cdn.skypack.dev/@bizzy-phoenix/test-helpers';
</script>

README

@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