Skip to content

Commit cda1def

Browse files
committed
docs: add link to example project in mocha SFC guide
1 parent 1d1e382 commit cda1def

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/en/guides/testing-SFCs-with-mocha-webpack.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Testing Single File Components with Mocha + webpack
22

3+
> An example project for this setup is available on [GitHub](https://github.com/vuejs/vue-test-utils-mocha-webpack-example).
4+
35
Another strategy for testing SFCs is compiling all our tests via webpack and then run it in a test runner. The advantage of this approach is that it gives us full support for all webpack and `vue-loader` features, so we don't have to make compromises in our source code.
46

57
You can technically use any test runner you like and manually wire things together, but we've found [`mocha-webpack`](https://github.com/zinserjan/mocha-webpack) to provide a very streamlined experience for this particular task.

0 commit comments

Comments
 (0)