Skip to content

Commit

Permalink
sync: config and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
elonehoo committed Jun 30, 2022
1 parent 090db70 commit 3126e0a
Show file tree
Hide file tree
Showing 9 changed files with 4,537 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
dist
node_modules
*.svelte
*.snap
*.d.ts
coverage
!.vitepress
37 changes: 37 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"extends": "@antfu",
"rules": {
"no-restricted-imports": [
"error",
{
"paths": ["path"]
}
]
},
"overrides": [
{
"files": "packages/**/*.*",
"rules": {
"no-restricted-imports": [
"error",
{
"paths": ["vitest", "path"]
}
]
}
},
{
"files": "packages/vitest/**/*.*",
"rules": {
"no-restricted-globals": [
"error",
"setTimeout",
"clearTimeout",
"setInterval",
"clearInterval",
"performance"
]
}
}
]
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lib-cov
coverage
node_modules
.env
.cache
dist
.idea
.DS_Store
bench/test/*/*/
cypress/videos
cypress/downloads
cypress/screenshots
public/user-avatars
public/sponsors
.vscode
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
shamefully-hoist=true
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
MIT License

Copyright (c) 2021-Present Anthony Fu <https://github.com/antfu>
Copyright (c) 2021-Present Matias Capeletto <https://github.com/patak-dev>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<p align="center">
<img src="https://user-images.githubusercontent.com/11247099/145112184-a9ff6727-661c-439d-9ada-963124a281f7.png" height="150">
</p>

<h1 align="center">
Vitest
</h1>
<p align="center">
由 Vite 提供支持的极速单元测试框架
</p>

<p align="center">
<a href="https://cn.vitest.dev">中文文档</a> | <a href="https://vitest.dev">英文文档</a>
</p>

<br>

<p align="center">
<a href="https://github.com/vitest-dev/vitest">代码仓库</a>
</p>

<br>
<br>

### 感谢

[@elonehoo](https://github.com/elonehoo) - 发起与维护该文档翻译
Loading

0 comments on commit 3126e0a

Please sign in to comment.