Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up to prepare for test script refactor #330

Merged
merged 3 commits into from
Dec 1, 2018

Conversation

josephting
Copy link
Contributor

@josephting josephting commented Nov 27, 2018

Description

  • fix(precommit): use jest exit code
    Remove --forceExit flag so precommit can use jest's exit code instead of failing the check all the time.
  • fix(jest): restore coverage collection context
    Jest initialize the rootDir to the directory of the loaded config file instead of project root so specifying rootDir to the project root will fix coverage collection context.
    https://coveralls.io/builds/20303864
  • chore(package.json): remove phased out test tools
    mocha, chai, sinon, sinon-chai are no longer needed with the introduction of jest which will be the test framework used moving forward.

Motivation and Context

In attempt to increasing code coverage (#143), these are the necessary preparation towards the goal.

How Has This Been Tested?

All commands below ran without error.

yarn install
yarn build
yarn dev
yarn dev:build
yarn docs:build
yarn precommit
yarn test-coverage
yarn updateDocAssets

Screenshots (if appropriate):

N/A

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • I have included a vue-play example (if this is a new feature)

Copy link
Member

@quinnlangille quinnlangille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! I'm going to release v0.16.0 later today, I'll merge this into a new working branch once we release

@quinnlangille quinnlangille changed the base branch from master to v0.17.0 December 1, 2018 22:04
@quinnlangille quinnlangille merged commit cbb367f into SSENSE:v0.17.0 Dec 1, 2018
@josephting josephting deleted the feat/ut-prep branch December 6, 2018 02:59
quinnlangille pushed a commit that referenced this pull request Dec 19, 2018
* fix(precommit): use jest exit code

* fix(jest): restore coverage collection context

* chore(package.json): remove phased out test tools
VojtechKlos pushed a commit to Symphony9/vue-carousel that referenced this pull request Dec 20, 2018
* fix(precommit): use jest exit code

* fix(jest): restore coverage collection context

* chore(package.json): remove phased out test tools
quinnlangille pushed a commit that referenced this pull request Dec 20, 2018
* Clean up to prepare for test script refactor (#330)

* fix(precommit): use jest exit code

* fix(jest): restore coverage collection context

* chore(package.json): remove phased out test tools

* style(eslint): commit eslint fixes (#336)

* feat: add watcher to Autoplay Prop (#344)

* fix(carousel): flush the slides left when they don't fill the width (#323)

* fix(carousel): Flush the slides left when they don't fill the width (#323)

When there are too few slides to fill the row, with scrollPerPage, the slides were flushed right instead of left.
By bounding maxOffest to a minimum of 0, the slides are aligned on the left-hand-side

Fix #323

* style(play): Use capitals in tests for consistency

* v0.16.1

* chore: build

* feat(standard): watch autoplay prop and enable/disable autoplay

* feat(pagination) added an option to add custom title in pagination buttons

* updated test snapshots

* fixed wrong conflict resolution of carousel.vue
quinnlangille pushed a commit that referenced this pull request Dec 27, 2018
* fix(precommit): use jest exit code

* fix(jest): restore coverage collection context

* chore(package.json): remove phased out test tools
quinnlangille pushed a commit that referenced this pull request Dec 27, 2018
* Clean up to prepare for test script refactor (#330)

* fix(precommit): use jest exit code

* fix(jest): restore coverage collection context

* chore(package.json): remove phased out test tools

* style(eslint): commit eslint fixes (#336)

* feat: add watcher to Autoplay Prop (#344)

* fix(carousel): flush the slides left when they don't fill the width (#323)

* fix(carousel): Flush the slides left when they don't fill the width (#323)

When there are too few slides to fill the row, with scrollPerPage, the slides were flushed right instead of left.
By bounding maxOffest to a minimum of 0, the slides are aligned on the left-hand-side

Fix #323

* style(play): Use capitals in tests for consistency

* v0.16.1

* chore: build

* feat(standard): watch autoplay prop and enable/disable autoplay

* feat(pagination) added an option to add custom title in pagination buttons

* updated test snapshots

* fixed wrong conflict resolution of carousel.vue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants