Skip to content

Commit 0a1ba2e

Browse files
committed
test: add test to compare exports
1 parent e079741 commit 0a1ba2e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/index.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
import { expect, it, describe } from 'vitest'
2+
import * as actualDevtools from '@vue/devtools-api'
23
import * as devtoolsAPI from '../src'
34

45
describe('vue-devtools-stub', () => {
6+
describe('has same exports of @vue/devtools-api', () => {
7+
for (const key in actualDevtools) {
8+
it(key, () => {
9+
expect(typeof (devtoolsAPI as any)[key]).toBe(typeof (actualDevtools as any)[key])
10+
})
11+
}
12+
})
513
it('setupDevtoolsPlugin', () => {
614
expect(devtoolsAPI.setupDevtoolsPlugin()).toBe(undefined)
715
})

0 commit comments

Comments
 (0)