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

Introduce a unit test framework #15

Closed
4 tasks done
kikuomax opened this issue Jan 22, 2020 · 2 comments · Fixed by #16
Closed
4 tasks done

Introduce a unit test framework #15

kikuomax opened this issue Jan 22, 2020 · 2 comments · Fixed by #16
Assignees

Comments

@kikuomax
Copy link
Owner

kikuomax commented Jan 22, 2020

@kikuomax kikuomax self-assigned this Jan 22, 2020
@kikuomax
Copy link
Owner Author

Am I going to introduce mochapack?

@kikuomax
Copy link
Owner Author

kikuomax added a commit that referenced this issue Jan 23, 2020
- Common configurations are moved from `webpack.config.js` to
  `webpack.common.js`. The following properties are moved,
    - `module`
    - `resolve`

issue #15
kikuomax added a commit that referenced this issue Jan 23, 2020
- The following modules and some dependencies are introduced for unit
  tests.
    - `mocha`
    - `chai`
    - `mochapack`
- A webpack configuration for test `webpack.config-test.js` is
  introduced.
    - A configuration for ESLint is specialized for test.
      `eslint-plugin-mocha` is introduced to support Mocha globals.
- `npm test` runs `mochapack` to run unit tests.
- `test/setup.js` introduces `chai.expect` in the global scope.
  To avoid an ESLint error, you have to declare `global expect` at the
  beginning of every test script.
- `test/components/mixins/symbol-user.spec.js` defines the first test
  that should fails.

issue #15
kikuomax added a commit that referenced this issue Jan 23, 2020
- Unit tests of `components/mixins/symbol-user` are described.
- The following new packages are introduced.
    - `sinon` and `sinon-chai`
	- Vue Test Utils

issue #15
kikuomax added a commit that referenced this issue Jan 23, 2020
- Steps to run unit tests are described in README.

issue #15
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 a pull request may close this issue.

1 participant