Skip to content

Commit

Permalink
fix(deps): update nwsapi to version 2.2.13 and add @vitejs/plugin-legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Dec 17, 2024
1 parent 0f8280c commit f904b82
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@
"vitest": "^2.1.8",
"write-pkg": "^4.0.0",
"xhr-mock": "^2.5.1",
"@vitejs/plugin-legacy": "^6.0.0",
"nwsapi": "2.2.13",
"yorkie": "^2.0.0",
"zustand": "^4.5.5"
},
Expand All @@ -181,8 +183,5 @@
"commit-msg": "fabric verify-commit"
},
"packageManager": "[email protected]",
"version": "",
"dependencies": {
"@vitejs/plugin-legacy": "^6.0.0"
}
"version": ""
}
13 changes: 8 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions tests/table/index.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable @babel/no-unused-expressions */
/* eslint-disable @typescript-eslint/no-unused-expressions */
/**
* @vitest-environment jsdom
*/
Expand Down Expand Up @@ -169,6 +171,10 @@ describe('BasicTable', () => {
}
});

vi.spyOn(document, 'visibilityState' as any, 'get').mockReturnValue(
'visible',
);

const html = render(
<ProTable
size="small"
Expand Down

0 comments on commit f904b82

Please sign in to comment.