Skip to content

Commit 91c10c8

Browse files
committed
chore: update build config
1 parent f76d262 commit 91c10c8

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ jobs:
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

__tests__/plots/line.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { ref } from 'vue'
1+
import { LineOptions, Plot } from '@antv/g2plot'
22
import { mount } from '@vue/test-utils'
3+
import { ref } from 'vue'
34
import LineChart from '../../src/plots/line'
4-
import { LineOptions, Plot } from '@antv/g2plot'
55

66
describe('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,

tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
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. */
@@ -64,9 +64,9 @@
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
}

0 commit comments

Comments
 (0)