Skip to content

Commit ce030a3

Browse files
committed
docs: add note on limitations to testing SFCs with jest
1 parent 4583ccb commit ce030a3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/en/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@
4242
* [Choosing a test runner](guides/choosing-a-test-runner.md)
4343
* [Using with Jest](guides/using-with-jest.md)
4444
* [Testing SFCs with Jest](guides/testing-SFCs-with-jest.md)
45-
* [Testing SFCs with Mocha and webpack](guides/testing-SFCs-with-mocha-webpack.md)
45+
* [Testing SFCs with Mocha](guides/testing-SFCs-with-mocha-webpack.md)
4646
* [Using with Vuex](guides/using-with-vuex.md)
4747
* [common gotchas](common-gotchas.md)

docs/en/guides/testing-SFCs-with-jest.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
# Using with Jest
1+
# Testing single file components with Jest
22

33
Jest is a test runner developed by Facebook, aiming to come with everything included to get started. [Learn more about Jest](https://facebook.github.io/jest/) So let's get started.
44

55
To test SFCs, we need to compile the files before running them in node.
66

7+
*Note: Jest uses a jest-vue transformer. It does not contain all the features of vue-loader, like custom block support and style loading. To use them, read the [testing SFCs with Mocha](test-SFCs-with-mocha.md) guide*
8+
79
## Setting up Jest
810

911
The first thing to do is install Jest:

0 commit comments

Comments
 (0)