3 Star 1 Fork 0

Gitee 极速下载 / salte-auth

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/salte-auth/salte-auth
克隆/下载
karma.ci.conf.js 1.80 KB
一键复制 编辑 原始数据 按行查看 历史
Cecilia Woodward 提交于 2021-06-30 13:28 . fix: migrate to github actions
const common = require('./rollup.common.config.js');
module.exports = (config) => {
const browsers = [
'Chrome',
// Puppeteer support dropped? (causes build to fail)
// Error: Only Nightly release channel is supported in Devtools/Puppeteer for Firefox. Refer to the following issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1606604
// 'Firefox',
// 'MicrosoftEdge',
// 'Safari',
// 'Internet Explorer'
];
const customLaunchers = browsers.reduce((output, browser) => {
// TODO: For some reason Safari 12 throws a 500 error...
output[`${browser}Latest`] = {
base: 'SauceLabs',
browserName: browser.toLowerCase(),
version: browser === 'Safari' ? 'latest-1' : 'latest'
};
if (browser !== 'Internet Explorer') {
output[`${browser}Prior`] = {
base: 'SauceLabs',
browserName: browser.toLowerCase(),
version: browser === 'Safari' ? 'latest-2' : 'latest-1'
};
}
return output;
}, {});
config.set({
basePath: '',
frameworks: [
'mocha'
],
files: [
'test/unit/index.js'
],
client: {
mocha: {
timeout: 10000
}
},
preprocessors: {
'test/unit/index.js': ['rollup', 'sourcemap']
},
rollupPreprocessor: common({
minified: false,
es6: false,
tests: true,
coverage: false
}),
reporters: ['mocha', 'coverage'],
mochaReporter: {
output: 'minimal',
showDiff: true
},
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
sauceLabs: {
testName: 'salte-auth/salte-auth',
startConnect: true
},
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
captureTimeout: 120000,
browserNoActivityTimeout: 120000,
singleRun: true
});
}
JavaScript
1
https://gitee.com/mirrors/salte-auth.git
git@gitee.com:mirrors/salte-auth.git
mirrors
salte-auth
salte-auth
master

搜索帮助