File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,14 @@ This project uses a monorepo setup that requires using [Yarn](https://yarnpkg.co
4
4
5
5
``` sh
6
6
# Install all dependencies.
7
- yarn install
7
+ yarn
8
8
9
9
# Serves VuePress' own docs with itself.
10
10
yarn dev
11
11
12
12
# Build VuePress' own docs with itself.
13
13
yarn build
14
14
15
- # Execute all the test suites.
16
- yarn test
17
-
18
15
# Clean dependencies.
19
16
yarn clean
20
17
@@ -24,7 +21,15 @@ yarn boot
24
21
25
22
## Testing Setup
26
23
27
- > TODO
24
+ VuePress leverages [ jest] ( https://jestjs.io/ ) for its tests, testing process depends on some setup located at [ scripts/test.js] ( ../scripts/test.js ) .
25
+
26
+ ``` bash
27
+ # Execute all the test suites.
28
+ yarn test
29
+
30
+ # Execute tests under specfic package.
31
+ yarn test -p=core # # OR --package=core
32
+ ```
28
33
29
34
## Core Packages
30
35
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const args = minimist(rawArgs)
8
8
let regex
9
9
const debug = ! ! args [ 'inspect-brk' ]
10
10
11
- if ( args . p ) {
11
+ if ( args . p || args . package ) {
12
12
const packages = ( args . p || args . package ) . split ( ',' ) . join ( '|' )
13
13
regex = `.*@vuepress/(${ packages } |plugin-(${ packages } ))/.*\\.spec\\.(js|ts)$`
14
14
const i = rawArgs . indexOf ( '-p' )
You can’t perform that action at this time.
0 commit comments