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 66 build :
77 runs-on : ubuntu-latest
88 steps :
9- - uses : actions/checkout@v1
9+ - uses : actions/checkout@v4.1.7
1010 - name : Setup Node.js environment
11- uses : actions/setup-node@v2.1.2
11+ uses : actions/setup-node@v4.0.3
1212 with :
1313 check-latest : true
1414 - 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 '
22import { mount } from '@vue/test-utils'
3+ import { ref } from 'vue'
34import LineChart from '../../src/plots/line'
4- import { LineOptions , Plot } from '@antv/g2plot'
55
66describe ( 'LineChart' , ( ) => {
77 test ( 'render without crashed' , ( ) => {
@@ -21,7 +21,7 @@ describe('LineChart', () => {
2121 const handleLineClick2 = ( ) => {
2222 console . log ( 2 )
2323 }
24- const wrapper = mount ( < LineChart data = { null } /> )
24+ const wrapper = mount ( < LineChart data = { [ ] } /> )
2525
2626 await wrapper . setProps ( {
2727 autoFit : true ,
Original file line number Diff line number Diff line change 1717 // "sourceMap": true, /* Generates corresponding '.map' file. */
1818 // "outFile": "./", /* Concatenate and emit output to single file. */
1919 // "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. */ ,
2121 // "composite": true, /* Enable project compilation */
2222 // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
2323 // "removeComments": true, /* Do not emit comments to output. */
6464 // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
6565 // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
6666 "skipLibCheck" : true ,
67- "types" : [" @vue/runtime-dom" ],
67+ "types" : [" @vue/runtime-dom" , " jest " ],
6868 "verbatimModuleSyntax" : false
6969 },
70- "include" : [" src" ],
70+ "include" : [" src" , " __tests__ " ],
7171 "exclude" : [" lib" , " es" ]
7272}
You can’t perform that action at this time.
0 commit comments