Skip to content

Commit 438fee4

Browse files
committed
chore: fix typecheck
1 parent f641aaa commit 438fee4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/vite/src/node/ssr/runtime/__tests__/server-worker-runner.invoke.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ describe('running module runner inside a worker and using the ModuleRunnerTransp
6969
return new Promise<any>((resolve, reject) => {
7070
channel.onmessage = (event) => {
7171
try {
72-
resolve((event as MessageEvent).data)
72+
resolve(event.data)
7373
} catch (e) {
7474
reject(e)
7575
}

packages/vite/src/node/ssr/runtime/__tests__/server-worker-runner.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ describe('running module runner inside a worker', () => {
8282
return new Promise<void>((resolve, reject) => {
8383
channel.onmessage = (event) => {
8484
try {
85-
expect((event as MessageEvent).data).toEqual({
85+
expect(event.data).toEqual({
8686
result: 'hello world',
8787
})
8888
} catch (e) {

0 commit comments

Comments
 (0)