mirror of
https://github.com/tenrok/axios.git
synced 2026-06-08 17:22:34 +03:00
Fix failing SauceLabs tests by updating configuration
- Remove code coverage from SauceLabs CI, as it causes tests to hang. - Update Safari browser tests to handle Safari 9-11 with proper OS settings
This commit is contained in:
+28
-11
@@ -56,7 +56,21 @@ module.exports = function(config) {
|
||||
// customLaunchers.SL_Safari7 = createCustomLauncher('safari', 7);
|
||||
// customLaunchers.SL_Safari8 = createCustomLauncher('safari', 8);
|
||||
|
||||
customLaunchers.SL_Safari9 = createCustomLauncher('safari', 9);
|
||||
customLaunchers.SL_Safari9 = createCustomLauncher(
|
||||
"safari",
|
||||
9.0,
|
||||
"OS X 10.11"
|
||||
);
|
||||
customLaunchers.SL_Safari10 = createCustomLauncher(
|
||||
"safari",
|
||||
"10.1",
|
||||
"macOS 10.12"
|
||||
);
|
||||
customLaunchers.SL_Safari11 = createCustomLauncher(
|
||||
"safari",
|
||||
"11.1",
|
||||
"macOS 10.13"
|
||||
);
|
||||
}
|
||||
|
||||
// Opera
|
||||
@@ -138,7 +152,9 @@ module.exports = function(config) {
|
||||
// test results reporter to use
|
||||
// possible values: 'dots', 'progress'
|
||||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
||||
reporters: ['dots', 'coverage', 'saucelabs'],
|
||||
// Disable code coverage, as it's breaking CI:
|
||||
// reporters: ['dots', 'coverage', 'saucelabs'],
|
||||
reporters: ['dots', 'saucelabs'],
|
||||
|
||||
|
||||
// web server port
|
||||
@@ -178,15 +194,16 @@ module.exports = function(config) {
|
||||
webpack: {
|
||||
cache: true,
|
||||
devtool: 'inline-source-map',
|
||||
module: {
|
||||
postLoaders: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
exclude: /(node_modules|test)/,
|
||||
loader: 'istanbul-instrumenter'
|
||||
}
|
||||
]
|
||||
},
|
||||
// Disable code coverage, as it's breaking CI
|
||||
// module: {
|
||||
// postLoaders: [
|
||||
// {
|
||||
// test: /\.js$/,
|
||||
// exclude: /(node_modules|test)/,
|
||||
// loader: 'istanbul-instrumenter'
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
externals: [
|
||||
{
|
||||
'./adapters/http': 'var undefined'
|
||||
|
||||
Reference in New Issue
Block a user