Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gzupanda
code-server
提交
08cd2d81
C
code-server
项目概览
gzupanda
/
code-server
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
code-server
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
08cd2d81
编写于
4月 13, 2021
作者:
J
Joe Previte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: add new e2e config
上级
0a090bf1
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
21 addition
and
44 deletion
+21
-44
test/config.ts
test/config.ts
+16
-0
test/jest.e2e.config.ts
test/jest.e2e.config.ts
+0
-39
test/package.json
test/package.json
+1
-1
test/yarn.lock
test/yarn.lock
+4
-4
未找到文件。
test/config.ts
0 → 100644
浏览文件 @
08cd2d81
import
{
ChromiumEnv
,
FirefoxEnv
,
WebKitEnv
,
test
,
setConfig
,
PlaywrightOptions
}
from
"
@playwright/test
"
setConfig
({
testDir
:
"
e2e
"
,
// Search for tests in this directory.
timeout
:
30000
,
// Each test is given 30 seconds.
})
const
options
:
PlaywrightOptions
=
{
headless
:
true
,
// Run tests in headless browsers.
video
:
"
retain-on-failure
"
,
}
// Run tests in three browsers.
test
.
runWith
(
new
ChromiumEnv
(
options
),
{
tag
:
"
chromium
"
})
test
.
runWith
(
new
FirefoxEnv
(
options
),
{
tag
:
"
firefox
"
})
test
.
runWith
(
new
WebKitEnv
(
options
),
{
tag
:
"
webkit
"
})
test/jest.e2e.config.ts
已删除
100644 → 0
浏览文件 @
0a090bf1
// jest.config.ts
import
type
{
Config
}
from
"
@jest/types
"
const
config
:
Config
.
InitialOptions
=
{
preset
:
"
jest-playwright-preset
"
,
transform
:
{
"
^.+
\\
.ts$
"
:
"
<rootDir>/node_modules/ts-jest
"
,
},
globalSetup
:
"
<rootDir>/utils/globalSetup.ts
"
,
testEnvironmentOptions
:
{
"
jest-playwright
"
:
{
// TODO(@jsjoeio) enable on webkit and firefox
// waiting on next playwright release
// - https://github.com/microsoft/playwright/issues/6009#event-4536210890
// - https://github.com/microsoft/playwright/issues/6020
browsers
:
[
"
chromium
"
],
// If there's a page error, we don't exit
// i.e. something logged in the console
exitOnPageError
:
false
,
contextOptions
:
{
recordVideo
:
{
dir
:
"
./test/e2e/videos
"
,
},
},
},
},
testPathIgnorePatterns
:
[
"
/node_modules/
"
,
"
/lib/
"
,
"
/out/
"
,
"
test/unit
"
],
testTimeout
:
30000
,
modulePathIgnorePatterns
:
[
"
<rootDir>/../lib/vscode
"
,
"
<rootDir>/../release-packages
"
,
"
<rootDir>/../release
"
,
"
<rootDir>/../release-standalone
"
,
"
<rootDir>/../release-npm-package
"
,
"
<rootDir>/../release-gcp
"
,
"
<rootDir>/../release-images
"
,
],
}
export
default
config
test/package.json
浏览文件 @
08cd2d81
...
...
@@ -2,7 +2,7 @@
"license"
:
"MIT"
,
"#"
:
"We must put jest in a sub-directory otherwise VS Code somehow picks up the types and generates conflicts with mocha."
,
"devDependencies"
:
{
"@playwright/test"
:
"^0.1101.0"
,
"@playwright/test"
:
"^0.1101.0
-alpha2
"
,
"@types/jest"
:
"^26.0.20"
,
"@types/jsdom"
:
"^16.2.6"
,
"@types/node-fetch"
:
"^2.5.8"
,
...
...
test/yarn.lock
浏览文件 @
08cd2d81
...
...
@@ -1258,10 +1258,10 @@
"@types/yargs" "^15.0.0"
chalk "^4.0.0"
"@playwright/test@^0.1101.0":
version "0.1101.0"
resolved "https://registry.yarnpkg.com/@playwright/test/-/test-0.1101.0
.tgz#73f1195a9fd0c23b4efeff8cd2cd760f94247789
"
integrity sha512-
yn/psASZhjKKCOJi9oW/5ImZx9wjlXhKvGVtleOC10XxhV0wshBf3eL+40G9o5VjJ8KwJaujj+mFadBrHjEs5w
==
"@playwright/test@^0.1101.0
-alpha2
":
version "0.1101.0
-alpha2
"
resolved "https://registry.yarnpkg.com/@playwright/test/-/test-0.1101.0
-alpha2.tgz#a1121ac70e6ac986532ea63c6f565f06fae99364
"
integrity sha512-
DDJQCTn5iLR2J5T/Fl+BhR9V7G++Y6HmSBLgn3blRZ8HWsJRseD6nowuhUij51rhDiLdJJLVmF4/sVJCqtPGMQ
==
dependencies:
folio "=0.3.23-alpha"
playwright "=1.10.0"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录