Skip to content

Commit c8fb907

Browse files
committed
fix tests
1 parent a7eaf91 commit c8fb907

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"dev": "vite",
3838
"prepublishOnly": "pnpm run build",
3939
"release": "pnpm build && bumpp --commit --push --tag && pnpm publish",
40-
"lint": "eslint --ext .ts,.tsx,.js,.jsx .",
41-
"lint:fix": "eslint --ext .ts,.tsx,.js,.jsx . --fix",
40+
"lint": "eslint .",
41+
"lint:fix": "eslint . --fix",
4242
"test": "vitest",
4343
"test:watch": "vitest --watch",
4444
"coverage": "vitest run --coverage"

src/components/uplot.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ defineExpose({ toggleShow, uplot })
193193

194194
<template>
195195
<div class="__uplot-root">
196-
r {{ noResetScale }}
197196
<slot name="header" :series="series" :toggle-show="toggleShow" />
198197
<div ref="el" class="__uplot" />
199198
<div v-if="showDebug" class="extra-info">

test/example.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, expect, test } from 'vitest'
22
import { mount } from '@vue/test-utils'
3-
import { Uplot } from '@root/index'
3+
import { Uplot } from '../src/index'
44

55
const slotText = 'Test content'
66
const props = {

vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default defineConfig({
1010
test: {
1111
environment: 'jsdom',
1212
coverage: {
13-
provider: 'c8', // or 'c8',
13+
provider: 'v8',
1414
reporter: ['text', 'json-summary', 'json', 'html'],
1515
},
1616
exclude: [

0 commit comments

Comments
 (0)