Skip to content

Commit f2f4133

Browse files
committed
chore: update rpc-engine test
1 parent 65da2dc commit f2f4133

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

packages/rpc-engine/index.test.js

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
// eslint-disable-next-line no-unused-vars
2-
import { expect, describe, test, it, jest, afterAll, afterEach, beforeAll, beforeEach, } from '@jest/globals' // prettier-ignore
1+
import {expect, describe, it, vi} from 'vitest'
32
import {defRpcEngine} from './index'
43

54
// eslint-disable-next-line
6-
describe.skip('RPCEngine', function () {
7-
describe('defRpcEngine', function () {
8-
const mockStore = {setState: jest.fn(), getState: jest.fn()}
5+
describe.skip('RPCEngine', () => {
6+
describe('defRpcEngine', () => {
7+
const mockStore = {setState: vi.fn(), getState: vi.fn()}
98
const mockOpts = {
109
methods: [
1110
{
12-
main: jest.fn().mockResolvedValue(),
11+
main: vi.fn().mockResolvedValue(),
1312
NAME: 'cfx_mockRpc',
1413
permissions: {
1514
methods: [],
@@ -18,7 +17,7 @@ describe.skip('RPCEngine', function () {
1817
],
1918
}
2019

21-
it('should return the request method', async function () {
20+
it('should return the request method', async () => {
2221
const {request} = defRpcEngine(mockStore, mockOpts)
2322
const res = await request({
2423
method: 'cfx_mockRpc',

0 commit comments

Comments
 (0)