File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 6
6
build :
7
7
runs-on : ubuntu-latest
8
8
steps :
9
- - uses : actions/checkout@v1
9
+ - uses : actions/checkout@v4.1.7
10
10
- name : Setup Node.js environment
11
- uses : actions/setup-node@v2.1.2
11
+ uses : actions/setup-node@v4.0.3
12
12
with :
13
13
check-latest : true
14
14
- name : npm install, test and build
Original file line number Diff line number Diff line change 1
- import { ref } from 'vue '
1
+ import { LineOptions , Plot } from '@antv/g2plot '
2
2
import { mount } from '@vue/test-utils'
3
+ import { ref } from 'vue'
3
4
import LineChart from '../../src/plots/line'
4
- import { LineOptions , Plot } from '@antv/g2plot'
5
5
6
6
describe ( 'LineChart' , ( ) => {
7
7
test ( 'render without crashed' , ( ) => {
@@ -21,7 +21,7 @@ describe('LineChart', () => {
21
21
const handleLineClick2 = ( ) => {
22
22
console . log ( 2 )
23
23
}
24
- const wrapper = mount ( < LineChart data = { null } /> )
24
+ const wrapper = mount ( < LineChart data = { [ ] } /> )
25
25
26
26
await wrapper . setProps ( {
27
27
autoFit : true ,
Original file line number Diff line number Diff line change 17
17
// "sourceMap": true, /* Generates corresponding '.map' file. */
18
18
// "outFile": "./", /* Concatenate and emit output to single file. */
19
19
// "outDir": "./lib" /* Redirect output structure to the directory. */,
20
- "rootDir" : " ./src " /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ ,
20
+ "rootDir" : " ." /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ ,
21
21
// "composite": true, /* Enable project compilation */
22
22
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
23
23
// "removeComments": true, /* Do not emit comments to output. */
64
64
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
65
65
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
66
66
"skipLibCheck" : true ,
67
- "types" : [" @vue/runtime-dom" ],
67
+ "types" : [" @vue/runtime-dom" , " jest " ],
68
68
"verbatimModuleSyntax" : false
69
69
},
70
- "include" : [" src" ],
70
+ "include" : [" src" , " __tests__ " ],
71
71
"exclude" : [" lib" , " es" ]
72
72
}
You can’t perform that action at this time.
0 commit comments