File tree 5 files changed +3
-49
lines changed
5 files changed +3
-49
lines changed Original file line number Diff line number Diff line change 7
7
"scripts" : {
8
8
"test" : " jest --no-cache test.js"
9
9
},
10
- "dependencies" : {
11
- "vue" : " 3.0.0-alpha.10"
12
- },
13
- "devDependencies" : {
14
- "@babel/core" : " ^7.2.2" ,
15
- "@babel/preset-env" : " ^7.2.3" ,
16
- "jest" : " ^24.0.0"
17
- },
18
10
"jest" : {
19
11
"moduleFileExtensions" : [
20
12
" js" ,
Original file line number Diff line number Diff line change 10
10
"devDependencies" : {
11
11
"babel-helper-vue-jsx-merge-props" : " ^2.0.3" ,
12
12
"babel-plugin-syntax-jsx" : " ^6.18.0" ,
13
- "babel-plugin-transform-vue-jsx" : " ^3.7.0" ,
14
- "jest" : " ^24.0.0"
13
+ "babel-plugin-transform-vue-jsx" : " ^3.7.0"
15
14
},
16
15
"jest" : {
17
16
"moduleFileExtensions" : [
23
22
"^.+\\ .js$" : " babel-jest" ,
24
23
"^.+\\ .vue$" : " ../../../lib/index.js"
25
24
},
26
- "moduleNameMapper" : {
27
- "^~?__styles/(.*)$" : " <rootDir>/components/styles/$1"
28
- },
29
25
"globals" : {
30
26
"vue-jest" : {
31
27
"pug" : {
Original file line number Diff line number Diff line change 7
7
"scripts" : {
8
8
"test" : " jest --no-cache --coverage test.js"
9
9
},
10
- "dependencies" : {
11
- "@vue/compiler-sfc" : " 3.0.0-alpha.10" ,
12
- "vue" : " 3.0.0-alpha.10"
13
- },
14
10
"devDependencies" : {
15
- "@babel/core" : " ^7.2.2" ,
16
- "@babel/preset-env" : " ^7.2.3" ,
17
- "jest" : " ^24.0.0" ,
18
11
"postcss" : " ^7.0.13" ,
19
- "postcss-color-function" : " ^4.0.1" ,
20
- "sass" : " ^1.23.7"
12
+ "postcss-color-function" : " ^4.0.1"
21
13
},
22
14
"jest" : {
23
15
"moduleFileExtensions" : [
29
21
"^.+\\ .js$" : " ./babel-transformer.js" ,
30
22
"^.+\\ .vue$" : " ../../../lib"
31
23
},
32
- "moduleNameMapper" : {
33
- "^~?__styles/(.*)$" : " <rootDir>/components/styles/$1"
34
- },
35
24
"globals" : {
36
25
"vue-jest" : {
37
26
"transform" : {
Original file line number Diff line number Diff line change 7
7
"scripts" : {
8
8
"test" : " jest --no-cache test.js"
9
9
},
10
- "dependencies" : {
11
- "@vue/compiler-sfc" : " 3.0.0-alpha.10" ,
12
- "vue" : " 3.0.0-alpha.10"
13
- },
14
10
"devDependencies" : {
15
- "@babel/core" : " ^7.2.2" ,
16
- "@babel/preset-env" : " ^7.2.3" ,
17
- "@vue/test-utils" : " ^1.0.0-beta.28" ,
18
- "jest" : " ^24.0.0" ,
19
- "postcss" : " ^7.0.13" ,
20
- "sass" : " ^1.23.7"
11
+ "postcss" : " ^7.0.13"
21
12
},
22
13
"jest" : {
23
14
"moduleFileExtensions" : [
Original file line number Diff line number Diff line change @@ -44,20 +44,6 @@ function runTest(dir) {
44
44
run ( 'yarn install --silent --no-lockfile' )
45
45
}
46
46
47
- // For tests that need vue-jest to successfully `require.resolve()` a file in
48
- // the project directory's node_modules, we can't symlink vue-jest from a
49
- // parent directory (as node module resolution walks up the file tree,
50
- // starting from the realpath of the caller), we must copy it.
51
- if (
52
- ! fs . existsSync ( `${ resolvedPath } /node_modules/vue-jest` ) ||
53
- ! fs . lstatSync ( `${ resolvedPath } /node_modules/vue-jest` ) . isSymbolicLink ( )
54
- ) {
55
- log ( 'Copying vue-jest into node_modules' )
56
- fs . mkdirSync ( `${ resolvedPath } /node_modules/vue-jest` , { recursive : true } )
57
- run ( `cp ${ cwd } /package.json node_modules/vue-jest/` )
58
- run ( `cp -r ${ cwd } /lib node_modules/vue-jest/` )
59
- }
60
-
61
47
log ( 'Running tests' )
62
48
run ( 'yarn test' )
63
49
You can’t perform that action at this time.
0 commit comments